System::Net::Sockets::TcpClient::BeginConnect メソッド

TcpClient::BeginConnect(String, int32_t, AsyncCallback, System::SharedPtr<Object>) method

非同期の接続操作を開始します。

System::SharedPtr<IAsyncResult> System::Net::Sockets::TcpClient::BeginConnect(String host, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
パラメーター説明
hostStringリモートホスト名。
ポートint32_tリモートホストのポート。
requestCallbackAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

開始された非同期接続操作を表す IAsyncResult オブジェクトです。

参照

TcpClient::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t, AsyncCallback, System::SharedPtr<Object>) method

非同期の接続操作を開始します。

System::SharedPtr<IAsyncResult> System::Net::Sockets::TcpClient::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
パラメーター説明
addressesSystem::ArrayPtr<System::SharedPtr<IPAddress>>リモートホストの IP アドレス。
ポートint32_tリモートホストのポート。
requestCallbackAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

開始された非同期接続操作を表す IAsyncResult オブジェクトです。

参照

TcpClient::BeginConnect(System::SharedPtr<IPAddress>, int32_t, AsyncCallback, System::SharedPtr<Object>) method

非同期の接続操作を開始します。

System::SharedPtr<IAsyncResult> System::Net::Sockets::TcpClient::BeginConnect(System::SharedPtr<IPAddress> address, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
パラメーター説明
アドレスSystem::SharedPtr<IPAddress>リモートホストの IP アドレス。
ポートint32_tリモートホストのポート。
requestCallbackAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

開始された非同期接続操作を表す IAsyncResult オブジェクトです。

参照