MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Communication Protocol Parser Utilities Library Functions
                                   sdpfindattribute(3COMPUTIL)



NAME
     sdpfindattribute - find the attribute from  the  attribute
     list

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

     sdpattrt *sdpfindattribute(sdpattrt *attr, const char *name);


DESCRIPTION
     The sdpfindattribute()  function  searches  the  attribute
     list attr for the specified attribute name. If the attribute
     is found it returns the pointer to that attribute. Otherwise
     it returns NUL.

RETURN VALUES
     The  sdpfindattribute()  function  returns  the  attribute
     (sdpattrt  *) on success and NUL when the search fails or
     when mandatory input parameters are NUL.

EXAMPLES
     Example 1 An (incomplete) SDP description that contains  one
     media section: audio.

       m=audio 49170 RTP/AVP 0 8
       a=rtpmap:0 PCMU/8000
       a=rtpmap:8 PCMA/8000
       a=sendonly
       a=ptime:10000
       a=maxptime:20000

       /*
        * Assuming that above description is parsed using sdpparse and that
        * the parsed structure is in "session" sdpsessiont structure.
        */

       sdpattrt *ptime;
       sdpattrt *maxptime;
       sdpmediat *media = session->smedia;

       if ((ptime = sdpfindattribute(media->mattr, "ptime")) == NUL)
               /* ptime attribute not present */
       else if((maxptime = sdpfindattribute(media->mattr,
                "maxptime")) == NUL)
               /* maxptime attribute not present */


ATRIBUTES




SunOS 5.11          Last change: 12 Oct 2007                    1






Communication Protocol Parser Utilities Library Functions
                                   sdpfindattribute(3COMPUTIL)



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



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     Safe                        
    


SEE ALSO
     libcommputil(3LIB), sdpparse(3COMPUTIL), attributes(5)






































SunOS 5.11          Last change: 12 Oct 2007                    2






Communication Protocol Parser Utilities Library Functions
                                   sdpfindattribute(3COMPUTIL)






















































SunOS 5.11          Last change: 12 Oct 2007                    3






OpenSolaris man pages main menu

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