diff options
author | Nick Withers <nick.withers@anu.edu.au> | 2014-12-15 13:26:31 +1100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-15 07:44:56 +0100 |
commit | f42d4292cbbfa445ab8b89545832960da325fb2f (patch) | |
tree | 867494618a2d959a460702443cbaf71ffdce0f0b /testsuites/libtests/mghttpd01/test-http-client.h | |
parent | bsp/lpc32xx: Fix memory map (diff) | |
download | rtems-f42d4292cbbfa445ab8b89545832960da325fb2f.tar.bz2 |
Enable WebSocket support in the Mongoose HTTP server
Diffstat (limited to 'testsuites/libtests/mghttpd01/test-http-client.h')
-rw-r--r-- | testsuites/libtests/mghttpd01/test-http-client.h | 17 |
1 files changed, 14 insertions, 3 deletions
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 ); |