SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Revision:
7:d57efbdb6517
Parent:
6:8c44fe7acb82
Child:
8:b35559c14d17
--- a/main.cpp	Wed Aug 17 04:44:14 2011 +0000
+++ b/main.cpp	Wed Aug 17 05:22:15 2011 +0000
@@ -2,16 +2,14 @@
 #include "EthernetNetIf.h"
 #include "SimpleSocket.h"
 
-void echoserver(int port);
-void httpclient(char *url);
-void simpleclient(char *servername, int port);
+void echoserver();
+void httpclient(const char *url);
 
 int main() {
     EthernetNetIf eth;
     EthernetErr ethErr = eth.setup();
     if (ethErr) error("Error %d in setup.\n", ethErr);
 
-    //echoserver(7);
-    httpclient("http://www.senio.co.jp/index.html");
-    //simpleclient("10.0.3.20", 7);
+    //echoserver();
+    httpclient("http://www.iana.org/domains/example/");
 }
\ No newline at end of file