Skip to content
Lucio Santi edited this page Aug 1, 2014 · 2 revisions

PTC WikiCode overviewconstants

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 for SEQ and ACK fields.
  • MAX_WND: maximum number for the WND field.
  • SYN_SENT: internal ID of the SYN_SENT state.
  • SYN_RCVD: internal ID of the SYN_RCVD state.
  • ESTABLISHED: internal ID of the ESTABLISHED state.
  • CLOSED: internal ID of the CLOSED state.
  • LISTEN: internal ID of the LISTEN state.
  • FIN_WAIT1: internal ID of the FIN_WAIT1 state.
  • FIN_WAIT2: internal ID of the FIN_WAIT2 state.
  • CLOSE_WAIT: internal ID of the CLOSE_WAIT state.
  • LAST_ACK: internal ID of the LAST_ACK state.
  • CLOSING: internal ID of the CLOSING state.
  • SHUT_RD: flag that allows performing a read-only shutdown of the PTC socket.
  • SHUT_WR: flag that allows performing a write-only shutdown of the PTC socket.
  • SHUT_RDWR: flag that allows performing a read and write shutdown of 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).

Clone this wiki locally