#include "config.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
Go to the source code of this file.
Data Structures | |
struct | sockaddr_storage |
struct | addrinfo |
Defines | |
#define | ff_neterrno() AVERROR(errno) |
#define | FF_NETERROR(err) AVERROR(err) |
#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 | getaddrinfo ff_getaddrinfo |
#define | freeaddrinfo ff_freeaddrinfo |
#define | getnameinfo ff_getnameinfo |
#define | gai_strerror ff_gai_strerror |
Functions | |
int | ff_socket_nonblock (int socket, int enable) |
static int | ff_network_init (void) |
static void | ff_network_close (void) |
int | ff_inet_aton (const char *str, struct in_addr *add) |
int | ff_getaddrinfo (const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res) |
void | ff_freeaddrinfo (struct addrinfo *res) |
int | ff_getnameinfo (const struct sockaddr *sa, int salen, char *host, int hostlen, char *serv, int servlen, int flags) |
const char * | ff_gai_strerror (int ecode) |
#define AI_NUMERICHOST 4 |
#define AI_PASSIVE 1 |
#define ff_neterrno | ( | ) | AVERROR(errno) |
Definition at line 39 of file network.h.
Referenced by handle_connection(), http_receive_data(), http_send_data(), http_server(), rtp_read(), tcp_open(), tcp_read(), tcp_write(), udp_read(), and udp_write().
#define FF_NETERROR | ( | err | ) | AVERROR(err) |
Definition at line 40 of file network.h.
Referenced by handle_connection(), http_receive_data(), http_send_data(), http_server(), rtp_read(), tcp_open(), tcp_read(), tcp_write(), udp_read(), and udp_write().
#define freeaddrinfo ff_freeaddrinfo |
Definition at line 149 of file network.h.
Referenced by ff_url_join(), resolve_host(), tcp_open(), udp_set_url(), and udp_socket_create().
#define gai_strerror ff_gai_strerror |
#define getaddrinfo ff_getaddrinfo |
Definition at line 148 of file network.h.
Referenced by ff_url_join(), resolve_host(), tcp_open(), and udp_resolve_host().
#define getnameinfo ff_getnameinfo |
#define NI_NUMERICSERV 8 |
void ff_freeaddrinfo | ( | struct addrinfo * | res | ) |
const char* ff_gai_strerror | ( | int | ecode | ) |
int ff_getaddrinfo | ( | const char * | node, | |
const char * | service, | |||
const struct addrinfo * | hints, | |||
struct addrinfo ** | res | |||
) |
int ff_getnameinfo | ( | const struct sockaddr * | sa, | |
int | salen, | |||
char * | host, | |||
int | hostlen, | |||
char * | serv, | |||
int | servlen, | |||
int | flags | |||
) |
int ff_inet_aton | ( | const char * | str, | |
struct in_addr * | add | |||
) |
Referenced by resolve_host(), and sdp_parse_line().
static void ff_network_close | ( | void | ) | [inline, static] |
Definition at line 59 of file network.h.
Referenced by rtsp_write_close(), sdp_read_close(), sdp_read_header(), url_close(), and url_open_protocol().
static int ff_network_init | ( | void | ) | [inline, static] |
int ff_socket_nonblock | ( | int | socket, | |
int | enable | |||
) |
Referenced by new_connection(), socket_open_listen(), tcp_open(), and udp_open().