/[resiprocate]/branches/b-identity-0505/dum/NetworkAssociation.cxx
ViewVC logotype

Contents of /branches/b-identity-0505/dum/NetworkAssociation.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4598 - (show annotations) (download)
Wed May 11 22:53:07 2005 UTC (14 years, 7 months ago) by derek
File size: 758 byte(s)
set svn:eol-style to LF
1
2 #include "resiprocate/SipMessage.hxx"
3 #include "resiprocate/dum/DialogUsageManager.hxx"
4 #include "resiprocate/dum/NetworkAssociation.hxx"
5 #include "resiprocate/dum/KeepAliveManager.hxx"
6
7 using namespace resip;
8
9 void
10 NetworkAssociation::update(const SipMessage& msg, int keepAliveInterval)
11 {
12 if (mDum && mDum->mKeepAliveManager.get())
13 {
14 if (msg.getSource().getType() != 0 && !(msg.getSource() == mTarget))
15 {
16 mDum->mKeepAliveManager->remove(mTarget);
17 mTarget = msg.getSource();
18 mDum->mKeepAliveManager->add(mTarget, keepAliveInterval);
19 }
20 }
21 }
22
23 NetworkAssociation::~NetworkAssociation()
24 {
25 if (mDum && mDum->mKeepAliveManager.get())
26 {
27 mDum->mKeepAliveManager->remove(mTarget);
28 }
29 }
30
31

Properties

Name Value
svn:eol-style LF
svn:executable *

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27