EncodeTypeTarget() 공개 메소드

public EncodeTypeTarget ( TypeTarget value ) : void
value TypeTarget
리턴 void
예제 #1
0
        public void HandleMessage(MumbleClient client)
        {
            var audioIn = new AudioPacket(packet);

            var type     = audioIn.DecodeTypeTarget();
            var session  = audioIn.DecodeVarint();
            var sequence = audioIn.DecodeVarint();

            Console.WriteLine(sequence);

            var audioOut = new AudioPacket();

            type.Target = 0;

            audioOut.EncodeTypeTarget(type);
            //audioOut.EncodeVarint(client.ClientUser.Session);
            audioOut.EncodeVarint(sequence + 5000);
            audioOut.Payload = audioIn.Payload;

            //client.SendUDPTunnel(audioOut.Packet);
        }
예제 #2
0
        public void HandleMessage(MumbleClient client)
        {
            var audioIn = new AudioPacket(packet);

            var type = audioIn.DecodeTypeTarget();
            var session = audioIn.DecodeVarint();
            var sequence = audioIn.DecodeVarint();

            Console.WriteLine(sequence);

            var audioOut = new AudioPacket();

            type.Target = 0;

            audioOut.EncodeTypeTarget(type);
            //audioOut.EncodeVarint(client.ClientUser.Session);
            audioOut.EncodeVarint(sequence + 5000);
            audioOut.Payload = audioIn.Payload;

            //client.SendUDPTunnel(audioOut.Packet);
        }