示例#1
0
 public void setKey( byte[] key )
 {
     m_Crypt = new NewCrypt(key);
 }
示例#2
0
 /// <summary>
 /// Initializes new instance of <see cref="UserConnection"/> class.
 /// </summary>
 /// <param name="socket">Connection <see cref="Socket"/>.</param>
 internal UserConnection( Socket socket )
     : base(socket)
 {
     Session = InitializeSession(( ( IPEndPoint )socket.RemoteEndPoint ).Address.ToString());
     m_Crypt = new NewCrypt(Session.BlowfishKey);
 }