TcpListener()

TcpListener::TcpListener(System::SharedPtr<IPEndPoint>) constructor

Constructs a new instance.

System::Net::Sockets::TcpListener::TcpListener(System::SharedPtr<IPEndPoint> localEP)

Arguments

ParameterTypeDescription
localEPSystem::SharedPtr<IPEndPoint>The local endpoint to which the listener socket must be bound.

TcpListener::TcpListener(System::SharedPtr<IPAddress>, int32_t) constructor

Constructs a new instance.

System::Net::Sockets::TcpListener::TcpListener(System::SharedPtr<IPAddress> localaddr, int32_t port)

Arguments

ParameterTypeDescription
localaddrSystem::SharedPtr<IPAddress>The local IP address.
portint32_tA port number to listen.

TcpListener::TcpListener(int32_t) constructor

Constructs a new instance.

System::Net::Sockets::TcpListener::TcpListener(int32_t port)

Arguments

ParameterTypeDescription
portint32_tA port number to listen.

See Also