comparison cdg3/cdginc-conservative/p_tcpip.val @ 16:c15047b3d00d

cdg3: import from freecalypso-citrine/cdg
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2016 16:27:34 +0000
parents
children
comparison
equal deleted inserted replaced
15:c8bdae60fcb1 16:c15047b3d00d
1 /*
2 +--------------------------------------------------------------------------+
3 | PROJECT : PROTOCOL STACK |
4 | FILE : p_tcpip.val |
5 | SOURCE : "sap\tcpip.pdf" |
6 | LastModified : "2003-09-05" |
7 | IdAndVersion : "8462.000.03.005" |
8 | SrcFileTime : "Thu Nov 29 09:55:14 2007" |
9 | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:52:55 2014 |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! |
11 +--------------------------------------------------------------------------+
12 */
13
14 /* PRAGMAS
15 * PREFIX : NONE
16 * COMPATIBILITY_DEFINES : NO (require PREFIX)
17 * ALWAYS_ENUM_IN_VAL_FILE: NO
18 * ENABLE_GROUP: NO
19 * CAPITALIZE_TYPENAME: NO
20 */
21
22
23 #ifndef P_TCPIP_VAL
24 #define P_TCPIP_VAL
25
26
27 #define CDG_ENTER__P_TCPIP_VAL
28
29 #define CDG_ENTER__FILENAME _P_TCPIP_VAL
30 #define CDG_ENTER__P_TCPIP_VAL__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_TCPIP_VAL__LAST_MODIFIED _2003_09_05
32 #define CDG_ENTER__P_TCPIP_VAL__ID_AND_VERSION _8462_000_03_005
33
34 #define CDG_ENTER__P_TCPIP_VAL__SRC_FILE_TIME _Thu_Nov_29_09_55_14_2007
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_TCPIP_VAL
39
40 #undef CDG_ENTER__FILENAME
41
42
43 /*
44 * Value constants for VAL_ipproto
45 */
46 #define TCPIP_IPPROTO_TCP (0x6) /* Value for TCP */
47 #define TCPIP_IPPROTO_UDP (0x11) /* Value for UDP */
48
49 /*
50 * Value constants for VAL_event_type
51 */
52 #define TCPIP_EVT_CREATE_CNF (0x1) /* Result of TCPIP_CREATE_REQ */
53 #define TCPIP_EVT_CLOSE_CNF (0x2) /* Result of TCPIP_CLOSE_REQ */
54 #define TCPIP_EVT_BIND_CNF (0x3) /* Result of TCPIP_BIND_REQ */
55 #define TCPIP_EVT_LISTEN_CNF (0x4) /* Result of TCPIP_LISTEN_REQ */
56 #define TCPIP_EVT_CONNECT_CNF (0x5) /* Result of TCPIP_CONNECT_REQ */
57 #define TCPIP_EVT_SOCKNAME_CNF (0x6) /* Result of TCPIP_SOCKNAME_REQ */
58 #define TCPIP_EVT_PEERNAME_CNF (0x7) /* Result of TCPIP_PEERNAME_REQ */
59 #define TCPIP_EVT_HOSTINFO_CNF (0x8) /* Result of TCPIP_HOSTINFO_REQ */
60 #define TCPIP_EVT_MTU_SIZE_CNF (0x9) /* Result of TCPIP_MTU_SIZE_REQ */
61 #define TCPIP_EVT_RECV_IND (0xa) /* Indication of incoming data */
62 #define TCPIP_EVT_CONNECT_IND (0xb) /* Indication of incoming connection */
63 #define TCPIP_EVT_CONN_CLOSED_IND (0xc) /* Indication of remotely closed connection */
64 #define TCPIP_EVT_ERROR_IND (0xd) /* Indication of asynchronous error */
65 #define TCPIP_EVT_FLOW_READY_IND (0xe) /* Flow Control: application can send again (not used by a TCPIP primitive!) */
66
67 /*
68 * Value constants for VAL_result
69 */
70 #define TCPIP_RESULT_OK (0x0) /* Operation was successful. */
71 #define TCPIP_RESULT_INVALID_PARAMETER (0x1) /* A parameter was invalid. */
72 #define TCPIP_RESULT_INTERNAL_ERROR (0x2) /* An internal error has happened. */
73 #define TCPIP_RESULT_ADDR_IN_USE (0x3) /* The address or port is already in use. */
74 #define TCPIP_RESULT_OUT_OF_MEMORY (0x4) /* There is not enough memory to fulfill the request. */
75 #define TCPIP_RESULT_NOT_SUPPORTED (0x5) /* The socket is not of a type that can support this operation. */
76 #define TCPIP_RESULT_UNREACHABLE (0x6) /* The specified host cannot be reached. */
77 #define TCPIP_RESULT_CONN_REFUSED (0x7) /* The connection to the specified address was refused by the remote host. */
78 #define TCPIP_RESULT_TIMEOUT (0x8) /* The connection attempt timed out without establishing a connection. */
79 #define TCPIP_RESULT_IS_CONNECTED (0x9) /* The request could not be fulfilled because the socket is already connected. */
80 #define TCPIP_RESULT_HOST_NOT_FOUND (0xa) /* The specified host could not be found in the DNS. */
81 #define TCPIP_RESULT_DNS_TEMP_ERROR (0xb) /* A temporary DNS error has occurred. Retrying the query may be successful. */
82 #define TCPIP_RESULT_DNS_PERM_ERROR (0xc) /* A permanent DNS error has occurred. */
83 #define TCPIP_RESULT_NO_IPADDR (0xd) /* The specified name has been found in the DNS, but no IP address is available. */
84 #define TCPIP_RESULT_NOT_CONNECTED (0xe) /* The socket has not been connected yet. */
85 #define TCPIP_RESULT_MSG_TOO_BIG (0xf) /* The size of the data buffer is too large for a UDP socket. */
86 #define TCPIP_RESULT_CONN_RESET (0x10) /* The connection has been reset by the remote peer. */
87 #define TCPIP_RESULT_CONN_ABORTED (0x11) /* The connection was aborted due to timeout or some other error condition. */
88 #define TCPIP_RESULT_NO_BUFSPACE (0x12) /* Sending failed temporarily because the space to buffer the message was exhausted. The application should wait for a TCPIP_FLOW_READY_IND event to retry the operation. */
89 #define TCPIP_RESULT_NETWORK_LOST (0x13) /* The operation failed because TCP/IP's network connection has been disconnected. */
90 #define TCPIP_RESULT_NOT_READY (0x14) /* The operation failed because the TCP/IP entity was not yet initialised. */
91
92 /*
93 * Value constants for VAL_if_up
94 */
95 #define TCPIP_IFCONFIG_DOWN (0x0) /* Interface going down */
96 #define TCPIP_IFCONFIG_UP (0x1) /* Interface coming up */
97
98 /*
99 * Value constants for VAL_dti_direction
100 */
101 #define TCPIP_DTI_TO_HIGHER_LAYER (0x0) /* Connect to higher layer, i. e. an application */
102 #define TCPIP_DTI_TO_LOWER_LAYER (0x1) /* Connect to lower layer, i. e. to protocol stack */
103
104 /*
105 * Value constants for VAL_dti_conn
106 */
107 #define TCPIP_CONNECT_DTI (0x0) /* Connect the DTI link */
108 #define TCPIP_DISCONNECT_DTI (0x1) /* Disconnect the DTI link */
109
110 /*
111 * user defined constants
112 */
113 #define TCPIP_HNAMELEN (0x100)
114 #define TCPIP_DEFAULT_MTU_SIZE (0x5dc)
115 #define TCPIP_UNSPECIFIED_IPADDR (0x0)
116 #define TCPIP_UNSPECIFIED_PORT (0x0)
117
118 #include "CDG_LEAVE.h"
119
120
121 #endif