Register sockets inside a transport.