bool xtd::net::sockets::socket::accept_async | ( | xtd::net::sockets::socket_async_event_args & | e | ) |
Begins an asynchronous operation to accept an incoming connection attempt.
e | The xtd::net::sockets::socket::socket_async_event_args object to use for this asynchronous socket operation. |
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. |
xtd::argument_exception | An argument is not valid. This exception occurs if the buffer provided is not large enough. The buffer must be at least 2 * (sizeof(SOCKADDR_STORAGE + 16) bytes. This exception also occurs if multiple buffers are specified, the xtd::net::sockets::socket_async_event_args::buffer_list property is not empty. |
xtd::invalid_operation_exception | The accepting socket is not listening for connections. You must call xtd::net::sockets::socket::bind and xtd::net::sockets::socket::listen before calling xtd::net::sockets::socket::accept(). |