Questions tagged [libwebsockets]

Libwebsockets is a lightweight pure C library built to use minimal CPU and memory resources and to provide fast throughput in both directions.

Libwebsocket is a lightweight pure library built to use minimal CPU and memory resources and to provide fast throughput in both directions. It provides server and client APIs for v13 protocol, along with / serving. It can be configured to use or CyaSSL to provide fully encrypted client and server links including client certificate support.

Architectural features like zero-copy for payload data and FSM-based protocol parsers make it ideal for realtime operation on resource-constrained devices. Moreover, its -clean, reliable and robust. It's licensed under LGPL2 +.

You should use this tag if your question is related with Libwebsocket library or its APIs.

161 questions
0
votes
1 answer

C library crashes when optimization is turned off

I'm writing a library in C on Mac OS X, using XCode 6. The library is basically a plugin loaded by X-Plane and provides data out via a web socket server. The library, in turn, uses the libwebsockets library, which I compiled using the the guide from…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
0
votes
1 answer

Libwebsockets Sending Data

When I try to send data from client to server, it says "lwsts[9972]: error on reading from skt".. I have searched through internet and there is not a clear expression. I am sending the data as the test_server.c example does in the LibWebSockets…
neavyseal
  • 53
  • 1
  • 6
0
votes
1 answer

libwebsockets libwebsocket_client_connect function parameter

This is signature of libwebsocket_client_connect(). struct libwebsocket * libwebsocket_client_connect (struct libwebsocket_context * context, const char * address, int port, int ssl_connection, const char * path, const char * host, const char *…
SangminKim
  • 8,358
  • 14
  • 69
  • 125
0
votes
0 answers

Websockets SSL_library_init method crash in ios Simulator

I use CMake to cross compile libwebsockets with ssl support, when I include it on my iOS app. It crashed. Here is the crash error message: [1414827913:9557] NOTICE: Initial logging level 7 [1414827913:9557] NOTICE: Initial logging level 7 …
zilongshanren
  • 489
  • 4
  • 8
0
votes
1 answer

Websockets and security

I'm looking to host some websocket based applications, which should only be accessible via an https page. As such, the server generates the https page with a random key inside. I want to use this key to protect against someone from the outside…
John
  • 3,400
  • 3
  • 31
  • 47
0
votes
2 answers

libwebsockets: Dereferencing pointer to incomplete type error

I'm using libwebsockets and I can't compile a demo code implemented by myself. I created the context: struct libwebsocket_context *context; ... context = libwebsocket_create_context(&info); and when I try to access the members of the struct…
jcfaracco
  • 853
  • 2
  • 6
  • 21
0
votes
1 answer

Overlapping function names when integrating 3pp lib in c

Im trying to integrate a third-party library (libwebsockets) into an application. Now it turned out libwebsockets had the function: unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); And the application had a similiar…
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
0
votes
3 answers

cast from void* to string libwebsocket

I have a small websocket server built with libwebsockets , and I need to receive a string , the problem is that the data received is a *void, but I have trouble to cast it to string . static int my_protocol_callback(struct libwebsocket_context…
-1
votes
2 answers

Jboss EAP 6.4 - Websocket 500 internal server error

=== Java Console log === JBWEB000236: Servlet.service() for servlet default threw exception: java.lang.IllegalStateException: JBWEB000034: Cannot upgrade from HTTP/1.1 without IO events === HTML Code ===
bamossza
  • 3,676
  • 1
  • 29
  • 28
-1
votes
1 answer

Error compiling Mosquitto 1.4.8 with libwebsockets

After I installed libwebsockets 1.4, I wanted to make Mosquitto 1.4.8 run witch Websockets. But when I compile I get some Errors: user@Mate:~/Dokumente/mosquitto-1.4.8$ make set -e; for d in lib client src; do make -C ${d}; done make[1]: Entering…
-1
votes
1 answer

Web Socket or XMPP ? Which is better for mobile application for making chat applications

I want to create a chat application. My chat application is properly working as a real time chat at web server using continuous polling and pushing data. But, Polling is not a good solution for mobile application. Since, Our whole chat is already…
Srijan Kumar
  • 11
  • 1
  • 4
1 2 3
10
11