local.net
Class KeepAliveSip

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--local.net.KeepAliveUdp
              |
              +--local.net.KeepAliveSip
All Implemented Interfaces:
java.lang.Runnable

public class KeepAliveSip
extends KeepAliveUdp

KeepAliveSip thread, for keeping the connection up toward a target SIP node (e.g. toward the seriving proxy/gw or a remote UA). It periodically sends keep-alive tokens in order to refresh TCP connection timeouts and/or NAT TCP/UDP session timeouts.


Fields inherited from class local.net.KeepAliveUdp
delta_time, target
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
KeepAliveSip(org.zoolu.sip.provider.SipProvider sip_provider, org.zoolu.net.SocketAddress target, long delta_time)
          Creates a new SIP KeepAliveSip daemon
KeepAliveSip(org.zoolu.sip.provider.SipProvider sip_provider, org.zoolu.net.SocketAddress target, org.zoolu.sip.message.Message message, long delta_time)
          Creates a new SIP KeepAliveSip daemon
 
Method Summary
 void run()
          Main thread.
 void sendToken()
          Sends the kepp-alive packet now.
 java.lang.String toString()
          Gets a String representation of the Object
 
Methods inherited from class local.net.KeepAliveUdp
getDeltaTime, getDestSoAddress, halt, isRunning, setDeltaTime, setDestSoAddress, setExpirationTime
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeepAliveSip

public KeepAliveSip(org.zoolu.sip.provider.SipProvider sip_provider,
                    org.zoolu.net.SocketAddress target,
                    long delta_time)
Creates a new SIP KeepAliveSip daemon

KeepAliveSip

public KeepAliveSip(org.zoolu.sip.provider.SipProvider sip_provider,
                    org.zoolu.net.SocketAddress target,
                    org.zoolu.sip.message.Message message,
                    long delta_time)
Creates a new SIP KeepAliveSip daemon
Method Detail

sendToken

public void sendToken()
               throws java.io.IOException
Sends the kepp-alive packet now.
Overrides:
sendToken in class KeepAliveUdp

run

public void run()
Main thread.
Overrides:
run in class KeepAliveUdp

toString

public java.lang.String toString()
Gets a String representation of the Object
Overrides:
toString in class KeepAliveUdp