Acceptor/Connector pattern implemented on both a Server and a Client