![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
server/client
Dependencies: mbed NetServicesMin
tcp_error.cpp@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 | #include "mbed.h" |
recotana | 0:432b571e11a3 | 2 | #include "tcp_error.h" |
recotana | 0:432b571e11a3 | 3 | #include "TCPSocket.h" |
recotana | 0:432b571e11a3 | 4 | |
recotana | 0:432b571e11a3 | 5 | char tcpErrMes[8][100]={ |
recotana | 0:432b571e11a3 | 6 | "TCPSOCKET_SETUP TCPSocket not properly configured.\n", |
recotana | 0:432b571e11a3 | 7 | "TCPSOCKET_TIMEOUT Connection timed out.\n", |
recotana | 0:432b571e11a3 | 8 | "TCPSOCKET_IF Interface has problems, does not exist or is not initialized.\n", |
recotana | 0:432b571e11a3 | 9 | "TCPSOCKET_MEM Not enough mem.\n", |
recotana | 0:432b571e11a3 | 10 | "TCPSOCKET_INUSE Interface / Port is in use.\n", |
recotana | 0:432b571e11a3 | 11 | "TCPSOCKET_EMPTY Connections queue is empty.\n", |
recotana | 0:432b571e11a3 | 12 | "TCPSOCKET_RST Connection was reset by remote host.\n", |
recotana | 0:432b571e11a3 | 13 | "TCPSOCKET_OK Success.\n" |
recotana | 0:432b571e11a3 | 14 | }; |
recotana | 0:432b571e11a3 | 15 | |
recotana | 0:432b571e11a3 | 16 | void dispTcpError(TCPSocketErr err){ |
recotana | 0:432b571e11a3 | 17 | printf("%s\n",tcpErrMes[err]) ; |
recotana | 0:432b571e11a3 | 18 | } |