System::Net::Sockets::Socket::BeginConnect 方法
内容
[
隐藏
]Socket::BeginConnect(String, int32_t, AsyncCallback, System::SharedPtr<Object>) method
发起异步连接操作。
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(String host, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
| 参数 | 类型 | 描述 |
|---|---|---|
| host | String | 远程主机名。 |
| port | int32_t | 远程主机的端口号。 |
| requestCallback | AsyncCallback | 当操作完成时将被调用的回调。 |
| state | System::SharedPtr<Object> | 用户提供的数据,用于唯一标识每个异步连接操作。 |
ReturnValue
表示已发起的异步连接操作的 IAsyncResult 对象。
另见
- Typedef SharedPtr
- Class IAsyncResult
- Class String
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t, AsyncCallback, System::SharedPtr<Object>) method
发起异步连接操作。
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
| 参数 | 类型 | 描述 |
|---|---|---|
| addresses | System::ArrayPtr<System::SharedPtr<IPAddress>> | 远程主机的 IP 地址。 |
| port | int32_t | 远程主机的端口号。 |
| requestCallback | AsyncCallback | 当操作完成时将被调用的回调。 |
| state | System::SharedPtr<Object> | 用户提供的数据,用于唯一标识每个异步连接操作。 |
ReturnValue
表示已发起的异步连接操作的 IAsyncResult 对象。
另见
- Typedef SharedPtr
- Class IAsyncResult
- Typedef ArrayPtr
- Class IPAddress
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
Socket::BeginConnect(System::SharedPtr<EndPoint>, AsyncCallback, System::SharedPtr<Object>) method
发起异步连接操作。
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<EndPoint> remoteEP, AsyncCallback callback, System::SharedPtr<Object> state)
| 参数 | 类型 | 描述 |
|---|---|---|
| remoteEP | System::SharedPtr<EndPoint> | 远程端点。 |
| 回调 | AsyncCallback | 当操作完成时将被调用的回调。 |
| state | System::SharedPtr<Object> | 用户提供的数据,用于唯一标识每个异步连接操作。 |
ReturnValue
表示已发起的异步连接操作的 IAsyncResult 对象。
另见
- Typedef SharedPtr
- Class IAsyncResult
- Class EndPoint
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
Socket::BeginConnect(System::SharedPtr<IPAddress>, int32_t, AsyncCallback, System::SharedPtr<Object>) method
发起异步连接操作。
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<IPAddress> address, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
| 参数 | 类型 | 描述 |
|---|---|---|
| 地址 | System::SharedPtr<IPAddress> | 远程主机 IP 地址。 |
| port | int32_t | 远程主机的端口号。 |
| requestCallback | AsyncCallback | 当操作完成时将被调用的回调。 |
| state | System::SharedPtr<Object> | 用户提供的数据,用于唯一标识每个异步连接操作。 |
ReturnValue
表示已发起的异步连接操作的 IAsyncResult 对象。
另见
- Typedef SharedPtr
- Class IAsyncResult
- Class IPAddress
- Typedef AsyncCallback
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++