public class SipKeepAlive extends UdpKeepAlive
It periodically sends keep-alive tokens in order to refresh TCP connection timeouts and/or NAT timeouts (for the TCP and/or UDP sessions).
DEFAULT_TOKEN, delta_time, expire, stop, target, udp_socket, udp_token
Constructor and Description |
---|
SipKeepAlive(SipProvider sip_provider,
SocketAddress target,
long delta_time)
Creates a new SipKeepAlive.
|
SipKeepAlive(SipProvider sip_provider,
SocketAddress target,
SipMessage sip_token,
long delta_time)
Creates a new SipKeepAlive.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Main thread.
|
void |
sendToken()
Sends the kepp-alive packet now.
|
java.lang.String |
toString()
Gets a String representation of the Object
|
getDeltaTime, getDestSoAddress, halt, isRunning, setDeltaTime, setDestSoAddress, setExpirationTime
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public SipKeepAlive(SipProvider sip_provider, SocketAddress target, long delta_time)
public SipKeepAlive(SipProvider sip_provider, SocketAddress target, SipMessage sip_token, long delta_time)
public void sendToken() throws java.io.IOException
sendToken
in class UdpKeepAlive
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class UdpKeepAlive
public java.lang.String toString()
toString
in class UdpKeepAlive