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)
パラメーター説明
hostStringリモートホスト名です。
ポートint32_tリモートホストのポート番号です。
requestCallbackAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

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

参照

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)
パラメーター説明
addressesSystem::ArrayPtr<System::SharedPtr<IPAddress>>リモートホストの IP アドレスです。
ポートint32_tリモートホストのポート番号です。
requestCallbackAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

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

参照

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)
パラメーター説明
remoteEPSystem::SharedPtr<EndPoint>リモートエンドポイント。
コールバックAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

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

参照

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 アドレスです。
ポートint32_tリモートホストのポート番号です。
requestCallbackAsyncCallback操作が完了したときに呼び出されるコールバック。
状態System::SharedPtr<Object>各非同期接続操作を一意に識別するためにユーザーが提供するデータ。

ReturnValue

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

参照