Template for custom implementation of a server socket.