Echo server implementation.