pothos-library: use SocketAddress to handle the name resolution