SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Committer:
yamaguch
Date:
Wed Aug 17 04:44:14 2011 +0000
Revision:
6:8c44fe7acb82
Parent:
4:59056313fbfa
Child:
7:d57efbdb6517
broken

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yamaguch 1:7350a2598a80 1 #include "mbed.h"
yamaguch 1:7350a2598a80 2 #include "EthernetNetIf.h"
yamaguch 4:59056313fbfa 3 #include "SimpleSocket.h"
yamaguch 2:304672a01127 4
yamaguch 6:8c44fe7acb82 5 void echoserver(int port);
yamaguch 6:8c44fe7acb82 6 void httpclient(char *url);
yamaguch 6:8c44fe7acb82 7 void simpleclient(char *servername, int port);
yamaguch 1:7350a2598a80 8
yamaguch 1:7350a2598a80 9 int main() {
yamaguch 4:59056313fbfa 10 EthernetNetIf eth;
yamaguch 4:59056313fbfa 11 EthernetErr ethErr = eth.setup();
yamaguch 4:59056313fbfa 12 if (ethErr) error("Error %d in setup.\n", ethErr);
yamaguch 2:304672a01127 13
yamaguch 6:8c44fe7acb82 14 //echoserver(7);
yamaguch 6:8c44fe7acb82 15 httpclient("http://www.senio.co.jp/index.html");
yamaguch 6:8c44fe7acb82 16 //simpleclient("10.0.3.20", 7);
yamaguch 0:c41b68a4a296 17 }