SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Committer:
yamaguch
Date:
Wed Aug 17 05:30:35 2011 +0000
Revision:
8:b35559c14d17
Parent:
7:d57efbdb6517
Child:
10:62ce72ee3e91
fixed w/ a workaround for name \printf\ issue

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 8:b35559c14d17 5 void echoserver(int port);
yamaguch 8:b35559c14d17 6 void httpclient(char *url);
yamaguch 8:b35559c14d17 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 8:b35559c14d17 14 //echoserver(7);
yamaguch 8:b35559c14d17 15 httpclient("http://www.senio.co.jp/index.html");
yamaguch 8:b35559c14d17 16 //simpleclient("10.0.3.20", 7);
yamaguch 0:c41b68a4a296 17 }