mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-17 10:49:47 +00:00
Made qcomm example compile
This commit is contained in:
1 parent
9ac67770eb
commit
a7889756a9
1 file changed
+4
-1
+4
-1
@@ -1,3 +1,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include "core.h"
|
||||
|
||||
static void iterate_callback(struct mg_connection *c, void *param) {
|
||||
if (c->is_websocket) {
|
||||
char buf[20];
|
||||
@@ -32,7 +36,6 @@ static int handler(struct mg_connection *conn) {
|
||||
|
||||
mg_websocket_write(conn, 1, conn->content, conn->content_len);
|
||||
|
||||
DBG(("WS msg len: %d", conn->content_len));
|
||||
return conn->content_len == 4 && !memcmp(conn->content, "exit", 4);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user