Simple implementations of sockets and connections.