libavformat/network.h File Reference
#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>

Go to the source code of this file.

Data Structures

struct  sockaddr_storage
struct  addrinfo

Defines

#define ff_neterrno()   AVERROR(errno)
#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)
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_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)
int ff_is_multicast_address (struct sockaddr *addr)

Variables

int ff_network_inited_globally

Define Documentation

Definition at line 153 of file network.h.

Referenced by tcp_open(), and udp_resolve_host().

Definition at line 152 of file network.h.

Referenced by udp_port().


Function Documentation

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().

int ff_is_multicast_address ( struct sockaddr *  addr)

Definition at line 172 of file network.c.

Referenced by ff_udp_set_remote_url().

int ff_network_wait_fd ( int  fd,
int  write 
)

Definition at line 142 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 99 of file network.c.

Referenced by avformat_network_deinit(), tls_close(), and tls_open().

Definition at line 67 of file network.c.

Referenced by avformat_network_init(), and tls_open().


Variable Documentation

Definition at line 122 of file network.c.

Referenced by avformat_network_init().