public void HandleMessage(MumbleClient client) { if (client.Users.TryGetValue(session, out var user)) { user.Update(this); } }
public void HandleMessage(MumbleClient client) { if (!client.Channels.TryGetValue(channel_id, out var channel)) { channel = new MumbleChannel(client, this); } channel.Update(this); }
public MumbleUser(MumbleClient client, UserState message) { _client = client; Name = message.name; Session = message.session; client.Users.Add(Session, this); Channel = client.Channels[message.channel_id]; Channel.AddLocalUser(this); }
static void Main(string[] args) { var client = new MumbleClient("Mumble.net", "ciphershed.org", "Test"); client.Connect(); Console.ReadLine(); Console.WriteLine(client.RootChannel.Tree()); Console.ReadLine(); }
public MumbleUser(MumbleClient client, UserState message) { _client = client; Name = message.name; Session = message.session; client.Users.Add(Session, this); Channel = client.Channels[message.channel_id]; Channel.AddLocalUser(this); }
public MumbleChannel(MumbleClient client, ChannelState message) { _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); } }
public MumbleChannel(MumbleClient client, ChannelState message) { _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); } }
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); }
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); }
public void HandleMessage(MumbleClient client) { }
public void HandleMessage(MumbleClient client) { client.Update(this); }
public void HandleMessage(MumbleClient client) { }
public void HandleMessage(MumbleClient client) { client.Update(this); }
public void HandleMessage(MumbleClient client) { MumbleUser user; if (!client.Users.TryGetValue(session, out user)) { user = new MumbleUser(client, this); } user.Update(this); }
public void HandleMessage(MumbleClient client) { MumbleChannel channel; if (!client.Channels.TryGetValue(channel_id, out channel)) { channel = new MumbleChannel(client, this); } channel.Update(this); }
public override void Init() { TickInterval = 60; client = new MumbleClient("huffelpuff", "talk.piratenpartei.ch", Settings.Default.Nick + "@IRC"); base.Init(); }