SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Committer:
yamaguch
Date:
Wed Aug 17 05:22:15 2011 +0000
Revision:
7:d57efbdb6517
Parent:
6:8c44fe7acb82
Child:
8:b35559c14d17
writef instead of printf seems to fix the problem

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 7:d57efbdb6517 5 void echoserver();
yamaguch 7:d57efbdb6517 6 void httpclient(const char *url);
yamaguch 1:7350a2598a80 7
yamaguch 1:7350a2598a80 8 int main() {
yamaguch 4:59056313fbfa 9 EthernetNetIf eth;
yamaguch 4:59056313fbfa 10 EthernetErr ethErr = eth.setup();
yamaguch 4:59056313fbfa 11 if (ethErr) error("Error %d in setup.\n", ethErr);
yamaguch 2:304672a01127 12
yamaguch 7:d57efbdb6517 13 //echoserver();
yamaguch 7:d57efbdb6517 14 httpclient("http://www.iana.org/domains/example/");
yamaguch 0:c41b68a4a296 15 }