WebSocket client library

Revision:
12:1f6b9451a608
Parent:
11:094c86973097
Child:
13:3b058372cad9
--- a/Websocket.h	Thu Aug 25 06:11:04 2011 +0000
+++ b/Websocket.h	Fri Aug 26 09:17:30 2011 +0000
@@ -39,9 +39,9 @@
 
 /** Websocket client Class. 
  *
- * Warning: you must use a wifi module (Wifly RN131-C or RN131-g) to use this class or an ethernet connection
+ * Warning: you must use a wifi module (Wifly RN131-C) to use this class
  *
- * Example with a Wifi module (Wifly RN131-C or RNR131-g):
+ * Example:
  * @code
  * #include "mbed.h"
  * #include "Wifly.h"
@@ -54,7 +54,7 @@
  * int main()
  * {
  *   wifly = new Wifly(p9, p10, p20, "network", "password", true);
- *   ws = new Websocket("ws://ip_domain:443/path", wifly);
+ *   ws = new Websocket("ws://ip_domain/path", 80, wifly);
  *   
  *   if(wifly->Join())
  *   {
@@ -75,26 +75,6 @@
  *       
  * }
  * @endcode
- *
- *
- * Example with an Ethernet Jack:
- * @code
- * #include "mbed.h"
- * #include "Websocket.h"
- * 
- * Serial pc(USBTX, USBRX);
- * Websocket * ws;
- *
- * int main()
- * {
- *   ws = new Websocket("ws://ip_domain:443/path");
- *
- *   while(!ws->connect())
- *      pc.printf("cannot connect webasocekt\r\n");
- *       
- *   ws->Send("Hello World!");
- * }
- * @endcode
  */
 class Websocket
 {
@@ -138,9 +118,9 @@
         bool read(char * message);
         
         /**
-        * To see if there is an active websocket connection
+        * To see if there is a websocket connection active
         *
-        * @return true if there is an active websocket connection
+        * @return true if there is a connection active
         */
         bool connected();
         
@@ -165,6 +145,8 @@
         Wifly * wifi;
         
         bool eth_connected;
+        bool eth_readable;
+        bool eth_writeable;
         char eth_rx[512];
         bool response_server_eth;