UDPversion
Dependencies: XBee mbed NetServicesMin
tcpip/tcp_error.cpp@1:3a46d2725374, 2012-04-15 (annotated)
- Committer:
- recotana
- Date:
- Sun Apr 15 10:49:08 2012 +0000
- Revision:
- 1:3a46d2725374
- Parent:
- 0:84a3b029656e
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
recotana | 0:84a3b029656e | 1 | #include "mbed.h" |
recotana | 0:84a3b029656e | 2 | #include "tcp_error.h" |
recotana | 0:84a3b029656e | 3 | #include "TCPSocket.h" |
recotana | 0:84a3b029656e | 4 | extern Serial pc; |
recotana | 0:84a3b029656e | 5 | char tcpErrMes[8][100]={ |
recotana | 0:84a3b029656e | 6 | "TCPSOCKET_SETUP TCPSocket not properly configured.\r\n", |
recotana | 0:84a3b029656e | 7 | "TCPSOCKET_TIMEOUT Connection timed out.\r\n", |
recotana | 0:84a3b029656e | 8 | "TCPSOCKET_IF Interface has problems, does not exist or is not initialized.\r\n", |
recotana | 0:84a3b029656e | 9 | "TCPSOCKET_MEM Not enough mem.\r\n", |
recotana | 0:84a3b029656e | 10 | "TCPSOCKET_INUSE Interface / Port is in use.\r\n", |
recotana | 0:84a3b029656e | 11 | "TCPSOCKET_EMPTY Connections queue is empty.\r\n", |
recotana | 0:84a3b029656e | 12 | "TCPSOCKET_RST Connection was reset by remote host.\r\n", |
recotana | 0:84a3b029656e | 13 | "TCPSOCKET_OK Success.\r\n" |
recotana | 0:84a3b029656e | 14 | }; |
recotana | 0:84a3b029656e | 15 | |
recotana | 0:84a3b029656e | 16 | void dispTcpError(TCPSocketErr err){ |
recotana | 0:84a3b029656e | 17 | pc.printf("%s\r\n",tcpErrMes[err]) ; |
recotana | 0:84a3b029656e | 18 | } |