mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-29 08:19:42 +08:00
Removed dead code in websocket2.c
This commit is contained in:
parent
5e57031724
commit
bd723bdc38
@ -17,18 +17,6 @@ static void signal_handler(int sig_num) {
|
|||||||
s_signal_received = sig_num;
|
s_signal_received = sig_num;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static int iterate_callback(struct mg_connection *c, enum mg_event ev) {
|
|
||||||
if (ev == MG_POLL && c->is_websocket) {
|
|
||||||
char buf[20];
|
|
||||||
int len = snprintf(buf, sizeof(buf), "%lu",
|
|
||||||
(unsigned long) * (time_t *) c->callback_param);
|
|
||||||
mg_websocket_write(c, 1, buf, len);
|
|
||||||
}
|
|
||||||
return MG_TRUE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void handle_websocket_message(struct mg_connection *conn) {
|
static void handle_websocket_message(struct mg_connection *conn) {
|
||||||
struct conn_data *d = (struct conn_data *) conn->connection_param;
|
struct conn_data *d = (struct conn_data *) conn->connection_param;
|
||||||
struct mg_connection *c;
|
struct mg_connection *c;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user