SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Revision:
15:ae9aff693b07
Parent:
13:1adb19edf716
Child:
17:50c0e9c5ca79
--- a/main.cpp	Fri Aug 19 02:42:57 2011 +0000
+++ b/main.cpp	Fri Aug 19 05:18:29 2011 +0000
@@ -5,8 +5,7 @@
 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);
+void proxyserver(int port, char *target, int targetport);
 
 int main() {
     EthernetNetIf eth;
@@ -14,8 +13,7 @@
     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");
-    //simpleclient("10.0.3.20", 7);
-    //stationclient("DigitalIn 9");
+    //echoclient("10.0.3.20", 7777, "Hello world\n");
+    //httpclient("http://www.senio.co.jp/index.html");
+    proxyserver(8888, "10.0.3.20", 7777);
 }
\ No newline at end of file