server/client
Dependencies: mbed NetServicesMin
tcp_client.h@0:432b571e11a3, 2012-02-19 (annotated)
- Committer:
- recotana
- Date:
- Sun Feb 19 06:21:50 2012 +0000
- Revision:
- 0:432b571e11a3
- Child:
- 1:6e61ee662fd3
ver0.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
recotana | 0:432b571e11a3 | 1 | #ifndef _TCP_CLIENT_ |
recotana | 0:432b571e11a3 | 2 | #define _TCP_CLIENT_ |
recotana | 0:432b571e11a3 | 3 | |
recotana | 0:432b571e11a3 | 4 | #include "EthernetNetIf.h" |
recotana | 0:432b571e11a3 | 5 | #include "TCPSocket.h" |
recotana | 0:432b571e11a3 | 6 | |
recotana | 0:432b571e11a3 | 7 | |
recotana | 0:432b571e11a3 | 8 | |
recotana | 0:432b571e11a3 | 9 | void clientInit(void); |
recotana | 0:432b571e11a3 | 10 | int clientConnect(IpAddr ip , int port); |
recotana | 0:432b571e11a3 | 11 | |
recotana | 0:432b571e11a3 | 12 | void onSendEvent(TCPSocketEvent e); |
recotana | 0:432b571e11a3 | 13 | void connectCheckStart(IpAddr ip , int port); |
recotana | 0:432b571e11a3 | 14 | |
recotana | 0:432b571e11a3 | 15 | int tcpSend(char *data,int length); |
recotana | 0:432b571e11a3 | 16 | |
recotana | 0:432b571e11a3 | 17 | void checkConnect(void); |
recotana | 0:432b571e11a3 | 18 | void socketClose(void); |
recotana | 0:432b571e11a3 | 19 | |
recotana | 0:432b571e11a3 | 20 | #endif |