mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Extract tun proto name constant
PUBLISHED_FROM=574362ea7d90a17cd49963a430559824cfcff802
This commit is contained in:
1 parent
15db11c0e6
commit
4c038508f2
1 file changed
+4
-1
+4
-1
@@ -1815,6 +1815,8 @@ int64_t cs_to64(const char *s) {
|
|||||||
#define MG_TUN_RECONNECT_INTERVAL 1
|
#define MG_TUN_RECONNECT_INTERVAL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define MG_TUN_PROTO_NAME "mg_tun"
|
||||||
|
|
||||||
#define MG_TUN_DATA_FRAME 0x0
|
#define MG_TUN_DATA_FRAME 0x0
|
||||||
#define MG_TUN_F_END_STREAM 0x1
|
#define MG_TUN_F_END_STREAM 0x1
|
||||||
|
|
||||||
@@ -10886,7 +10888,8 @@ static void mg_tun_do_reconnect(struct mg_tun_client *client) {
|
|||||||
#endif
|
#endif
|
||||||
/* HTTP/Websocket listener */
|
/* HTTP/Websocket listener */
|
||||||
if ((dc = mg_connect_ws_opt(client->mgr, mg_tun_client_handler, opts,
|
if ((dc = mg_connect_ws_opt(client->mgr, mg_tun_client_handler, opts,
|
||||||
client->disp_url, "mg_tun", NULL)) == NULL) {
|
client->disp_url, MG_TUN_PROTO_NAME, NULL)) ==
|
||||||
|
NULL) {
|
||||||
LOG(LL_ERROR,
|
LOG(LL_ERROR,
|
||||||
("Cannot connect to WS server on addr [%s]\n", client->disp_url));
|
("Cannot connect to WS server on addr [%s]\n", client->disp_url));
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user