public SocketWrapper(Socket socket)
 {
     _socketCancellationToken = new SocketCancellationToken();
     _socketFactory           = new SocketFactory(_socketCancellationToken);
     _socket = socket;
     if (_socket.Connected)
     {
         _stream = new NetworkStream(_socket);
     }
 }