WebSocket client library
Diff: Websocket.h
- Revision:
- 18:ef44ea603938
- Parent:
- 17:1e339933c97a
- Child:
- 22:f4aac491ea26
--- a/Websocket.h Thu Sep 22 10:09:12 2011 +0000 +++ b/Websocket.h Thu Oct 20 09:52:41 2011 +0000 @@ -58,7 +58,7 @@ * wifly = new Wifly(p9, p10, p20, "network", "password", true); * ws = new Websocket("ws://ip_domain/path", wifly); * - * if(wifly->Join()) + * if(wifly->join()) * { * if(ws->connect()) * { @@ -66,7 +66,7 @@ * while(1) * { * wait(0.1); - * ws->Send("test"); + * ws->send("test"); * } * } * else @@ -98,7 +98,7 @@ * while(1) * { * wait(0.1); - * ws->Send("test"); + * ws->send("test"); * } * } * else @@ -110,7 +110,7 @@ { public: /** - * Constructor for a wifi module + * Constructor * * @param url The Websocket url in the form "ws://ip_domain[:port]/path" (by default: port = 80) * @param wifi pointer to a wifi module (the communication will be establish by this module) @@ -132,11 +132,11 @@ bool connect(); /** - * Send a string according to the websocket format: \x00 str \xff + * Send a string according to the websocket format: 00 str ff * * @param str string to be sent */ - void Send(char * str); + void send(char * str); /** * Read a websocket message