WebSocket client library

Revision:
17:1e339933c97a
Parent:
16:d4518b50f653
Child:
18:ef44ea603938
--- a/Websocket.h	Wed Sep 21 09:31:36 2011 +0000
+++ b/Websocket.h	Thu Sep 22 10:09:12 2011 +0000
@@ -33,6 +33,7 @@
 
 #include "mbed.h"
 #include "Wifly.h"
+#include <string>
 
 #include "EthernetNetIf.h"
 #include "TCPSocket.h"
@@ -160,6 +161,13 @@
         */
         bool close();
         
+        /**
+        * Accessor: get path from the websocket url
+        *
+        * @return path
+        */
+        std::string getPath();
+        
         enum Type {
             WIF,
             ETH
@@ -171,9 +179,9 @@
         
         void fillFields(char * url);
         
-        char ip_domain[30];
-        char path[30];
-        char port[6];
+        std::string ip_domain;
+        std::string path;
+        std::string port;
         
         Wifly * wifi;