We have a boost asio based networking code, which connects to a remote side. The local side could be either a tcp4 socket or a unix socket.
Is there a typename to use that could hold both of these type of boost sockets? (e.g. something like a base class for both?).
Currently our code use
boost::asio::generic::stream_protocol::socket
for tcp socket, and
boost::asio::local::stream_protocol::socket
for a unix socket.