|
FFmpeg
|
UDP protocol. More...
#include "avformat.h"#include "avio_internal.h"#include "libavutil/avassert.h"#include "libavutil/parseutils.h"#include "libavutil/fifo.h"#include "libavutil/intreadwrite.h"#include "libavutil/avstring.h"#include "libavutil/opt.h"#include "libavutil/log.h"#include "libavutil/time.h"#include "internal.h"#include "network.h"#include "os_support.h"#include "url.h"Classes | |
| struct | UDPContext |
Macros | |
| #define | _DEFAULT_SOURCE |
| #define | _BSD_SOURCE /* Needed for using struct ip_mreq with recent glibc */ |
| #define | UDPLITE_SEND_CSCOV 10 |
| #define | UDPLITE_RECV_CSCOV 11 |
| #define | IPPROTO_UDPLITE 136 |
| #define | IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP |
| #define | IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP |
| #define | UDP_TX_BUF_SIZE 32768 |
| #define | UDP_MAX_PKT_SIZE 65536 |
| #define | UDP_HEADER_SIZE 8 |
| #define | OFFSET(x) offsetof(UDPContext, x) |
| #define | D AV_OPT_FLAG_DECODING_PARAM |
| #define | E AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
| typedef struct UDPContext | UDPContext |
Functions | |
| int | ff_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. More... | |
| int | ff_udp_get_local_port (URLContext *h) |
| Return the local port used by the UDP connection. More... | |
Variables | |
| const URLProtocol | ff_udp_protocol |
| const URLProtocol | ff_udplite_protocol |
UDP protocol.
| int ff_udp_get_local_port | ( | URLContext * | h | ) |
Return the local port used by the UDP connection.
| h | media file context |
| int ff_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: '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 'overrun_nonfatal=1': survive in case of circular buffer overrun
| h | media file context |
| uri | of the remote server |
| const URLProtocol ff_udp_protocol |
| const URLProtocol ff_udplite_protocol |
1.8.12