implementation of SocketServer