File: Transport/Contract/TCPCommand.msg
TCP command codes, sent by the application to TCP. These constants should be set as message kind on a message sent to the TCP entity.
See also: TCPCommand, TCPOpenCommand, TCP
Name | Value | Description |
---|---|---|
TCP_C_OPEN_ACTIVE | 1 | active open (must carry TCPOpenCommand) |
TCP_C_OPEN_PASSIVE | 2 | passive open (must carry TCPOpenCommand) |
TCP_C_SEND | 3 | send data (set on data packet) |
TCP_C_CLOSE | 5 | "I have no more data to send" |
TCP_C_ABORT | 6 | abort connection |
TCP_C_STATUS | 7 | request status info (TCP_I_STATUS) from TCP |
enum TcpCommandCode { TCP_C_OPEN_ACTIVE = 1; // active open (must carry TCPOpenCommand) TCP_C_OPEN_PASSIVE = 2; // passive open (must carry TCPOpenCommand) TCP_C_SEND = 3; // send data (set on data packet) TCP_C_CLOSE = 5; // "I have no more data to send" TCP_C_ABORT = 6; // abort connection TCP_C_STATUS = 7; // request status info (TCP_I_STATUS) from TCP };