Metode System::Net::Sockets::Socket::BeginConnect

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

Memulai operasi koneksi asinkron.

System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(String host, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
ParameterTipeDeskripsi
hostStringNama host remote.
portint32_tNomor port host remote.
requestCallbackAsyncCallbackCallback yang akan dipanggil ketika operasi selesai.
stateSystem::SharedPtr<Object>Data yang disediakan pengguna yang digunakan untuk mengidentifikasi secara unik setiap operasi koneksi asinkron.

ReturnValue

Sebuah objek IAsyncResult yang mewakili operasi koneksi asinkron yang dimulai.

Lihat Juga

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

Memulai operasi koneksi asinkron.

System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
ParameterTipeDeskripsi
addressesSystem::ArrayPtr<System::SharedPtr<IPAddress>>Alamat IP host remote.
portint32_tNomor port host remote.
requestCallbackAsyncCallbackCallback yang akan dipanggil ketika operasi selesai.
stateSystem::SharedPtr<Object>Data yang disediakan pengguna yang digunakan untuk mengidentifikasi secara unik setiap operasi koneksi asinkron.

ReturnValue

Sebuah objek IAsyncResult yang mewakili operasi koneksi asinkron yang dimulai.

Lihat Juga

Socket::BeginConnect(System::SharedPtr<EndPoint>, AsyncCallback, System::SharedPtr<Object>) method

Memulai operasi koneksi asinkron.

System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<EndPoint> remoteEP, AsyncCallback callback, System::SharedPtr<Object> state)
ParameterTipeDeskripsi
remoteEPSystem::SharedPtr<EndPoint>Endpoint remote.
callbackAsyncCallbackCallback yang akan dipanggil ketika operasi selesai.
stateSystem::SharedPtr<Object>Data yang disediakan pengguna yang digunakan untuk mengidentifikasi secara unik setiap operasi koneksi asinkron.

ReturnValue

Sebuah objek IAsyncResult yang mewakili operasi koneksi asinkron yang dimulai.

Lihat Juga

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

Memulai operasi koneksi asinkron.

System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginConnect(System::SharedPtr<IPAddress> address, int32_t port, AsyncCallback requestCallback, System::SharedPtr<Object> state)
ParameterTipeDeskripsi
alamatSystem::SharedPtr<IPAddress>Alamat IP host remote.
portint32_tNomor port host remote.
requestCallbackAsyncCallbackCallback yang akan dipanggil ketika operasi selesai.
stateSystem::SharedPtr<Object>Data yang disediakan pengguna yang digunakan untuk mengidentifikasi secara unik setiap operasi koneksi asinkron.

ReturnValue

Sebuah objek IAsyncResult yang mewakili operasi koneksi asinkron yang dimulai.

Lihat Juga