SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Revision:
10:62ce72ee3e91
Parent:
8:b35559c14d17
Child:
11:04c0acd7f510
diff -r 11514b2e980f -r 62ce72ee3e91 main.cpp
--- a/main.cpp	Thu Aug 18 04:24:04 2011 +0000
+++ b/main.cpp	Thu Aug 18 08:46:47 2011 +0000
@@ -3,15 +3,19 @@
 #include "SimpleSocket.h"
 
 void echoserver(int port);
+void echoclient(char *server, int port, char *message);
 void httpclient(char *url);
 void simpleclient(char *servername, int port);
+void stationclient(char *request);
 
 int main() {
     EthernetNetIf eth;
     EthernetErr ethErr = eth.setup();
     if (ethErr) error("Error %d in setup.\n", ethErr);
 
-    //echoserver(7);
+    //echoserver(7777);
+    //echoclient("10.0.3.20", 7777, "Hello world\n");
     httpclient("http://www.senio.co.jp/index.html");
     //simpleclient("10.0.3.20", 7);
+    //stationclient("DigitalIn 9");
 }
\ No newline at end of file