![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
server/client
Dependencies: mbed NetServicesMin
Diff: tcp_error.cpp
- Revision:
- 1:6e61ee662fd3
- Parent:
- 0:432b571e11a3
diff -r 432b571e11a3 -r 6e61ee662fd3 tcp_error.cpp --- a/tcp_error.cpp Sun Feb 19 06:21:50 2012 +0000 +++ b/tcp_error.cpp Thu Feb 23 02:38:05 2012 +0000 @@ -3,16 +3,16 @@ #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" + "TCPSOCKET_SETUP TCPSocket not properly configured.\r\n", + "TCPSOCKET_TIMEOUT Connection timed out.\r\n", + "TCPSOCKET_IF Interface has problems, does not exist or is not initialized.\r\n", + "TCPSOCKET_MEM Not enough mem.\r\n", + "TCPSOCKET_INUSE Interface / Port is in use.\r\n", + "TCPSOCKET_EMPTY Connections queue is empty.\r\n", + "TCPSOCKET_RST Connection was reset by remote host.\r\n", + "TCPSOCKET_OK Success.\r\n" }; void dispTcpError(TCPSocketErr err){ - printf("%s\n",tcpErrMes[err]) ; + printf("%s\r\n",tcpErrMes[err]) ; } \ No newline at end of file