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

Working with the Transport Layer 305
Server Connections
RVSIP_TRANSPORT_CONN_STATE_CLOSED
The connection moves to the CLOSED state upon receiving a network event
that indicates that the connection was closed by the remote party. In the
CLOSED state, the connection closes its internal socket. The connection then
moves to the TERMINATED state.
RVSIP_TRANSPORT_CONN_STATE_TERMINATED
The final connection state. When a connection is terminated, the connection
assumes the TERMINATED state. Upon reaching the TERMINATED state,
you can no longer reference the connection.
SERVER CONNECTION
S
TATE MACHINE
Figure 14-2 illustrates the Server Connection state machine.
Figure 14-2 Server Connection State Machine
CLOSING SERVER
CONNECTIONS
As opposed to client connections, it is usually not recommended to close a
server connection when the last owner detaches from it. It is best to leave
closing the connection to the connection initiator. However, the SIP Stack
provides three options of handling the closing of a server connection using the
serverConnectionTimeout configuration parameter. The application options are:
serverConnectionTimeout = 0
The connection is closed immediately when the last owner
detaches from it. This behavior is not recommended.
IDLE
CONNECTED
CLOSED
TERMINATED
Network Closed Event
RvSipTransportConnectionCreatedEv
drop=TRUE