Web Socket Client
Fork of WebSocketClient by
Diff: Websocket.h
- Revision:
- 8:860d3b8e21f9
- Parent:
- 6:86e89a0369b9
--- a/Websocket.h Fri Feb 08 12:33:04 2013 +0000 +++ b/Websocket.h Thu Jun 15 20:18:14 2017 +0000 @@ -33,8 +33,6 @@ #include "mbed.h" -#include "TCPSocketConnection.h" - /** Websocket client Class. * * Example (ethernet network): @@ -73,7 +71,7 @@ * * @param url The Websocket url in the form "ws://ip_domain[:port]/path" (by default: port = 80) */ - Websocket(char * url); + Websocket(NetworkStack *ns, char * url); /** * Connect to the websocket url @@ -134,8 +132,10 @@ uint16_t port; char host[32]; char path[64]; + bool connected; - TCPSocketConnection socket; + TCPSocket socket; + NetworkStack *m_ns; int read(char * buf, int len, int min_len = -1); int write(char * buf, int len);