14 May
2023
14 May
'23
5:25 a.m.
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?