Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
ef66e84e
Commit
ef66e84e
authored
Oct 03, 2018
by
Jeroen Vreeken
Browse files
Update console_httpd to new libwebsockets
parent
1da7ba1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
console/console/console_httpd.c
View file @
ef66e84e
...
...
@@ -692,7 +692,9 @@ static int callback_http(struct lws *wsi,
switch
(
reason
)
{
case
LWS_CALLBACK_RECEIVE
:
{
char
*
rcv
=
in
;
char
rcv
[
len
+
1
];
memcpy
(
rcv
,
in
,
len
);
rcv
[
len
]
=
0
;
struct
ws_client
*
ws_client
;
printf
(
"lws receive: %s
\n
"
,
rcv
);
...
...
@@ -836,7 +838,11 @@ static int callback_http(struct lws *wsi,
free
(
resource_path
);
break
;
}
case
LWS_CALLBACK_HTTP_FILE_COMPLETION
:
/* kill the connection after we sent one file */
r
=
-
1
;
break
;
case
LWS_CALLBACK_ADD_POLL_FD
:
{
struct
lws_pollargs
*
args
=
in
;
...
...
Write
Preview
Supports
Markdown
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