mirror of
https://github.com/resiprocate/resiprocate.git
synced 2026-01-12 00:05:02 +08:00
36 lines
653 B
C++
36 lines
653 B
C++
#include "EndPoint.hxx"
|
|
|
|
#include "rutil/Logger.hxx"
|
|
#include "rutil/Data.hxx"
|
|
|
|
#include "tfm/SequenceSet.hxx"
|
|
|
|
using namespace resip;
|
|
|
|
#define RESIPROCATE_SUBSYSTEM resip::Subsystem::TEST
|
|
|
|
EndPoint::~EndPoint()
|
|
{
|
|
}
|
|
|
|
void
|
|
EndPoint::clean()
|
|
{
|
|
}
|
|
|
|
void
|
|
EndPoint::handleEvent(Event* eventRaw)
|
|
{
|
|
std::shared_ptr<Event> event(eventRaw);
|
|
DebugLog(<< "EndPoint::handleEvent: " << *eventRaw);
|
|
std::shared_ptr<SequenceSet> sset = getSequenceSet().lock();
|
|
if (sset)
|
|
{
|
|
sset->enqueue(event);
|
|
}
|
|
else
|
|
{
|
|
WarningLog(<< *this << " has no associated SequenceSet: discarding event " << *event);
|
|
}
|
|
}
|