MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Communication Protocol Parser Utilities Library Functions
                                sdpfindmediartpmap(3COMPUTIL)



NAME
     sdpfindmediartpmap - find the  rtpmap  attribute  in  the
     specified media

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

     sdpattrt *sdpfindmediartpmap(sdpmediat *media,
          const char *format);


DESCRIPTION
     The sdpfindmediartpmap() function searches the  attribute
     list of the specified media structure, media, for the speci-
     fied format. If the search is successful a pointer  to  that
     rtpmap attribute is returned. Otherwise it returns NUL.

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

EXAMPLES
     Example 1 An (incomplete) SDP description that contains  two
     media sections: audio and video.

       m=audio 49170 RTP/AVP 0 8
       a=rtpmap:0 PCMU/8000
       a=rtpmap:8 PCMA/8000
       m=video 51372 RTP/AVP 31 32
       a=rtpmap:31 H261/90000
       a=rtpmap:32 MPV/90000

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

       sdpmediat     *video;
       sdpattrt      *mpv;

       video = sdpfindmedia(session->smedia, "video);
       mpv = sdpfindmediartpmap(video, "32");

       /*
        * Now the attribute structure sdpattrt, mpv will be having
        * values from the attribute field "a=rtpmap:32 MPV/90000"
        */





SunOS 5.11          Last change: 12 Oct 2007                    1






Communication Protocol Parser Utilities Library Functions
                                sdpfindmediartpmap(3COMPUTIL)



ATRIBUTES
     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
                                sdpfindmediartpmap(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 ™