Boost logo

Boost :

From: Tarun Batra (tbatra18_at_[hidden])
Date: 2023-05-14 05:25:01


Hi,

I have a code something like this:

TcpConnection::pointer my_conn = GetConn(req);

tcp::socket& my_socket = my_conn->getSocket();

tcp::resolver my_resolver(my_socket.get_executor());

Is it possible to check if the my_socket is ipv4 socket or ipv6 socket?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk