TcpListener Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the TcpListener class.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodTcpListener(Int32)

Obsolete. Initializes a new instance of the TcpListener class that listens on the specified port.

System_CAPS_pubmethodTcpListener(IPAddress, Int32)

Initializes a new instance of the TcpListener class that listens for incoming connection attempts on the specified local IP address and port number.

System_CAPS_pubmethodTcpListener(IPEndPoint)

Initializes a new instance of the TcpListener class with the specified local endpoint.

Return to top
Show: