I haven’t yet successfully found a way to change the port of a boost asio udp socket at run time, after the initialization. Is this possible or would I have to close the socket and re-open with a completely new socket? Thanks in advance.
For some background, I initialized the socket using socket(io_service, udp::endpoint(udp::v4, port)) and then use an async_receive_from() function to receive the data.
Aucun commentaire:
Enregistrer un commentaire