From f42d4292cbbfa445ab8b89545832960da325fb2f Mon Sep 17 00:00:00 2001 From: Nick Withers Date: Mon, 15 Dec 2014 13:26:31 +1100 Subject: Enable WebSocket support in the Mongoose HTTP server --- testsuites/libtests/mghttpd01/test-http-client.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'testsuites/libtests/mghttpd01/test-http-client.h') diff --git a/testsuites/libtests/mghttpd01/test-http-client.h b/testsuites/libtests/mghttpd01/test-http-client.h index d3e7cdb708..811c790110 100644 --- a/testsuites/libtests/mghttpd01/test-http-client.h +++ b/testsuites/libtests/mghttpd01/test-http-client.h @@ -36,7 +36,7 @@ void httpc_init_context( bool httpc_open_connection( httpc_context *ctx, - char *targethost, + const char *targethost, int targetport ); @@ -45,8 +45,19 @@ bool httpc_close_connection( ); bool httpc_send_request( - httpc_context *ctx, - char *request, + const httpc_context *ctx, + const char *request, + char *response, + int responsesize +); + +bool httpc_ws_open_connection( + const httpc_context *ctx +); + +bool httpc_ws_send_request( + const httpc_context *ctx, + const char *request, char *response, int responsesize ); -- cgit v1.2.3