TcpClient()

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

Constructs a new instance.

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

Arguments

ParameterTypeDescription
localEPSystem::SharedPtr<IPEndPoint>The endpoint to which the socket is bound.

TcpClient::TcpClient() constructor

Constructs a new instance.

System::Net::Sockets::TcpClient::TcpClient()

TcpClient::TcpClient(AddressFamily) constructor

Constructs a new instance.

System::Net::Sockets::TcpClient::TcpClient(AddressFamily family)

Arguments

ParameterTypeDescription
familyAddressFamilyAn address family.

TcpClient::TcpClient(String, int32_t) constructor

Constructs a new instance.

System::Net::Sockets::TcpClient::TcpClient(String hostname, int32_t port)

Arguments

ParameterTypeDescription
hostnameStringA remote host name to connect.
portint32_tA port of the remote host to connect.

See Also