Connect()
Contents
[
Hide
]TcpClient::Connect(String, int32_t) method
Establishes a connection to the specified remote host.
void System::Net::Sockets::TcpClient::Connect(String hostname, int32_t port)
Arguments
Parameter | Type | Description |
---|---|---|
hostname | String | A remote host name to connect. |
port | int32_t | A port of the remote host to connect. |
TcpClient::Connect(System::SharedPtr<IPAddress>, int32_t) method
Establishes a connection to the specified remote host.
void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPAddress> address, int32_t port)
Arguments
Parameter | Type | Description |
---|---|---|
address | System::SharedPtr<IPAddress> | The IP address of a remote host. |
port | int32_t | A port of the remote host to connect. |
TcpClient::Connect(System::SharedPtr<IPEndPoint>) method
Establishes a connection to the specified remote host.
void System::Net::Sockets::TcpClient::Connect(System::SharedPtr<IPEndPoint> remoteEP)
Arguments
Parameter | Type | Description |
---|---|---|
remoteEP | System::SharedPtr<IPEndPoint> | A remote host to connect. |
TcpClient::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t) method
Establishes a connection to the specified remote host.
void System::Net::Sockets::TcpClient::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> ipAddresses, int32_t port)
Arguments
Parameter | Type | Description |
---|---|---|
ipAddresses | System::ArrayPtr<System::SharedPtr<IPAddress>> | The IP addresses of a remote host. |
port | int32_t | A port of the remote host to connect. |
See Also
- Typedef SharedPtr
- Typedef ArrayPtr
- Class String
- Class TcpClient
- Class IPAddress
- Class IPEndPoint
- Namespace System::Net::Sockets
- Library Aspose.Slides