![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
server/client
Dependencies: mbed NetServicesMin
Diff: tcp_error.cpp
- Revision:
- 0:432b571e11a3
- Child:
- 1:6e61ee662fd3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tcp_error.cpp Sun Feb 19 06:21:50 2012 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "tcp_error.h" +#include "TCPSocket.h" + +char tcpErrMes[8][100]={ + "TCPSOCKET_SETUP TCPSocket not properly configured.\n", + "TCPSOCKET_TIMEOUT Connection timed out.\n", + "TCPSOCKET_IF Interface has problems, does not exist or is not initialized.\n", + "TCPSOCKET_MEM Not enough mem.\n", + "TCPSOCKET_INUSE Interface / Port is in use.\n", + "TCPSOCKET_EMPTY Connections queue is empty.\n", + "TCPSOCKET_RST Connection was reset by remote host.\n", + "TCPSOCKET_OK Success.\n" +}; + +void dispTcpError(TCPSocketErr err){ + printf("%s\n",tcpErrMes[err]) ; +} \ No newline at end of file