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