HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

386 HP-UX C SIP Stack Programmers Guide
Type of Service (TOS)
RvSipTransportConnectionSetIpTosSockOption()
Sets the option value into the local address, from which the outgoing connection
is opened. All the packets (TCP) that are sent on this connection will be marked
with the set value in the TOS byte of the IP header. This function can be called
from RvSipXXXNewConnInUseEv() callback.
RvSipTransportConnectionGetIpTosSockOption()
Gets the option value that was set for the outgoing connection.
S
AMPLE CODE The following code goes over all local addresses that the SIP Stack opened and
sets the IP_TOS option for their sockets. The function illustrated in the sample
can be called after SIP Stack initialization.