Esempio n. 1
0
        public void SendToServer(SendablePacket packet)
        {
            if (this.streamProv.ProviderType == L2NetMode.Sniffer || this.serverCrypt is NullCryptor)
                return;

            byte[] tmp = packet.GetPacket();
            this.serverCrypt.EnCrypt(ref tmp, tmp.Length, 2, PacketType.ClientToGameserver);
            this.streamProv.ServerStreamOut.AddData(tmp);
        }
Esempio n. 2
0
        public void SendToClient(SendablePacket packet)
        {
            if (this.streamProv.ProviderType != L2NetMode.Proxy || this.clientCrypt is NullCryptor)
                return;

            byte[] tmp = packet.GetPacket();
            this.clientCrypt.EnCrypt(ref tmp, tmp.Length, 2, PacketType.GameserverToClient);
            this.streamProv.ClientStreamOut.AddData(tmp);
        }
Esempio n. 3
0
        public void SendToClient(SendablePacket packet)
        {
            if (this.streamProv.ProviderType != L2NetMode.Proxy || this.clientCrypt is NullCryptor)
            {
                return;
            }

            byte[] tmp = packet.GetPacket();
            this.clientCrypt.EnCrypt(ref tmp, tmp.Length, 2, PacketType.GameserverToClient);
            this.streamProv.ClientStreamOut.AddData(tmp);
        }
Esempio n. 4
0
        public void SendToServer(SendablePacket packet)
        {
            if (this.streamProv.ProviderType == L2NetMode.Sniffer || this.serverCrypt is NullCryptor)
            {
                return;
            }

            byte[] tmp = packet.GetPacket();
            this.serverCrypt.EnCrypt(ref tmp, tmp.Length, 2, PacketType.ClientToGameserver);
            this.streamProv.ServerStreamOut.AddData(tmp);
        }