SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Revision:
13:1adb19edf716
Parent:
12:52170a866d4a
Child:
15:ae9aff693b07
--- a/main.cpp	Fri Aug 19 02:17:01 2011 +0000
+++ b/main.cpp	Fri Aug 19 02:42:25 2011 +0000
@@ -6,7 +6,7 @@
 void echoclient(char *server, int port, char *message);
 void httpclient(char *url);
 void simpleclient(char *servername, int port);
-void stationclient(char *request);
+//void stationclient(char *request);
 
 int main() {
     EthernetNetIf eth;
@@ -14,8 +14,8 @@
     if (ethErr) error("Error %d in setup.\n", ethErr);
 
     //echoserver(7777);
-    //echoclient("10.0.3.20", 7777, "Hello world\n");
-    httpclient("http://10.0.3.20:7777/index.html");
+    echoclient("10.0.3.20", 7777, "Hello world\n");
+    //httpclient("http://10.0.3.20:7777/index.html");
     //simpleclient("10.0.3.20", 7);
     //stationclient("DigitalIn 9");
 }
\ No newline at end of file