I\'m trying to bind a boost asio tcp socket to a local network interface specifically. When is the correct time to call the bind() method on the socket?
bind()
Looks like there isn't enough information. But generally, you should:
_socket->open()
_socket->set_option()
_socket->bind()
_socket->async_connect()
in handleConnect(): _socket->async_read_some()