Network Component  Version 7.19.0
MDK Middleware for IPv4 and IPv6 Networking
Enumerations

Enumerations of the TCP Socket Interface. More...

Enumerations

enum  netTCP_Event {
  netTCP_EventConnect = 0 ,
  netTCP_EventEstablished ,
  netTCP_EventClosed ,
  netTCP_EventAborted ,
  netTCP_EventACK ,
  netTCP_EventData
}
 TCP Socket Events. More...
 
enum  netTCP_State {
  netTCP_StateINVALID =-1 ,
  netTCP_StateUNUSED = 0 ,
  netTCP_StateCLOSED ,
  netTCP_StateLISTEN ,
  netTCP_StateSYN_RECEIVED ,
  netTCP_StateSYN_SENT ,
  netTCP_StateFIN_WAIT_1 ,
  netTCP_StateFIN_WAIT_2 ,
  netTCP_StateCLOSING ,
  netTCP_StateLAST_ACK ,
  netTCP_StateTIME_WAIT ,
  netTCP_StateESTABLISHED
}
 TCP Socket States. More...
 
enum  netTCP_Option {
  netTCP_OptionTOS = 0 ,
  netTCP_OptionTrafficClass ,
  netTCP_OptionTimeout ,
  netTCP_OptionKeepAlive ,
  netTCP_OptionFlowControl ,
  netTCP_OptionDelayedACK
}
 TCP Socket Options. More...
 

Description

Enumerations of the TCP Socket Interface.

Enumeration Type Documentation

◆ netTCP_Event

TCP Socket Events.

Parameter for:

Enumerator
netTCP_EventConnect 

Connect request received event.

netTCP_EventEstablished 

Connection established event.

netTCP_EventClosed 

Connection was properly closed.

netTCP_EventAborted 

Connection is for some reason aborted.

netTCP_EventACK 

Previously send data acknowledged.

netTCP_EventData 

Data received event.

◆ netTCP_Option

TCP Socket Options.

Parameter for:

Enumerator
netTCP_OptionTOS 

IPv4 Type of Service; val=TOS.

netTCP_OptionTrafficClass 

IPv6 Traffic Class; val=TrafficClass.

netTCP_OptionTimeout 

TCP Idle Timeout; val=timeout (in seconds)

netTCP_OptionKeepAlive 

TCP Keep Alive; val: 0=disabled (default), 1=enabled.

netTCP_OptionFlowControl 

TCP Flow Control; val: 0=disabled (default), 1=enabled.

netTCP_OptionDelayedACK 

TCP Delayed Acknowledgment; val: 0=disabled (default), 1=enabled.

◆ netTCP_State

TCP Socket States.

Returned by:

Enumerator
netTCP_StateINVALID 

Invalid Socket.

netTCP_StateUNUSED 

Entry is free and unused.

netTCP_StateCLOSED 

Entry allocated, socket still closed.

netTCP_StateLISTEN 

Socket waiting for incoming connection.

netTCP_StateSYN_RECEIVED 

SYN frame received.

netTCP_StateSYN_SENT 

SYN packet sent to establish a connection.

netTCP_StateFIN_WAIT_1 

Close started FIN packet was sent.

netTCP_StateFIN_WAIT_2 

Our FIN ACK-ed, waiting for remote FIN.

netTCP_StateCLOSING 

Received FIN independently of our FIN.

netTCP_StateLAST_ACK 

Waiting for last ACK for our FIN.

netTCP_StateTIME_WAIT 

Timed waiting for 2MSL.

netTCP_StateESTABLISHED 

TCP Connection established.