Esempio n. 1
0
        static void Main(string[] args)
        {
            var client = new MumbleClient("Mumble.net");

            client.Connect();

            System.Console.ReadLine();
            System.Console.WriteLine(client.RootChannel.Tree());
            System.Console.ReadLine();

        }
Esempio n. 2
0
        public MumbleUser(MumbleClient client, MumbleProto.UserState message)
        {
            this.client = client;
            Name = message.name;
            Session = message.session;

            client.Users.Add(Session, this);

            this.Channel = client.Channels[message.channel_id];

            this.Channel.AddLocalUser(this);
        }
Esempio n. 3
0
        public MumbleChannel(MumbleClient client, MumbleProto.ChannelState message)
        {
            this.client = client;

            ID = message.channel_id;
            Name = message.name;

            client.Channels.Add(ID, this);
            client.Channels.TryGetValue(message.parent, out parentChannel);

            if (IsRoot())
            {
                client.RootChannel = this;
            }
            else
            {
                parentChannel.subChannels.Add(this);
            }
        }
Esempio n. 4
0
        public void HandleMessage(MumbleClient client)
        {
            var audioIn = new AudioPacket(this.packet);

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

            System.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);
        }
Esempio n. 5
0
        public void HandleMessage(MumbleClient client)
        {

        }
Esempio n. 6
0
 public void HandleMessage(MumbleClient client)
 {
     client.Update(this);
 }
Esempio n. 7
0
 public void HandleMessage(MumbleClient client)
 {
     MumbleUser user;
     if (!client.Users.TryGetValue(this.session, out user))
     {
         user = new MumbleUser(client, this);
     }
     user.Update(this);
 }
Esempio n. 8
0
        public void HandleMessage(MumbleClient client)
        {
            MumbleChannel channel;
            if (!client.Channels.TryGetValue(this.channel_id, out channel))
            {
                channel = new MumbleChannel(client, this);
            }
            channel.Update(this);

        }