Пример #1
0
 void onGotGoodbye(const SyncSource& source, const std::string& reason)
 {
     cout << "I got a Goodbye packet from "
          << hex << (int)source.getID() << "@"
          << dec
          << source.getNetworkAddress() << ":"
          << source.getControlTransportPort() << endl;
     cout << "   Goodbye reason: \"" << reason << "\"" << endl;
 }
Пример #2
0
 // redefined from QueueRTCPManager
 void onGotRR(SyncSource& source, RecvReport& RR, uint8 blocks)
 {
     SingleThreadRTPSession::onGotRR(source,RR,blocks);
     cout << "I got an RR RTCP report from "
          << hex << (int)source.getID() << "@"
          << dec
          << source.getNetworkAddress() << ":"
          << source.getControlTransportPort() << endl;
 }
Пример #3
0
	// redefined from QueueRTCPManager
	void
	onGotSR(SyncSource& source, SendReport& SR, uint8 blocks)
	{
		RTPSession::onGotSR(source,SR,blocks);
		cout << "I got an SR RTCP report from "
		     << hex << (int)source.getID() << "@"
		     << dec
		     << source.getNetworkAddress() << ":" 
		     << source.getControlTransportPort() << endl;
	}
Пример #4
0
	// redefined from QueueRTCPManager
	bool
	onGotSDESChunk(SyncSource& source, SDESChunk& chunk, size_t len)
	{ 
		bool result = RTPSession::onGotSDESChunk(source,chunk,len);
		cout << "I got a SDES chunk from "
		     << hex << (int)source.getID() << "@" 
		     << dec
		     << source.getNetworkAddress() << ":" 
		     << source.getControlTransportPort()
		     << " (" 
		     << source.getParticipant()->getSDESItem(SDESItemTypeCNAME)
		     << ") " << endl;
		return result;
	}
Пример #5
0
void RTPAudio::onGotHello(const SyncSource &src)
{
	RTPEvent *event = RTPEvent::first;

	slog(Slog::levelDebug) << "hello(" << src.getID() << ") ";
        Participant* p = src.getParticipant();
	slog() << p->getSDESItem(SDESItemTypeCNAME) << std::endl;

	while(event)
	{
		event->gotHello(src);
		event = event->next;
	}
}
Пример #6
0
void RTPAudio::onGotGoodbye(const SyncSource &src, const string& reason)
{
	RTPEvent *event = RTPEvent::first;

	slog(Slog::levelDebug) << "bye(" << src.getID() << ") ";
	Participant* p = src.getParticipant();
	slog() << p->getSDESItem(SDESItemTypeCNAME) << "; " << reason;
	slog() << std::endl;

	while(event)
	{
		event->gotGoodbye(src, reason);
		event = event->next;
	}
}
Пример #7
0
	// redefined from IncomingDataQueue
	void onNewSyncSource(const SyncSource& src)
	{
		cout << "* New synchronization source: " <<
		     hex << (int)src.getID() << endl;
	}