#include <errno.h>
#include "config.h"
#include "libavutil/error.h"
#include "os_support.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <poll.h>
Go to the source code of this file.
Defines | |
#define | ff_neterrno() AVERROR(errno) |
#define | EAI_FAIL 4 |
#define | EAI_FAMILY 5 |
#define | EAI_NONAME 8 |
#define | AI_PASSIVE 1 |
#define | AI_CANONNAME 2 |
#define | AI_NUMERICHOST 4 |
#define | NI_NOFQDN 1 |
#define | NI_NUMERICHOST 2 |
#define | NI_NAMERQD 4 |
#define | NI_NUMERICSERV 8 |
#define | NI_DGRAM 16 |
#define | INET6_ADDRSTRLEN INET_ADDRSTRLEN |
#define | IN_MULTICAST(a) ((((uint32_t)(a)) & 0xf0000000) == 0xe0000000) |
#define | IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff) |
Functions | |
int | ff_socket_nonblock (int socket, int enable) |
int | ff_network_init (void) |
void | ff_network_close (void) |
void | ff_tls_init (void) |
void | ff_tls_deinit (void) |
int | ff_network_wait_fd (int fd, int write) |
int | ff_inet_aton (const char *str, struct in_addr *add) |
int | ff_is_multicast_address (struct sockaddr *addr) |
Variables | |
int | ff_network_inited_globally |
#define AI_PASSIVE 1 |
Definition at line 111 of file network.h.
Referenced by udp_socket_create().
#define ff_neterrno | ( | ) | AVERROR(errno) |
Definition at line 46 of file network.h.
Referenced by circular_buffer_task(), ff_network_wait_fd(), handle_connection(), http_receive_data(), http_send_data(), http_server(), rtp_read(), tcp_open(), tcp_read(), tcp_write(), udp_read(), and udp_write().
#define IN6_IS_ADDR_MULTICAST | ( | a | ) | (((uint8_t *) (a))[0] == 0xff) |
Definition at line 164 of file network.h.
Referenced by ff_is_multicast_address().
#define IN_MULTICAST | ( | a | ) | ((((uint32_t)(a)) & 0xf0000000) == 0xe0000000) |
Definition at line 161 of file network.h.
Referenced by ff_is_multicast_address().
#define NI_NUMERICHOST 2 |
Definition at line 127 of file network.h.
Referenced by ff_rtsp_connect(), ff_rtsp_make_setup_request(), resolve_destination(), and sdp_read_header().
#define NI_NUMERICSERV 8 |
Definition at line 135 of file network.h.
Referenced by udp_port().
int ff_inet_aton | ( | const char * | str, | |
struct in_addr * | add | |||
) |
Definition at line 89 of file os_support.c.
Referenced by resolve_host().
int ff_is_multicast_address | ( | struct sockaddr * | addr | ) |
Definition at line 173 of file network.c.
Referenced by ff_udp_set_remote_url(), and resolve_destination().
void ff_network_close | ( | void | ) |
Definition at line 152 of file network.c.
Referenced by avformat_network_deinit(), ff_rtsp_connect(), ffurl_close(), rtp_read_header(), rtsp_read_close(), rtsp_write_close(), sap_read_close(), sap_write_close(), sdp_read_close(), sdp_read_header(), and url_alloc_for_protocol().
int ff_network_init | ( | void | ) |
Definition at line 125 of file network.c.
Referenced by avformat_network_init(), ff_rtsp_connect(), rtp_read_header(), sap_read_header(), sap_write_header(), sdp_read_header(), and url_alloc_for_protocol().
int ff_network_wait_fd | ( | int | fd, | |
int | write | |||
) |
Definition at line 143 of file network.c.
Referenced by tcp_read(), tcp_write(), udp_read(), and udp_write().
int ff_socket_nonblock | ( | int | socket, | |
int | enable | |||
) |
Definition at line 252 of file os_support.c.
Referenced by new_connection(), socket_open_listen(), tcp_open(), and udp_open().
void ff_tls_deinit | ( | void | ) |
Definition at line 100 of file network.c.
Referenced by avformat_network_deinit(), tls_close(), and tls_open().
void ff_tls_init | ( | void | ) |
Definition at line 68 of file network.c.
Referenced by avformat_network_init(), and tls_open().
Definition at line 123 of file network.c.
Referenced by avformat_network_init().