TcpListener::Server Property
.NET Framework (current version)
Gets the underlying network Socket.
Assembly: System (in System.dll)
TcpListener creates a Socket to listen for incoming client connection requests. Classes deriving from TcpListener can use this property to get this Socket. Use the underlying Socket returned by the Server property if you require access beyond that which TcpListener provides.
Note |
|---|
The Server property only returns the Socket used to listen for incoming client connection requests. Use the AcceptSocket method to accept a pending connection request and obtain a Socket for sending and receiving data. You can also use the AcceptTcpClient method to accept a pending connection request and obtain a TcpClient for sending and receiving data. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
