Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
4c038508
Commit
4c038508
authored
Nov 11, 2016
by
Marko Mikulicic
Committed by
Cesanta Bot
Nov 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract tun proto name constant
PUBLISHED_FROM=574362ea7d90a17cd49963a430559824cfcff802
parent
15db11c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mongoose.c
mongoose.c
+4
-1
No files found.
mongoose.c
View file @
4c038508
...
@@ -1815,6 +1815,8 @@ int64_t cs_to64(const char *s) {
...
@@ -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) {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment