Network Component  Version 7.7.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetTCP: TCP Socket

Events generated by the Network - TCP Socket functions. More...

Functions

__STATIC_INLINE void EvrNetTCP_InitSockets (uint32_t num_sockets, uint16_t max_segsize)
 Event on TCP socket initialize (Op) More...
 
__STATIC_INLINE void EvrNetTCP_GetSocketInvalidParameter (void)
 Event on TCP get socket failed, invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SocketAllocated (int32_t socket)
 Event on TCP free socket allocated (Op) More...
 
__STATIC_INLINE void EvrNetTCP_NoSocketsAvailable (void)
 Event on TCP get socket failed, no free sockets available (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ReleaseSocket (int32_t socket)
 Event on TCP release socket (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ReleaseSocketNotValid (int32_t socket)
 Event on TCP release failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ReleaseSocketWrongState (int32_t socket)
 Event on TCP release failed, wrong socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ListenSocket (int32_t socket, uint16_t port)
 Event on TCP listen socket request (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ListenSocketNotValid (int32_t socket)
 Event on TCP listen failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ListenPortUndefined (int32_t socket)
 Event on TCP listen failed, listening port undefined (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ListenSocketWrongState (int32_t socket)
 Event on TCP listen failed, wrong socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectSocket (int32_t socket, uint16_t local_port)
 Event on TCP connect socket request (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectSocketNotValid (int32_t socket)
 Event on TCP connect failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectAddressUnspecified (int32_t socket)
 Event on TCP connect failed, address unspecified (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectPortUndefined (int32_t socket)
 Event on TCP connect failed, port undefined (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ShowNetAddressIp4 (const void *net_addr)
 Event on TCP display net address IPv4 (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ShowNetAddressIp6 (const void *net_addr)
 Event on TCP display net address IPv6 (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectLocalPortInvalid (int32_t socket, uint16_t local_port)
 Event on TCP connect failed, local port invalid (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectLocalPortAssigned (uint16_t local_port)
 Event on TCP local port assigned in socket connect request (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ConnectSocketWrongState (int32_t socket)
 Event on TCP connect failed, wrong socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ShowRttVariables (int16_t sa, int16_t sv)
 Event on TCP display RTT (round trip time) estimation variables (Detail) More...
 
__STATIC_INLINE void EvrNetTCP_GetBufferFailed (uint16_t mem_size)
 Event on TCP get buffer failed, out of memory (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendFrame (int32_t socket, uint32_t length)
 Event on TCP send frame (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SendBufferInvalid (int32_t socket)
 Event on TCP send failed, invalid buffer (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendSocketNotValid (int32_t socket)
 Event on TCP send failed, socket handle not valid (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendSocketNotConnected (int32_t socket)
 Event on TCP send failed, socket not connected (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendSocketClosing (int32_t socket)
 Event on TCP send failed, socket closing (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendReenteredCall (int32_t socket)
 Event on TCP send failed, called from a callback function (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendDataUnacked (int32_t socket)
 Event on TCP send failed, unacked data pending (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendMssExceeded (int32_t socket)
 Event on TCP send failed, Maximum Segment Size exceeded (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendZeroLengthFrame (int32_t socket)
 Event on TCP send 0-length frame, frame dumped (Op) More...
 
__STATIC_INLINE void EvrNetTCP_CloseSocket (int32_t socket)
 Event on TCP close socket (Op) More...
 
__STATIC_INLINE void EvrNetTCP_CloseSocketNotValid (int32_t socket)
 Event on TCP close socket failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_CloseDataUnacked (uint32_t unack_length)
 Event on TCP close pended, unacked data exist (Op) More...
 
__STATIC_INLINE void EvrNetTCP_CloseSocketWrongState (int32_t socket)
 Event on TCP close failed, wrong socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_AbortSocket (int32_t socket)
 Event on TCP abort socket (Op) More...
 
__STATIC_INLINE void EvrNetTCP_AbortSocketNotValid (int32_t socket)
 Event on TCP abort failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_AbortSocketWrongState (int32_t socket)
 Event on TCP abort failed, wrong socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendReadySocketNotValid (int32_t socket)
 Event on TCP send ready failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendReadyReenteredCall (int32_t socket)
 Event on TCP send ready failed, called from a callback function (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ResetWindowSocketNotValid (int32_t socket)
 Event on TCP reset window failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ResetWindowNotConnected (int32_t socket)
 Event on TCP reset window failed, invalid socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ResetWindowNoFlowControl (int32_t socket)
 Event on TCP reset window failed, flow-control not enabled (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ResetWindowUpdate (int32_t socket, uint16_t window_size)
 Event on TCP reset window update (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionSocket (int32_t socket)
 Event on TCP set socket option (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionSocketNotValid (int32_t socket)
 Event on TCP set socket option failed, not valid socket (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionSocketWrongState (int32_t socket)
 Event on TCP set socket option failed, wrong socket state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionTos (uint8_t ip4_tos)
 Event on TCP set socket option Type Of Service for IPv4 (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionTclass (uint8_t ip6_tclass)
 Event on TCP set socket option Traffic Class for IPv6 (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionTimeout (uint16_t timeout)
 Event on TCP set socket option connection timeout (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionKeepAlive (uint32_t enable)
 Event on TCP set socket keep-alive option (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionFlowControl (uint32_t enable)
 Event on TCP set socket flow-control option (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionDelayedAck (uint32_t enable)
 Event on TCP set socket delayed-acknowledge option (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionWrongOption (int32_t socket, uint8_t tcp_option)
 Event on TCP wrong set socket option (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SetOptionWrongValue (int32_t socket, uint8_t opt_value)
 Event on TCP wrong value for set socket option (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendDelayedAck (int32_t socket)
 Event on TCP send delayed-acknowledge (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SendKeepAliveProbe (int32_t socket)
 Event on TCP send keep-alive probe (Op) More...
 
__STATIC_INLINE void EvrNetTCP_KeepAliveTimeoutClosing (int32_t socket)
 Event on TCP keep-alive timeout no response, close socket (Op) More...
 
__STATIC_INLINE void EvrNetTCP_CallbackEventAck (int32_t socket)
 Event on TCP acknowledge callback notification to the user (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ResendOnTimeout (int32_t socket, uint32_t length)
 Event on TCP resend data on timeout (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ShowCongestionVariables (uint16_t cwnd, uint16_t ssth)
 Event on TCP display congestion avoidance/control variables (Detail) More...
 
__STATIC_INLINE void EvrNetTCP_TimeoutInState (int32_t socket, uint32_t state)
 Event on TCP timeout expired in current state (Op) More...
 
__STATIC_INLINE void EvrNetTCP_TwaitTimeoutClosing (int32_t socket)
 Event on TCP timeout in TIME_WAIT state, closing socket (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ClosingTimeout (int32_t socket)
 Event on TCP timeout in CLOSING, FIN_WAIT_1 or LAST_ACK state (Op) More...
 
__STATIC_INLINE void EvrNetTCP_NoRetriesLeft (int32_t socket)
 Event on TCP no retries left (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ReceiveFrame (uint32_t length, uint8_t ip_version)
 Event on TCP receive frame (Op) More...
 
__STATIC_INLINE void EvrNetTCP_FrameTooShort (uint32_t length, uint32_t min_length)
 Event on TCP received frame too short (Error) More...
 
__STATIC_INLINE void EvrNetTCP_FrameNotMapped (uint32_t length)
 Event on TCP received frame not mapped, no active socket found (Op) More...
 
__STATIC_INLINE void EvrNetTCP_MappedToSocket (int32_t socket, uint32_t state)
 Event on TCP received frame mapped to a socket (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ChecksumFailed (int32_t socket)
 Event on TCP frame checksum check failed (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ShowFrameHeader (const void *tcp_header)
 Event on TCP display send/receive frame header (Detail) More...
 
__STATIC_INLINE void EvrNetTCP_RstInWindow (void)
 Event on TCP RST-flag received within current receive window (Op) More...
 
__STATIC_INLINE void EvrNetTCP_RstNotValid (void)
 Event on TCP RST-flag received outside current receive window (Op) More...
 
__STATIC_INLINE void EvrNetTCP_RepeatedSynAck (void)
 Event on TCP repeated SYN+ACK-flags received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_AckNotSet (void)
 Event on TCP ACK-flag not set in received frame (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ShowSendWindow (uint16_t send_window)
 Event on TCP display current sending window size (Op) More...
 
__STATIC_INLINE void EvrNetTCP_KeepAliveSegment (void)
 Event on TCP keep-alive frame received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_RetransmittedSegment (void)
 Event on TCP retransmitted frame received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_OutOfRangeSegment (int32_t socket)
 Event on TCP out of range segment received (Error) More...
 
__STATIC_INLINE void EvrNetTCP_ZeroWindowProbe (void)
 Event on TCP zero-window probe received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_RemotePeerClosing (void)
 Event on TCP FIN-flag received, remote peer wants to close (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ShowReceiveWindow (uint16_t rec_window)
 Event on TCP display current receiving window size (Op) More...
 
__STATIC_INLINE void EvrNetTCP_InvalidAck (int32_t socket)
 Event on TCP ACK-flag set received, invalid in state LISTEN (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SynNotSet (int32_t socket)
 Event on TCP SYN-flag not set in received frame (Error) More...
 
__STATIC_INLINE void EvrNetTCP_UserConnectionReject (void)
 Event on TCP user rejected inbound connection (Op) More...
 
__STATIC_INLINE void EvrNetTCP_NextState (uint32_t state)
 Event on TCP transition to next state (Op) More...
 
__STATIC_INLINE void EvrNetTCP_WrongSynAck (int32_t socket)
 Event on TCP SYN+ACK-flags set but wrong ack number (Error) More...
 
__STATIC_INLINE void EvrNetTCP_WrongAckNumber (int32_t socket)
 Event on TCP ACK-flag set but wrong ack number (Error) More...
 
__STATIC_INLINE void EvrNetTCP_WrongSeqNumber (int32_t socket)
 Event on TCP ACK-flag set but wrong seq number (Error) More...
 
__STATIC_INLINE void EvrNetTCP_RepeatedSyn (void)
 Event on TCP repeated SYN-flag set frame received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_FrameUnrecognised (int32_t socket)
 Event on TCP unrecognised frame received (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SimultOpenNextState (uint32_t state)
 Event on TCP SYN-flag set received in simultaneous open (Op) More...
 
__STATIC_INLINE void EvrNetTCP_WrongFinAck (int32_t socket)
 Event on TCP frame with FIN+ACK-flags set but wrong ack number (Error) More...
 
__STATIC_INLINE void EvrNetTCP_FinAckNextState (uint32_t state)
 Event on TCP frame with FIN+ACK-flags received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SimultCloseNextState (uint32_t state)
 Event on TCP frame with FIN-flag received in simultaneous close (Op) More...
 
__STATIC_INLINE void EvrNetTCP_AckNextState (uint32_t state)
 Event on TCP frame with ACK-flag received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_FinNextState (uint32_t state)
 Event on TCP frame with FIN-flag received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_PshAckInHalfOpen (int32_t socket)
 Event on TCP PSH+ACK-flags received in half open state FIN_WAIT_2 (Error) More...
 
__STATIC_INLINE void EvrNetTCP_RepeatedFin (void)
 Event on TCP repeated FIN-flag received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_LastAckNextState (uint32_t state)
 Event on TCP last ACK-flag received (Op) More...
 
__STATIC_INLINE void EvrNetTCP_RstReceived (int32_t socket)
 Event on TCP RST-flag received (Error) More...
 
__STATIC_INLINE void EvrNetTCP_InvalidState (int32_t socket)
 Event on TCP socket in invalid state (Error) More...
 
__STATIC_INLINE void EvrNetTCP_SendData (int32_t socket, uint16_t length)
 Event on TCP send data frame (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SendControl (int32_t socket)
 Event on TCP send control frame (Op) More...
 
__STATIC_INLINE void EvrNetTCP_SendReset (void)
 Event on TCP send reset to remote host for unmapped frame (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ParseHeaderOptions (uint32_t opt_length)
 Event on TCP parse header options (Op) More...
 
__STATIC_INLINE void EvrNetTCP_OptionMss (uint32_t mss)
 Event on TCP header option MSS (maximum segment size) (Op) More...
 
__STATIC_INLINE void EvrNetTCP_DuplicateAck (uint32_t dup_acks)
 Event on TCP duplicate acknowledge processing (Op) More...
 
__STATIC_INLINE void EvrNetTCP_FastRetransmit (uint32_t data_length)
 Event on TCP fast retransmit, received 3 duplicate acks (Op) More...
 
__STATIC_INLINE void EvrNetTCP_DataAcked (uint32_t ack_length)
 Event on TCP data acknowledge processing (Op) More...
 
__STATIC_INLINE void EvrNetTCP_ResendData (int32_t socket, uint32_t length, uint32_t tout)
 Event on TCP resend data from transmit queue (Op) More...
 
__STATIC_INLINE void EvrNetTCP_MapSocketWrongFlagsSet (void)
 Event on TCP map socket failed, wrong TCP flags set (Error) More...
 
__STATIC_INLINE void EvrNetTCP_MapSocketSynNotSet (void)
 Event on TCP map socket failed, SYN-flag not set (Error) More...
 
__STATIC_INLINE void EvrNetTCP_MapSocketNoListenSocket (void)
 Event on TCP map socket failed, no listening sockets found (Error) More...
 

Description

Events generated by the Network - TCP Socket functions.

Function Documentation

__STATIC_INLINE void EvrNetTCP_AbortSocket ( int32_t  socket)

Event on TCP abort socket (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_AbortSocketNotValid ( int32_t  socket)

Event on TCP abort failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_AbortSocketWrongState ( int32_t  socket)

Event on TCP abort failed, wrong socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_AckNextState ( uint32_t  state)

Event on TCP frame with ACK-flag received (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_AckNotSet ( void  )

Event on TCP ACK-flag not set in received frame (Op)

__STATIC_INLINE void EvrNetTCP_CallbackEventAck ( int32_t  socket)

Event on TCP acknowledge callback notification to the user (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ChecksumFailed ( int32_t  socket)

Event on TCP frame checksum check failed (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_CloseDataUnacked ( uint32_t  unack_length)

Event on TCP close pended, unacked data exist (Op)

Parameters
unack_lengthlength of unacked data
__STATIC_INLINE void EvrNetTCP_CloseSocket ( int32_t  socket)

Event on TCP close socket (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_CloseSocketNotValid ( int32_t  socket)

Event on TCP close socket failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_CloseSocketWrongState ( int32_t  socket)

Event on TCP close failed, wrong socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ClosingTimeout ( int32_t  socket)

Event on TCP timeout in CLOSING, FIN_WAIT_1 or LAST_ACK state (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ConnectAddressUnspecified ( int32_t  socket)

Event on TCP connect failed, address unspecified (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ConnectLocalPortAssigned ( uint16_t  local_port)

Event on TCP local port assigned in socket connect request (Op)

Parameters
local_portassigned local port number
__STATIC_INLINE void EvrNetTCP_ConnectLocalPortInvalid ( int32_t  socket,
uint16_t  local_port 
)

Event on TCP connect failed, local port invalid (Error)

Parameters
socketsocket handle
local_portlocal port number
__STATIC_INLINE void EvrNetTCP_ConnectPortUndefined ( int32_t  socket)

Event on TCP connect failed, port undefined (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ConnectSocket ( int32_t  socket,
uint16_t  local_port 
)

Event on TCP connect socket request (Op)

Parameters
socketsocket handle
local_portlocal port number
__STATIC_INLINE void EvrNetTCP_ConnectSocketNotValid ( int32_t  socket)

Event on TCP connect failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ConnectSocketWrongState ( int32_t  socket)

Event on TCP connect failed, wrong socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_DataAcked ( uint32_t  ack_length)

Event on TCP data acknowledge processing (Op)

Parameters
ack_lengthacknowledged data length
__STATIC_INLINE void EvrNetTCP_DuplicateAck ( uint32_t  dup_acks)

Event on TCP duplicate acknowledge processing (Op)

Parameters
dup_acksnumber of duplicate acks
__STATIC_INLINE void EvrNetTCP_FastRetransmit ( uint32_t  data_length)

Event on TCP fast retransmit, received 3 duplicate acks (Op)

Parameters
data_lengthlength of data to fast retransmit
__STATIC_INLINE void EvrNetTCP_FinAckNextState ( uint32_t  state)

Event on TCP frame with FIN+ACK-flags received (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_FinNextState ( uint32_t  state)

Event on TCP frame with FIN-flag received (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_FrameNotMapped ( uint32_t  length)

Event on TCP received frame not mapped, no active socket found (Op)

Parameters
lengthframe length in bytes
__STATIC_INLINE void EvrNetTCP_FrameTooShort ( uint32_t  length,
uint32_t  min_length 
)

Event on TCP received frame too short (Error)

Parameters
lengthframe length in bytes
min_lengthminimum length of the frame
__STATIC_INLINE void EvrNetTCP_FrameUnrecognised ( int32_t  socket)

Event on TCP unrecognised frame received (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_GetBufferFailed ( uint16_t  mem_size)

Event on TCP get buffer failed, out of memory (Error)

Parameters
mem_sizerequested memory size
__STATIC_INLINE void EvrNetTCP_GetSocketInvalidParameter ( void  )

Event on TCP get socket failed, invalid parameter (Error)

__STATIC_INLINE void EvrNetTCP_InitSockets ( uint32_t  num_sockets,
uint16_t  max_segsize 
)

Event on TCP socket initialize (Op)

Parameters
num_socketsnumber of available TCP sockets
max_segsizemaximum segment size in bytes
__STATIC_INLINE void EvrNetTCP_InvalidAck ( int32_t  socket)

Event on TCP ACK-flag set received, invalid in state LISTEN (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_InvalidState ( int32_t  socket)

Event on TCP socket in invalid state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_KeepAliveSegment ( void  )

Event on TCP keep-alive frame received (Op)

__STATIC_INLINE void EvrNetTCP_KeepAliveTimeoutClosing ( int32_t  socket)

Event on TCP keep-alive timeout no response, close socket (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_LastAckNextState ( uint32_t  state)

Event on TCP last ACK-flag received (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_ListenPortUndefined ( int32_t  socket)

Event on TCP listen failed, listening port undefined (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ListenSocket ( int32_t  socket,
uint16_t  port 
)

Event on TCP listen socket request (Op)

Parameters
socketsocket handle
portlocal port number
__STATIC_INLINE void EvrNetTCP_ListenSocketNotValid ( int32_t  socket)

Event on TCP listen failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ListenSocketWrongState ( int32_t  socket)

Event on TCP listen failed, wrong socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_MappedToSocket ( int32_t  socket,
uint32_t  state 
)

Event on TCP received frame mapped to a socket (Op)

Parameters
socketmapped socket handle
statecurrent socket state
__STATIC_INLINE void EvrNetTCP_MapSocketNoListenSocket ( void  )

Event on TCP map socket failed, no listening sockets found (Error)

__STATIC_INLINE void EvrNetTCP_MapSocketSynNotSet ( void  )

Event on TCP map socket failed, SYN-flag not set (Error)

__STATIC_INLINE void EvrNetTCP_MapSocketWrongFlagsSet ( void  )

Event on TCP map socket failed, wrong TCP flags set (Error)

__STATIC_INLINE void EvrNetTCP_NextState ( uint32_t  state)

Event on TCP transition to next state (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_NoRetriesLeft ( int32_t  socket)

Event on TCP no retries left (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_NoSocketsAvailable ( void  )

Event on TCP get socket failed, no free sockets available (Error)

__STATIC_INLINE void EvrNetTCP_OptionMss ( uint32_t  mss)

Event on TCP header option MSS (maximum segment size) (Op)

Parameters
mssmaximum segment size
__STATIC_INLINE void EvrNetTCP_OutOfRangeSegment ( int32_t  socket)

Event on TCP out of range segment received (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ParseHeaderOptions ( uint32_t  opt_length)

Event on TCP parse header options (Op)

Parameters
opt_lengthlength of header options
__STATIC_INLINE void EvrNetTCP_PshAckInHalfOpen ( int32_t  socket)

Event on TCP PSH+ACK-flags received in half open state FIN_WAIT_2 (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ReceiveFrame ( uint32_t  length,
uint8_t  ip_version 
)

Event on TCP receive frame (Op)

Parameters
lengthframe length in bytes
ip_versioninternet protocol version
  • 0: IPv4
  • 1: IPv6
__STATIC_INLINE void EvrNetTCP_ReleaseSocket ( int32_t  socket)

Event on TCP release socket (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ReleaseSocketNotValid ( int32_t  socket)

Event on TCP release failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ReleaseSocketWrongState ( int32_t  socket)

Event on TCP release failed, wrong socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_RemotePeerClosing ( void  )

Event on TCP FIN-flag received, remote peer wants to close (Op)

__STATIC_INLINE void EvrNetTCP_RepeatedFin ( void  )

Event on TCP repeated FIN-flag received (Op)

__STATIC_INLINE void EvrNetTCP_RepeatedSyn ( void  )

Event on TCP repeated SYN-flag set frame received (Op)

__STATIC_INLINE void EvrNetTCP_RepeatedSynAck ( void  )

Event on TCP repeated SYN+ACK-flags received (Op)

__STATIC_INLINE void EvrNetTCP_ResendData ( int32_t  socket,
uint32_t  length,
uint32_t  tout 
)

Event on TCP resend data from transmit queue (Op)

Parameters
socketsocket handle
lengthlength of the data to resend
toutretry timeout in ms
__STATIC_INLINE void EvrNetTCP_ResendOnTimeout ( int32_t  socket,
uint32_t  length 
)

Event on TCP resend data on timeout (Op)

Parameters
socketsocket handle
lengthlength of data to resend
__STATIC_INLINE void EvrNetTCP_ResetWindowNoFlowControl ( int32_t  socket)

Event on TCP reset window failed, flow-control not enabled (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ResetWindowNotConnected ( int32_t  socket)

Event on TCP reset window failed, invalid socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ResetWindowSocketNotValid ( int32_t  socket)

Event on TCP reset window failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ResetWindowUpdate ( int32_t  socket,
uint16_t  window_size 
)

Event on TCP reset window update (Error)

Parameters
socketsocket handle
window_sizeupdated receive window size
__STATIC_INLINE void EvrNetTCP_RetransmittedSegment ( void  )

Event on TCP retransmitted frame received (Op)

__STATIC_INLINE void EvrNetTCP_RstInWindow ( void  )

Event on TCP RST-flag received within current receive window (Op)

__STATIC_INLINE void EvrNetTCP_RstNotValid ( void  )

Event on TCP RST-flag received outside current receive window (Op)

__STATIC_INLINE void EvrNetTCP_RstReceived ( int32_t  socket)

Event on TCP RST-flag received (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendBufferInvalid ( int32_t  socket)

Event on TCP send failed, invalid buffer (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendControl ( int32_t  socket)

Event on TCP send control frame (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendData ( int32_t  socket,
uint16_t  length 
)

Event on TCP send data frame (Op)

Parameters
socketsocket handle
lengthdata length in bytes
__STATIC_INLINE void EvrNetTCP_SendDataUnacked ( int32_t  socket)

Event on TCP send failed, unacked data pending (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendDelayedAck ( int32_t  socket)

Event on TCP send delayed-acknowledge (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendFrame ( int32_t  socket,
uint32_t  length 
)

Event on TCP send frame (Op)

Parameters
socketsocket handle
lengthframe length in bytes
__STATIC_INLINE void EvrNetTCP_SendKeepAliveProbe ( int32_t  socket)

Event on TCP send keep-alive probe (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendMssExceeded ( int32_t  socket)

Event on TCP send failed, Maximum Segment Size exceeded (Error)

Parameters
socketsocket handle
Note
Frame length is larger than MSS.
__STATIC_INLINE void EvrNetTCP_SendReadyReenteredCall ( int32_t  socket)

Event on TCP send ready failed, called from a callback function (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendReadySocketNotValid ( int32_t  socket)

Event on TCP send ready failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendReenteredCall ( int32_t  socket)

Event on TCP send failed, called from a callback function (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendReset ( void  )

Event on TCP send reset to remote host for unmapped frame (Op)

__STATIC_INLINE void EvrNetTCP_SendSocketClosing ( int32_t  socket)

Event on TCP send failed, socket closing (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendSocketNotConnected ( int32_t  socket)

Event on TCP send failed, socket not connected (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendSocketNotValid ( int32_t  socket)

Event on TCP send failed, socket handle not valid (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SendZeroLengthFrame ( int32_t  socket)

Event on TCP send 0-length frame, frame dumped (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SetOptionDelayedAck ( uint32_t  enable)

Event on TCP set socket delayed-acknowledge option (Op)

Parameters
enabledelayed-acknowledge state
  • 0: disable
  • 1: enable
__STATIC_INLINE void EvrNetTCP_SetOptionFlowControl ( uint32_t  enable)

Event on TCP set socket flow-control option (Op)

Parameters
enableflow-control state
  • 0: disable
  • 1: enable
__STATIC_INLINE void EvrNetTCP_SetOptionKeepAlive ( uint32_t  enable)

Event on TCP set socket keep-alive option (Op)

Parameters
enablekeep-alive state
  • 0: disable
  • 1: enable
__STATIC_INLINE void EvrNetTCP_SetOptionSocket ( int32_t  socket)

Event on TCP set socket option (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SetOptionSocketNotValid ( int32_t  socket)

Event on TCP set socket option failed, not valid socket (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SetOptionSocketWrongState ( int32_t  socket)

Event on TCP set socket option failed, wrong socket state (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_SetOptionTclass ( uint8_t  ip6_tclass)

Event on TCP set socket option Traffic Class for IPv6 (Op)

Parameters
ip6_tclasstraffic class value
__STATIC_INLINE void EvrNetTCP_SetOptionTimeout ( uint16_t  timeout)

Event on TCP set socket option connection timeout (Op)

Parameters
timeoutconnection or keep-alive timeout in seconds
__STATIC_INLINE void EvrNetTCP_SetOptionTos ( uint8_t  ip4_tos)

Event on TCP set socket option Type Of Service for IPv4 (Op)

Parameters
ip4_tostype of service value
__STATIC_INLINE void EvrNetTCP_SetOptionWrongOption ( int32_t  socket,
uint8_t  tcp_option 
)

Event on TCP wrong set socket option (Error)

Parameters
socketsocket handle
tcp_optionwrong set option value
__STATIC_INLINE void EvrNetTCP_SetOptionWrongValue ( int32_t  socket,
uint8_t  opt_value 
)

Event on TCP wrong value for set socket option (Error)

Parameters
socketsocket handle
opt_valuewrong value for set option
__STATIC_INLINE void EvrNetTCP_ShowCongestionVariables ( uint16_t  cwnd,
uint16_t  ssth 
)

Event on TCP display congestion avoidance/control variables (Detail)

Parameters
cwndcongestion window
ssthslow start threshold
__STATIC_INLINE void EvrNetTCP_ShowFrameHeader ( const void *  tcp_header)

Event on TCP display send/receive frame header (Detail)

Parameters
tcp_headerpointer to TCP frame header of 20 bytes
  • SrcPort (2 bytes)
  • DstPort (2 bytes)
  • SeqNr (4 bytes)
  • AckNr (4 bytes)
  • HLen (1 byte)
  • Flags (1 byte)
  • Window (2 bytes)
  • Chksum (2 bytes)
  • UrgPtr (2 bytes)
__STATIC_INLINE void EvrNetTCP_ShowNetAddressIp4 ( const void *  net_addr)

Event on TCP display net address IPv4 (Op)

Parameters
net_addrpointer to NET_ADDR4 address structure (8 bytes)
Note
Sends reduced size of net address structure with IPv4 address only.
__STATIC_INLINE void EvrNetTCP_ShowNetAddressIp6 ( const void *  net_addr)

Event on TCP display net address IPv6 (Op)

Parameters
net_addrpointer to NET_ADDR address structure (20 bytes)
Note
Sends full size of net address structure with IPv6 address only.
__STATIC_INLINE void EvrNetTCP_ShowReceiveWindow ( uint16_t  rec_window)

Event on TCP display current receiving window size (Op)

Parameters
rec_windowcurrent receiving window size
__STATIC_INLINE void EvrNetTCP_ShowRttVariables ( int16_t  sa,
int16_t  sv 
)

Event on TCP display RTT (round trip time) estimation variables (Detail)

Parameters
sartt average estimator
svrtt deviation estimator
Note
Those variables are taken from VJs original code in his paper (Congestion avoidance and control, page 20)
__STATIC_INLINE void EvrNetTCP_ShowSendWindow ( uint16_t  send_window)

Event on TCP display current sending window size (Op)

Parameters
send_windowcurrent sending window size
__STATIC_INLINE void EvrNetTCP_SimultCloseNextState ( uint32_t  state)

Event on TCP frame with FIN-flag received in simultaneous close (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_SimultOpenNextState ( uint32_t  state)

Event on TCP SYN-flag set received in simultaneous open (Op)

Parameters
statenext socket state
__STATIC_INLINE void EvrNetTCP_SocketAllocated ( int32_t  socket)

Event on TCP free socket allocated (Op)

Parameters
socketallocated socket handle
__STATIC_INLINE void EvrNetTCP_SynNotSet ( int32_t  socket)

Event on TCP SYN-flag not set in received frame (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_TimeoutInState ( int32_t  socket,
uint32_t  state 
)

Event on TCP timeout expired in current state (Op)

Parameters
socketsocket handle
statecurrent socket state
__STATIC_INLINE void EvrNetTCP_TwaitTimeoutClosing ( int32_t  socket)

Event on TCP timeout in TIME_WAIT state, closing socket (Op)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_UserConnectionReject ( void  )

Event on TCP user rejected inbound connection (Op)

__STATIC_INLINE void EvrNetTCP_WrongAckNumber ( int32_t  socket)

Event on TCP ACK-flag set but wrong ack number (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_WrongFinAck ( int32_t  socket)

Event on TCP frame with FIN+ACK-flags set but wrong ack number (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_WrongSeqNumber ( int32_t  socket)

Event on TCP ACK-flag set but wrong seq number (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_WrongSynAck ( int32_t  socket)

Event on TCP SYN+ACK-flags set but wrong ack number (Error)

Parameters
socketsocket handle
__STATIC_INLINE void EvrNetTCP_ZeroWindowProbe ( void  )

Event on TCP zero-window probe received (Op)