rtpproto.c File Reference

Go to the source code of this file.

Classes

struct  RTPContext

Functions

int rtp_set_remote_url (URLContext *h, const char *uri)
 If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address.
static void url_add_option (char *buf, int buf_size, const char *fmt,...)
static void build_udp_url (char *buf, int buf_size, const char *hostname, int port, int local_port, int multicast, int ttl)
static int rtp_open (URLContext *h, const char *uri, int flags)
static int rtp_read (URLContext *h, uint8_t *buf, int size)
static int rtp_write (URLContext *h, uint8_t *buf, int size)
static int rtp_close (URLContext *h)
int rtp_get_local_port (URLContext *h)
 Return the local port used by the RTP connection.
void rtp_get_file_handles (URLContext *h, int *prtp_fd, int *prtcp_fd)
 Return the rtp and rtcp file handles for select() usage to wait for several RTP streams at the same time.

Variables

URLProtocol rtp_protocol


Function Documentation

int rtp_set_remote_url ( URLContext h,
const char *  uri 
)

If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address.

Parameters:
s1 media file context
uri of the remote server
Returns:
zero if no error.

Definition at line 46 of file rtpproto.c.

Referenced by rtsp_read_header().

static void url_add_option ( char *  buf,
int  buf_size,
const char *  fmt,
  ... 
) [static]

Definition at line 69 of file rtpproto.c.

Referenced by build_udp_url().

static void build_udp_url ( char *  buf,
int  buf_size,
const char *  hostname,
int  port,
int  local_port,
int  multicast,
int  ttl 
) [static]

Definition at line 84 of file rtpproto.c.

Referenced by rtp_open().

static int rtp_open ( URLContext h,
const char *  uri,
int  flags 
) [static]

Definition at line 104 of file rtpproto.c.

static int rtp_read ( URLContext h,
uint8_t *  buf,
int  size 
) [static]

Definition at line 169 of file rtpproto.c.

static int rtp_write ( URLContext h,
uint8_t *  buf,
int  size 
) [static]

Definition at line 232 of file rtpproto.c.

static int rtp_close ( URLContext h  )  [static]

Definition at line 258 of file rtpproto.c.

int rtp_get_local_port ( URLContext h  ) 

Return the local port used by the RTP connection.

Parameters:
s1 media file context
Returns:
the local port number

Definition at line 273 of file rtpproto.c.

Referenced by rtsp_read_header().

void rtp_get_file_handles ( URLContext h,
int *  prtp_fd,
int *  prtcp_fd 
)

Return the rtp and rtcp file handles for select() usage to wait for several RTP streams at the same time.

Parameters:
h media file context

Definition at line 284 of file rtpproto.c.

Referenced by udp_read_packet().


Variable Documentation

Initial value:

 {
    "rtp",
    rtp_open,
    rtp_read,
    rtp_write,
    NULL, 
    rtp_close,
}

Definition at line 292 of file rtpproto.c.


Generated on Sat Dec 18 05:15:55 2010 for MythTV by  doxygen 1.5.5