diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-03-17 21:31:28 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-03-17 21:31:28 +0000 |
commit | dad2a5c591a8a78d4623cf07f835d7ff311b0bb4 (patch) | |
tree | ea735aae0603e7933edf2994c4b36fe67f949037 /rtpSession.cpp | |
parent | added more options (diff) |
added rtpsession seen
Diffstat (limited to 'rtpSession.cpp')
-rw-r--r-- | rtpSession.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/rtpSession.cpp b/rtpSession.cpp index 3dcc14b..a32049b 100644 --- a/rtpSession.cpp +++ b/rtpSession.cpp @@ -34,7 +34,7 @@ RtpSession::RtpSession(const std::string& call_id) : in_sync_(false), call_id_(call_id) , dead_(false), complete_(false), local_addr_("") , local_port1_(0), local_port2_(0), - remote_addr1_(""), remote_addr2_(""), remote_port1_(0), remote_port2_(0) + remote_addr1_(""), remote_addr2_(""), remote_port1_(0), remote_port2_(0),seen1_(false), seen2_(false) { } @@ -83,6 +83,34 @@ RtpSession& RtpSession::setLocalAddr(std::string a) return *this; } +bool RtpSession::getSeen1() +{ + Lock lock(mutex_); + return seen1_; +} + +RtpSession& RtpSession::setSeen1() +{ + Lock lock(mutex_); + //in_sync_ = false; + seen1_ = true; + return *this; +} + +bool RtpSession::getSeen2() +{ + Lock lock(mutex_); + return seen2_; +} + +RtpSession& RtpSession::setSeen2() +{ + Lock lock(mutex_); + //in_sync_ = false; + seen2_ = true; + return *this; +} + u_int16_t RtpSession::getLocalPort1() { Lock lock(mutex_); |