Lines Matching full:channel
44 // The first two bits of a channel data message are 0b01.
73 // Encapsulates a TURN channel binding.
74 // The object is created when a channel bind request is received by an
76 class TurnServerAllocation::Channel : public rtc::MessageHandler {
78 Channel(rtc::Thread* thread, int id,
80 ~Channel();
86 sigslot::signal1<Channel*> SignalDestroyed;
196 // Fail if the packet is too small to even contain a channel header.
208 // This is a channel message; let the allocation handle it.
730 // Check that channel id is valid.
737 // Check that this channel id isn't bound to another transport address, and
738 // that this transport address isn't bound to another channel id.
739 Channel* channel1 = FindChannel(channel_id);
740 Channel* channel2 = FindChannel(peer_attr->GetAddress());
746 // Add or refresh this channel.
748 channel1 = new Channel(thread_, channel_id, peer_attr->GetAddress());
756 // Channel binds also refresh permissions.
759 LOG_J(LS_INFO, this) << "Bound channel, id=" << channel_id
769 // Extract the channel number from the data.
771 Channel* channel = FindChannel(channel_id);
772 if (channel) {
775 size - TURN_CHANNEL_HEADER_SIZE, channel->peer());
777 LOG_J(LS_WARNING, this) << "Received channel data for invalid channel, id="
788 Channel* channel = FindChannel(addr);
789 if (channel) {
790 // There is a channel bound to this address. Send as a channel message.
792 buf.WriteUInt16(channel->id());
797 // No channel, but a permission exists. Send as a data indication.
849 TurnServerAllocation::Channel* TurnServerAllocation::FindChannel(
859 TurnServerAllocation::Channel* TurnServerAllocation::FindChannel(
902 void TurnServerAllocation::OnChannelDestroyed(Channel* channel) {
904 std::find(channels_.begin(), channels_.end(), channel);
930 TurnServerAllocation::Channel::Channel(rtc::Thread* thread, int id,
936 TurnServerAllocation::Channel::~Channel() {
940 void TurnServerAllocation::Channel::Refresh() {
945 void TurnServerAllocation::Channel::OnMessage(rtc::Message* msg) {