mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +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) {
|
static void iterate_callback(struct mg_connection *c, void *param) {
|
||||||
if (c->is_websocket) {
|
if (c->is_websocket) {
|
||||||
char buf[20];
|
char buf[20];
|
||||||
@@ -32,7 +36,6 @@ static int handler(struct mg_connection *conn) {
|
|||||||
|
|
||||||
mg_websocket_write(conn, 1, conn->content, conn->content_len);
|
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);
|
return conn->content_len == 4 && !memcmp(conn->content, "exit", 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user