rtp.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * rtp.h: RTP/RTCP headerfile
00003  *****************************************************************************
00004  * Copyright (C) 2005 M2X
00005  *
00006  * $Id$
00007  *
00008  * Authors: Jean-Paul Saman <jpsaman #_at_# videolan dot org>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef _RTP_H
00026 #define _RTP_H 1
00027 
00028 #define RTP_HEADER_LEN 12
00029 #define RTP_SEQ_NUM_SIZE 65536
00030 
00031 /*
00032  * See RFC 1889 & RFC 2250.
00033  */
00034 typedef struct {
00035     int fd;        /*< socket descriptor of rtp stream */
00036 
00037     unsigned int u_version;      /*< rtp version number */
00038     unsigned int u_CSRC_count;   /*< CSRC count */
00039     unsigned int u_payload_type; /*< type of RTP payload stream */
00040     bool   b_extension;    /*< The header is followed by exactly one header extension */
00041     unsigned int u_marker;       /*< marker field expect 1 */
00042     unsigned int u_seq_no;       /*< sequence number of RTP stream */
00043     uint32_t i_timestamp;        /*< timestamp of stream */
00044     unsigned int ssrc;           /*< stream number is used here. */
00045 
00046     unsigned int u_ext_length;   /*< lenght of extension field */
00047 
00048     /*int (*pf_connect)( void *p_userdata, char *p_server, int i_port );
00049     int (*pf_disconnect)( void *p_userdata );
00050     int (*pf_read)( void *p_userdata, uint8_t *p_buffer, int i_buffer );
00051     int (*pf_write)( void *p_userdata, uint8_t *p_buffer, int i_buffer );*/
00052 } rtp_t;
00053 
00054 #endif /* RTP_H */

Generated on Wed Aug 13 08:02:37 2008 for VLC by  doxygen 1.5.1