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 객체.

또 보기