public void onAccountLogin(ByteQueue state, PacketReader pvSrc, Socket s)
        {
            int      authID   = pvSrc.ReadInt32();
            String   username = pvSrc.ReadString(30);
            FastWalk fastWalk = new FastWalk(username);

            fastWalk.Sequence = 0;
            IPEndPoint endPoint = s.RemoteEndPoint as IPEndPoint;

            this.m_IpStorage.Add(username, endPoint.Address);
            ClientIdentifier client = ClientStorage.GetInstance().GetClient(s);

            client.Username = username;
            this.m_DirectionFilterManager.add(client, fastWalk);
        }
예제 #2
0
 public static void InvokeFastWalk(FastWalkEventArgs e)
 {
     FastWalk?.Invoke(e);
 }
 public void onAccountLogin(ByteQueue state, PacketReader pvSrc, Socket s)
 {
     int authID = pvSrc.ReadInt32();
     String username = pvSrc.ReadString( 30 );
     FastWalk fastWalk = new FastWalk(username);
     fastWalk.Sequence = 0;
     IPEndPoint endPoint = s.RemoteEndPoint as IPEndPoint;
     this.m_IpStorage.Add(username, endPoint.Address);
     ClientIdentifier client = ClientStorage.GetInstance().GetClient(s);
     client.Username = username;
     this.m_DirectionFilterManager.add(client, fastWalk);
 }
예제 #4
0
 public static void InvokeFastWalk(FastWalkEventArgs args)
 {
     FastWalk?.Invoke(args);
 }