-
Notifications
You must be signed in to change notification settings - Fork 0
constants
Lucio Santi edited this page Aug 1, 2014
·
2 revisions
PTC Wiki ▸ Code overview ▸ constants
This module is just an enumeration of several constants used throughout the protocol:
-
PROTOCOL_NUMBER: the value identifying PTC inside IP headers. -
RETRANSMISSION_TIMEOUT: seconds to wait before retransmitting every packet sent. -
MAX_RETRANSMISSION_ATTEMPTS: maximum number of retransmissions allowed for any packet. -
CLOCK_TICK: PTC clock granularity (in seconds). -
MAX_SEQ: maximum number forSEQandACKfields. -
MAX_WND: maximum number for theWNDfield. -
SYN_SENT: internal ID of theSYN_SENTstate. -
SYN_RCVD: internal ID of theSYN_RCVDstate. -
ESTABLISHED: internal ID of theESTABLISHEDstate. -
CLOSED: internal ID of theCLOSEDstate. -
LISTEN: internal ID of theLISTENstate. -
FIN_WAIT1: internal ID of theFIN_WAIT1state. -
FIN_WAIT2: internal ID of theFIN_WAIT2state. -
CLOSE_WAIT: internal ID of theCLOSE_WAITstate. -
LAST_ACK: internal ID of theLAST_ACKstate. -
CLOSING: internal ID of theCLOSINGstate. -
SHUT_RD: flag that allows performing a read-onlyshutdownof the PTC socket. -
SHUT_WR: flag that allows performing a write-onlyshutdownof the PTC socket. -
SHUT_RDWR: flag that allows performing a read and writeshutdownof the PTC socket. -
NULL_ADDRESS: The all-zero IP address. -
RECEIVE_BUFFER_SIZE: size (in bytes) to be used for the receive buffer. -
MSS: maximum segment size (in bytes).