libavformat/network.h File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.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
#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)
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)
static int ff_is_multicast_address (struct sockaddr *addr)


Define Documentation

#define AI_CANONNAME   2

Definition at line 113 of file network.h.

Referenced by ff_getaddrinfo().

#define AI_NUMERICHOST   4

Definition at line 117 of file network.h.

Referenced by ff_getaddrinfo(), ff_url_join(), and get_sockaddr().

#define AI_PASSIVE   1

Definition at line 109 of file network.h.

Referenced by ff_getaddrinfo(), and udp_socket_create().

#define EAI_FAIL   4

Definition at line 97 of file network.h.

Referenced by ff_gai_strerror(), and ff_getaddrinfo().

#define EAI_FAMILY   5

Definition at line 101 of file network.h.

Referenced by ff_gai_strerror(), and ff_getnameinfo().

#define EAI_NONAME   8

Definition at line 105 of file network.h.

Referenced by ff_gai_strerror(), and ff_getnameinfo().

 
#define ff_neterrno (  )     AVERROR(errno)

#define FF_NETERROR ( err   )     AVERROR(err)

#define freeaddrinfo   ff_freeaddrinfo

#define gai_strerror   ff_gai_strerror

Definition at line 151 of file network.h.

Referenced by tcp_open(), and udp_resolve_host().

#define getaddrinfo   ff_getaddrinfo

#define getnameinfo   ff_getnameinfo

#define IN6_IS_ADDR_MULTICAST (  )     (((uint8_t *) (a))[0] == 0xff)

Definition at line 162 of file network.h.

Referenced by ff_is_multicast_address().

#define IN_MULTICAST (  )     ((((uint32_t)(a)) & 0xf0000000) == 0xe0000000)

Definition at line 159 of file network.h.

Referenced by ff_is_multicast_address().

#define INET6_ADDRSTRLEN   INET_ADDRSTRLEN

Definition at line 155 of file network.h.

#define NI_DGRAM   16

Definition at line 137 of file network.h.

Referenced by ff_getnameinfo().

#define NI_NAMERQD   4

Definition at line 129 of file network.h.

Referenced by ff_getnameinfo().

#define NI_NOFQDN   1

Definition at line 121 of file network.h.

#define NI_NUMERICHOST   2

#define NI_NUMERICSERV   8

Definition at line 133 of file network.h.

Referenced by ff_getnameinfo(), and udp_port().


Function Documentation

void ff_freeaddrinfo ( struct addrinfo res  ) 

Definition at line 142 of file os_support.c.

const char* ff_gai_strerror ( int  ecode  ) 

Definition at line 214 of file os_support.c.

int ff_getaddrinfo ( const char *  node,
const char *  service,
const struct addrinfo hints,
struct addrinfo **  res 
)

Definition at line 70 of file os_support.c.

int ff_getnameinfo ( const struct sockaddr *  sa,
int  salen,
char *  host,
int  hostlen,
char *  serv,
int  servlen,
int  flags 
)

Definition at line 160 of file os_support.c.

int ff_inet_aton ( const char *  str,
struct in_addr *  add 
)

Definition at line 63 of file os_support.c.

Referenced by ff_getaddrinfo(), and resolve_host().

static int ff_is_multicast_address ( struct sockaddr *  addr  )  [inline, static]

Definition at line 165 of file network.h.

Referenced by resolve_destination(), and udp_set_remote_url().

static void ff_network_close ( void   )  [inline, static]

static int ff_network_init ( void   )  [inline, static]

int ff_socket_nonblock ( int  socket,
int  enable 
)

Definition at line 226 of file os_support.c.

Referenced by new_connection(), socket_open_listen(), tcp_open(), and udp_open().


Generated on Wed Jan 19 23:49:50 2011 for FFmpeg by  doxygen 1.5.6