HP-UX C SIP Stack Programmer's Guide (Novembery 2007)
224 HP-UX C SIP Stack Programmer’s Guide
Transmitter Manager API
Sample Code
The following code samples describe how to create a transmitter and how to
send a message using a transmitter.
To create a transmitter
1. Define the event handler functions.
2. Declare a handle for the new transmitter.
3. Set the event handlers in the event handler functions.
4. Call the RvSipTransmitterMgrCreateTransmitter() function
and supply the event handlers.
Sample Code
The following code demonstrates an implementation of the transmitter state
changed callback (step 1). In this sample the application terminates the
transmitter after the message was sent or if the transmitter reaches the
MSG_SEND_FAILURE state (next page).