Status codes and error values for TCP socket operations.
More...
|
#define | TCP_ERR_NORMAL (0) |
| Operation completed successfully with no errors.
|
|
#define | TCP_ERR_TIMEOUT (-1) |
| Operation timed out before completion.
|
|
#define | TCP_ERR_NOCON (-2) |
| No active connection exists on this socket.
|
|
#define | TCP_ERR_CLOSING (-3) |
| Socket is currently in the closing state.
|
|
#define | TCP_ERR_NOSUCH_SOCKET (-4) |
| The specified socket does not exist.
|
|
#define | TCP_ERR_NONE_AVAIL (-5) |
| No sockets available in the system pool.
|
|
#define | TCP_ERR_CON_RESET (-6) |
| Connection was reset by remote host.
|
|
#define | TCP_ERR_CON_ABORT (-7) |
| Connection was aborted.
|
|
Status codes and error values for TCP socket operations.
#include< tcp.h>
When calling API functions that return a file descriptor (such as listen(), accept(), connect()), a negative value indicates an error condition, while a positive value represents a valid file descriptor number.
- Note
- See detailed return code information, causes and solutions at: Programmers Guide TCP Error Codes