SimpleSocket 1.0 examples
Dependencies: EthernetNetIf SimpleSocket 1.0 mbed
main.cpp@4:59056313fbfa, 2011-08-16 (annotated)
- Committer:
- yamaguch
- Date:
- Tue Aug 16 12:30:11 2011 +0000
- Revision:
- 4:59056313fbfa
- Parent:
- 3:464dd710e6f6
- Child:
- 6:8c44fe7acb82
initial creation
Who changed what in which revision?
User | Revision | Line number | New 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 |
4:59056313fbfa | 5 | void echoserver(); |
yamaguch |
4:59056313fbfa | 6 | void httpclient(); |
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 |
4:59056313fbfa | 13 | echoserver(); |
yamaguch |
4:59056313fbfa | 14 | //httpclient(); |
yamaguch |
0:c41b68a4a296 | 15 | } |