User`s guide

KwikNet Error Codes
K
A
DAK
B - 1
B. KwikNet Error Codes
TCP/IP Socket Error Codes
TCP/IP socket error codes are signed integers. An error code of -1 indicates that a socket
error has occurred. Codes greater than zero describe the reason for the error. To assist
you during testing, the hexadecimal value of the least significant 16-bits of the error code
is listed as it might appear in a register or memory dump.
Mnemonic Value Value Meaning
(dec) (hex)
0 0x0000 Socket call successful
KN_SOCKERR -1 0xFFFF Socket call failed
(Use kn_errno() to fetch reason)
EPERM 201 0x00C9 Permanent error
EBADF 209 0x00D1 The socket descriptor s is invalid
(Use KN_EBADF if EBADF conflicts with C)
ENOMEM 212 0x00D4 No memory available
EINVAL 222 0x00DE Invalid parameter
EMFILE 224 0x00E0 No sockets available
EWOULDBLOCK 235 0x00EB Caller would block
EINPROGRESS 236 0x00EC Operation is in progress
EALREADY 237 0x00ED Operation is already in progress
EDESTADDRREQ 239 0x00EF Destination address is missing
EMSGSIZE 240 0x00F0 Invalid message size
EPROTOTYPE 241 0x00F1 Protocol type is not supported
ENOPROTOOPT 242 0x00F2 The option is unknown for this protocol
EPROTONOSUPPORT 243 0x00F3 Socket type and/or protocol not supported
EOPNOTSUPP 245 0x00F5 Operation not supported
EAFNOSUPPORT 247 0x00F7 Address family is not supported
EADDRINUSE 248 0x00F8 The specified address is already in use
EADDRNOTAVAIL 249 0x00F9 The specified address is not available
ECONNABORTED 253 0x00FD The connection was aborted
ECONNRESET 254 0x00FE The connection has been reset
ENOBUFS 255 0x00FF No memory buffers are available
EISCONN 256 0x0100 The socket is already connected
ENOTCONN 257 0x0101 The socket is not connected
ESHUTDOWN 258 0x0102 Connection has been shut down
ETIMEDOUT 260 0x0104 Operation timed out
ECONNREFUSED 261 0x0105 The connection was refused
EHOSTUNREACH 265 0x0109 Host destination address is not reachable