コード例 #1
0
ファイル: Utils.cs プロジェクト: Hefester/l2c-devsadmin
 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);
 }