C# Class SimpleTCP.Server.TcpListenerEx

Wrapper around TcpListener that exposes the Active property See: http://stackoverflow.com/questions/7630094/is-there-a-property-method-for-determining-if-a-tcplistener-is-currently-listeni
Inheritance: System.Net.Sockets.TcpListener
ファイルを表示 Open project: BrandonPotter/SimpleTCP Class Usage Examples

Public Methods

Method Description
TcpListenerEx ( IPAddress localaddr, int port ) : System

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

TcpListenerEx ( IPEndPoint localEP ) : System

Initializes a new instance of the T:System.Net.Sockets.TcpListener class with the specified local endpoint.

Method Details

TcpListenerEx() public method

Initializes a new instance of the T:System.Net.Sockets.TcpListener class that listens for incoming connection attempts on the specified local IP address and port number.
is null. is not between and .
public TcpListenerEx ( IPAddress localaddr, int port ) : System
localaddr System.Net.IPAddress An that represents the local IP address.
port int The port on which to listen for incoming connection attempts.
return System

TcpListenerEx() public method

Initializes a new instance of the T:System.Net.Sockets.TcpListener class with the specified local endpoint.
is null.
public TcpListenerEx ( IPEndPoint localEP ) : System
localEP System.Net.IPEndPoint An that represents the local endpoint to which to bind the listener .
return System