[reSIProcate] Sending "Keep alives"
John Draper
lists at webcrunchers.com
Wed May 3 16:25:19 CDT 2006
stensil wrote:
>Hello, I quickly dig in resiprocate sources and found some interesting
>code fragments.
>
>Profile.hxx:
>
>class Profile
>{
>...
> ///time between CR/LF keepalive messages in seconds. Set to 0 to
>disable.
> ///Default is 30 seconds for datagram and 180 seconds for stream.
> ///Note: You must set a KeepAliveManager on DUM for this to work.
> virtual void setKeepAliveTimeForDatagram(int keepAliveTime);
> virtual int getKeepAliveTimeForDatagram() const;
> virtual void unsetKeepAliveTimeForDatagram();
> virtual void setKeepAliveTimeForStream(int keepAliveTime);
> virtual int getKeepAliveTimeForStream() const;
> virtual void unsetKeepAliveTimeForStream();
>...
>};
>
>
Hmmm - I remember getting a hit on this when I was doing global search
for "KeepAlive" in the source. It took me a while to discover that
UserProfile
inherits from this.
>DialogUsageManager.hxx:
>
>class DialogUsageManager
>{
>...
> void setKeepAliveManager(std::auto_ptr<KeepAliveManager> keepAlive);
>...
>};
>
>Probably it will interest you. IMHO, you must only use
>DialogUsageManager::setKeepAliveManager method. But if you want to
>change default values of keep-alive intervals than you should use
>Profile methods.
>
>
Yea - and after about 20 hours or examining the source code, I FINALLY
figured out that I had to set it in DUM instead of the other way around.
So my earlier posting was way off.
I have a number of things already coded which I'm going to try today,
but first want to read what responses I got.
Sometimes I get carried away, diverging away from my final solution as
I try one thing after another. Eventually loosing track of what I already
have working. I've learned since then how valuable this list is.
I have limited programming time due to health issues, so my time at the
computer writing programs is very valuable to me.
John
More information about the resiprocate-devel
mailing list