typedef enum { VM_SOC_SUCCESS = 0, VM_SOC_ERROR = -1, VM_SOC_WOULDBLOCK = -2, VM_SOC_LIMIT_RESOURCE = -3, VM_SOC_INVALID_SOCKET = -4, VM_SOC_INVALID_ACCOUNT = -5, VM_SOC_NAMETOOLONG = -6, VM_SOC_ALREADY = -7, VM_SOC_OPNOTSUPP = -8, VM_SOC_CONNABORTED = -9, VM_SOC_INVAL = -10, VM_SOC_PIPE = -11, VM_SOC_NOTCONN = -12, VM_SOC_MSGSIZE = -13, VM_SOC_BEARER_FAIL = -14, VM_SOC_CONNRESET = -15, VM_SOC_DHCP_ERROR = -16, VM_SOC_IP_CHANGED = -17, VM_SOC_ADDRINUSE = -18, VM_SOC_CANCEL_ACT_BEARER = -19, VM_SOC_RESULT_MAX = 0x7FFFFFFF } VM_SOC_RESULT;
typedef enum { VM_SOC_SUCCESS = 0, VM_SOC_ERROR = -1, VM_SOC_WOULDBLOCK = -2, VM_SOC_LIMIT_RESOURCE = -3, VM_SOC_INVALID_SOCKET = -4, VM_SOC_INVALID_ACCOUNT = -5, VM_SOC_NAMETOOLONG = -6, VM_SOC_ALREADY = -7, VM_SOC_OPNOTSUPP = -8, VM_SOC_CONNABORTED = -9, VM_SOC_INVAL = -10, VM_SOC_PIPE = -11, VM_SOC_NOTCONN = -12, VM_SOC_MSGSIZE = -13, VM_SOC_BEARER_FAIL = -14, VM_SOC_CONNRESET = -15, VM_SOC_DHCP_ERROR = -16, VM_SOC_IP_CHANGED = -17, VM_SOC_ADDRINUSE = -18, VM_SOC_CANCEL_ACT_BEARER = -19, VM_SOC_RESULT_MAX = 0x7FFFFFFF } VM_SOC_RESULT;
Socket return codes. The negative values stand for errors.
vmsock.h
|
Members |
Description |
|
VM_SOC_SUCCESS = 0 |
Success. |
|
VM_SOC_ERROR = -1 |
Error. |
|
VM_SOC_WOULDBLOCK = -2 |
Not done yet. |
|
VM_SOC_LIMIT_RESOURCE = -3 |
Limited resource. |
|
VM_SOC_INVALID_SOCKET = -4 |
Invalid socket. |
|
VM_SOC_INVALID_ACCOUNT = -5 |
Invalid account ID. |
|
VM_SOC_NAMETOOLONG = -6 |
Address too long. |
|
VM_SOC_ALREADY = -7 |
Operation already in progress. |
|
VM_SOC_OPNOTSUPP = -8 |
Operation not support. |
|
VM_SOC_CONNABORTED = -9 |
Software caused connection abort. |
|
VM_SOC_INVAL = -10 |
Invalid argument. |
|
VM_SOC_PIPE = -11 |
Broken pipe. |
|
VM_SOC_NOTCONN = -12 |
Socket is not connected. |
|
VM_SOC_MSGSIZE = -13 |
Message is too long. |
|
VM_SOC_BEARER_FAIL = -14 |
Bearer is broken. |
|
VM_SOC_CONNRESET = -15 |
TCP half-write close, i.e., FINED. |
|
VM_SOC_DHCP_ERROR = -16 |
DHCP error. |
|
VM_SOC_IP_CHANGED = -17 |
IP has changed. |
|
VM_SOC_ADDRINUSE = -18 |
Address already in use. |
|
VM_SOC_CANCEL_ACT_BEARER = -19 |
Cancel the activation of bearer. |
|
VM_SOC_RESULT_MAX = 0x7FFFFFFF |
Forces the compiler to use 4-byte integer for enum. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.