Destroys the acceptor.
~basic_socket_acceptor();
This function destroys the acceptor, cancelling any outstanding asynchronous operations associated with the acceptor as if by calling cancel.
cancel