mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
test echo unbreak no server
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
49d0ce17d5
commit
613bc32f73
1 changed files with 4 additions and 0 deletions
|
@ -101,14 +101,18 @@ do_rx:
|
|||
break;
|
||||
|
||||
case LWS_CALLBACK_CLIENT_RECEIVE:
|
||||
#ifndef LWS_NO_SERVER
|
||||
if (versa)
|
||||
goto do_rx;
|
||||
#endif
|
||||
lwsl_notice("Client RX: %s", (char *)in);
|
||||
break;
|
||||
|
||||
case LWS_CALLBACK_CLIENT_WRITEABLE:
|
||||
#ifndef LWS_NO_SERVER
|
||||
if (versa)
|
||||
goto do_tx;
|
||||
#endif
|
||||
/* we will send our packet... */
|
||||
pss->len = sprintf((char *)&pss->buf[LWS_SEND_BUFFER_PRE_PADDING], "hello from libwebsockets-test-echo client pid %d index %d\n", getpid(), pss->index++);
|
||||
lwsl_notice("Client TX: %s", &pss->buf[LWS_SEND_BUFFER_PRE_PADDING]);
|
||||
|
|
Loading…
Add table
Reference in a new issue