mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
Reorg docs
PUBLISHED_FROM=657a53762ada0ab3fe715a15939eb510a637e37f
This commit is contained in:
1 parent
3a3b433849
commit
5baeba53d7
1 file changed
+3
-4
+3
-4
@@ -2783,10 +2783,6 @@ struct mg_connection *mg_bind_opt(struct mg_mgr *mgr, const char *address,
|
|||||||
struct mg_add_sock_opts add_sock_opts;
|
struct mg_add_sock_opts add_sock_opts;
|
||||||
char host[MG_MAX_HOST_LEN];
|
char host[MG_MAX_HOST_LEN];
|
||||||
|
|
||||||
#if MG_ENABLE_CALLBACK_USERDATA
|
|
||||||
opts.user_data = user_data;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
MG_COPY_COMMON_CONNECTION_OPTIONS(&add_sock_opts, &opts);
|
MG_COPY_COMMON_CONNECTION_OPTIONS(&add_sock_opts, &opts);
|
||||||
|
|
||||||
#if MG_ENABLE_TUN
|
#if MG_ENABLE_TUN
|
||||||
@@ -2850,6 +2846,9 @@ struct mg_connection *mg_bind_opt(struct mg_mgr *mgr, const char *address,
|
|||||||
}
|
}
|
||||||
mg_add_conn(nc->mgr, nc);
|
mg_add_conn(nc->mgr, nc);
|
||||||
|
|
||||||
|
#if MG_ENABLE_CALLBACK_USERDATA
|
||||||
|
(void) user_data;
|
||||||
|
#endif
|
||||||
return nc;
|
return nc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user