Socket.Listen Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Listens for incoming connection attempts.
Assembly: System.Net (in System.Net.dll)
Parameters
- backlog
- Type: System.Int32
The maximum length of the pending connections queue.
| Exception | Condition |
|---|---|
| SocketException | An error occurred when attempting to access the socket. If you receive a SocketException, use the SocketException.ErrorCode property to obtain the specific error code. |
| ObjectDisposedException | The Socket has been closed. |
Show: