System::Net::Sockets::Socket::BeginConnect method
Contents
[
Hide
]Socket::BeginConnect(String, int32_t, AsyncCallback, System::SharedPtr<Object>) method
Initiates an asynchronous connect operation.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(String host, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
Parameter | Type | Description |
---|---|---|
host | String | The remote host name. |
port | int32_t | The port number of the remote host. |
requestCallback | AsyncCallback | A callback that will be called when the operation completes. |
state | System::SharedPtr<Object> | User-provided data used to uniquely identify each asynchronous connect operation. |
ReturnValue
An IAsyncResult object representing the initiated asynchronous connect operation.
See Also
- Typedef SharedPtr
- Class IAsyncResult
- Class String
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t, AsyncCallback, System::SharedPtr<Object>) method
Initiates an asynchronous connect operation.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
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. |
requestCallback | AsyncCallback | A callback that will be called when the operation completes. |
state | System::SharedPtr<Object> | User-provided data used to uniquely identify each asynchronous connect operation. |
ReturnValue
An IAsyncResult object representing the initiated asynchronous connect operation.
See Also
- Typedef SharedPtr
- Class IAsyncResult
- Typedef ArrayPtr
- Class IPAddress
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
Socket::BeginConnect(System::SharedPtr<EndPoint>, AsyncCallback, System::SharedPtr<Object>) method
Initiates an asynchronous connect operation.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<EndPoint> remoteEP, AsyncCallback callback, System::SharedPtr<Object> state)
Parameter | Type | Description |
---|---|---|
remoteEP | System::SharedPtr<EndPoint> | The remote endpoint. |
callback | AsyncCallback | A callback that will be called when the operation completes. |
state | System::SharedPtr<Object> | User-provided data used to uniquely identify each asynchronous connect operation. |
ReturnValue
An IAsyncResult object representing the initiated asynchronous connect operation.
See Also
- Typedef SharedPtr
- Class IAsyncResult
- Class EndPoint
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
Socket::BeginConnect(System::SharedPtr<IPAddress>, int32_t, AsyncCallback, System::SharedPtr<Object>) method
Initiates an asynchronous connect operation.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<IPAddress> address, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
Parameter | Type | Description |
---|---|---|
address | System::SharedPtr<IPAddress> | The remote host IP address. |
port | int32_t | The port number of the remote host. |
requestCallback | AsyncCallback | A callback that will be called when the operation completes. |
state | System::SharedPtr<Object> | User-provided data used to uniquely identify each asynchronous connect operation. |
ReturnValue
An IAsyncResult object representing the initiated asynchronous connect operation.
See Also
- Typedef SharedPtr
- Class IAsyncResult
- Class IPAddress
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++