void xtd::net::sockets::socket::end_connect | ( | xtd::sptr< xtd::iasync_result > | async_result | ) |
Ends a pending asynchronous connection request.
async_result | An xtd::iasync_result that stores state information for this asynchronous operation as well as any user defined data. |
argument_exception | asyncResult was not returned by a call to the xtd::net::sockets::socket::begin_connect method. |
xtd::net::sockets::socket_exception | An error occurred when attempting to access the socket. |
xtd::object_closed_exception | The xtd::net::sockets::socket has been closed. |