From 613bc32f73c74d25575c0f6107d5da78163f7744 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 1 Dec 2014 22:16:17 +0800 Subject: [PATCH] test echo unbreak no server Signed-off-by: Andy Green --- test-server/test-echo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-server/test-echo.c b/test-server/test-echo.c index 09608e3a..f1e7b4e6 100644 --- a/test-server/test-echo.c +++ b/test-server/test-echo.c @@ -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]);