MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Session Initiation Protocol Library Functions  sipholdmsg(3SIP)



NAME
     sipholdmsg, sipfreemsg - adds and  removes  a  reference
     from a SIP message

SYNOPSIS
     cc [ flag ... ] file ... -lsip [ library ... ]
     #include 

     void sipholdmsg(sipmsgt sipmsg);


     void sipfreemsg(sipmsgt sipmsg);


DESCRIPTION
     The sipholdmsg() function adds a reference to the SIP mes-
     sage  passed  as  the  argument.  The  reference  is used to
     prevent the SIP message from being freed when in use.


     The sipfreemsg() function  is  used  to  remove  an  added
     reference on the SIP message passed as the argument. If this
     is the last reference on the SIP message (i.e. the number of
     references on the SIP message is 0), the SIP message is des-
     troyed and associated resources freed. Freeing a SIP message
     does  not  set  the  sipmsg  pointer  to NUL. Applications
     should not expect the pointer to a freed SIP message  to  be
     NUL.

RETURN VALUES
     The value of errno is not changed  by  these  calls  in  the
     event of an error.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     libsip(3LIB)





SunOS 5.11          Last change: 25 Jan 2007                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™