|
Classes |
| struct | UDPContext |
Functions |
| static int | udp_set_multicast_ttl (int sockfd, int mcastTTL, struct sockaddr *addr) |
| static int | udp_join_multicast_group (int sockfd, struct sockaddr *addr) |
| static int | udp_leave_multicast_group (int sockfd, struct sockaddr *addr) |
| static struct addrinfo * | udp_ipv6_resolve_host (const char *hostname, int port, int type, int family, int flags) |
| static int | udp_set_url (struct sockaddr_storage *addr, const char *hostname, int port) |
| static int | udp_socket_create (UDPContext *s, struct sockaddr_storage *addr, int *addr_len) |
| static int | udp_port (struct sockaddr_storage *addr, int addr_len) |
| static int | udp_set_url (struct sockaddr_in *addr, const char *hostname, int port) |
| static int | udp_socket_create (UDPContext *s, struct sockaddr_in *addr, int *addr_len) |
| static int | udp_port (struct sockaddr_in *addr, int len) |
| int | udp_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.
|
| int | udp_get_local_port (URLContext *h) |
| | Return the local port used by the UDP connexion.
|
| int | udp_get_file_handle (URLContext *h) |
| | Return the udp file handle for select() usage to wait for several RTP streams at the same time.
|
| static int | udp_open (URLContext *h, const char *uri, int flags) |
| static int | udp_read (URLContext *h, uint8_t *buf, int size) |
| static int | udp_write (URLContext *h, uint8_t *buf, int size) |
| static int | udp_close (URLContext *h) |
Variables |
| URLProtocol | udp_protocol |
| int udp_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.
url syntax: udp://host:port[?option=val...] option: 'multicast=1' : enable multicast 'ttl=n' : set the ttl value (for multicast only) 'localport=n' : set the local port 'pkt_size=n' : set max packet size 'reuse=1' : enable reusing the socket
- Parameters:
-
| s1 | media file context |
| uri | of the remote server |
- Returns:
- zero if no error.
Definition at line 261 of file udp.c.
Referenced by rtp_set_remote_url(), and udp_open().