UDPversion

Dependencies:   XBee mbed NetServicesMin

tcpip/tcp_error.cpp

Committer:
recotana
Date:
2012-04-15
Revision:
1:3a46d2725374
Parent:
0:84a3b029656e

File content as of revision 1:3a46d2725374:

#include "mbed.h"
#include "tcp_error.h"
#include "TCPSocket.h"
extern Serial pc;
char tcpErrMes[8][100]={
    "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){
     pc.printf("%s\r\n",tcpErrMes[err]) ;
}