TcpState Enumeration
.NET Framework 2.0
Note: This enumeration is new in the .NET Framework version 2.0.
Specifies the states of a Transmission Control Protocol (TCP) connection.
Namespace: System.Net.NetworkInformation
Assembly: System (in system.dll)
Assembly: System (in system.dll)
| Member name | Description | |
|---|---|---|
| Closed | The TCP connection is closed. | |
| CloseWait | The local endpoint of the TCP connection is waiting for a connection termination request from the local user. | |
| Closing | The local endpoint of the TCP connection is waiting for an acknowledgement of the connection termination request sent previously. | |
| DeleteTcb | The transmission control buffer (TCB) for the TCP connection is being deleted. | |
| Established | The TCP handshake is complete. The connection has been established and data can be sent. | |
| FinWait1 | The local endpoint of the TCP connection is waiting for a connection termination request from the remote endpoint or for an acknowledgement of the connection termination request sent previously. | |
| FinWait2 | The local endpoint of the TCP connection is waiting for a connection termination request from the remote endpoint. | |
| LastAck | The local endpoint of the TCP connection is waiting for the final acknowledgement of the connection termination request sent previously. | |
| Listen | The local endpoint of the TCP connection is listening for a connection request from any remote endpoint. | |
| SynReceived | The local endpoint of the TCP connection has sent and received a connection request and is waiting for an acknowledgment. | |
| SynSent | The local endpoint of the TCP connection has sent the remote endpoint a segment header with the synchronize (SYN) control bit set and is waiting for a matching connection request. | |
| TimeWait | The local endpoint of the TCP connection is waiting for enough time to pass to ensure that the remote endpoint received the acknowledgement of its connection termination request. | |
| Unknown | The TCP connection state is unknown. |
This enumeration defines valid values for the State property. TCP is a transport layer protocol responsible for reliably sending and receiving data packets. The TCP states in this enumeration are defined in IETF RFC 793 available at http://www.ietf.org.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: