Libav
|
#include <fcntl.h>
#include "network.h"
#include "url.h"
#include "libavcodec/internal.h"
#include "libavutil/mem.h"
Go to the source code of this file.
Functions | |
void | ff_tls_init (void) |
void | ff_tls_deinit (void) |
int | ff_network_init (void) |
int | ff_network_wait_fd (int fd, int write) |
void | ff_network_close (void) |
int | ff_is_multicast_address (struct sockaddr *addr) |
static int | ff_poll_interrupt (struct pollfd *p, nfds_t nfds, int timeout, AVIOInterruptCB *cb) |
int | ff_socket (int af, int type, int proto) |
int | ff_listen_bind (int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h) |
Bind to a file descriptor and poll for a connection. | |
int | ff_listen_connect (int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h, int will_try_next) |
Connect to a file descriptor and poll for result. | |
static int | match_host_pattern (const char *pattern, const char *hostname) |
int | ff_http_match_no_proxy (const char *no_proxy, const char *hostname) |
Variables | |
int | ff_network_inited_globally |
Definition at line 66 of file network.c.
Referenced by avformat_network_init(), and tls_open().
Definition at line 98 of file network.c.
Referenced by avformat_network_deinit(), tls_close(), and tls_open().
int ff_network_init | ( | void | ) |
Definition at line 123 of file network.c.
Referenced by avformat_network_init(), sap_read_header(), sap_write_header(), and url_alloc_for_protocol().
int ff_network_wait_fd | ( | int | fd, |
int | write | ||
) |
Definition at line 141 of file network.c.
Referenced by rtp_write(), tcp_read(), tcp_write(), udp_read(), udp_write(), unix_read(), and unix_write().
Definition at line 150 of file network.c.
Referenced by avformat_network_deinit(), ffurl_close(), rtsp_read_close(), rtsp_write_close(), sap_read_close(), sap_write_close(), and url_alloc_for_protocol().
int ff_is_multicast_address | ( | struct sockaddr * | addr | ) |
Definition at line 179 of file network.c.
Referenced by ff_udp_set_remote_url().
|
static |
Definition at line 193 of file network.c.
Referenced by ff_listen_bind(), and ff_listen_connect().
int ff_socket | ( | int | af, |
int | type, | ||
int | proto | ||
) |
Definition at line 214 of file network.c.
Referenced by sctp_open(), tcp_open(), udp_socket_create(), and unix_open().
int ff_listen_bind | ( | int | fd, |
const struct sockaddr * | addr, | ||
socklen_t | addrlen, | ||
int | timeout, | ||
URLContext * | h | ||
) |
Bind to a file descriptor and poll for a connection.
fd | First argument of bind(). |
addr | Second argument of bind(). |
addrlen | Third argument of bind(). |
timeout | Polling timeout in milliseconds. |
h | URLContext providing interrupt check callback and logging context. |
Definition at line 232 of file network.c.
Referenced by tcp_open(), and unix_open().
int ff_listen_connect | ( | int | fd, |
const struct sockaddr * | addr, | ||
socklen_t | addrlen, | ||
int | timeout, | ||
URLContext * | h, | ||
int | will_try_next | ||
) |
Connect to a file descriptor and poll for result.
fd | First argument of connect(), will be set as non-blocking. |
addr | Second argument of connect(). |
addrlen | Third argument of connect(). |
timeout | Polling timeout in milliseconds. |
h | URLContext providing interrupt check callback and logging context. |
will_try_next | Whether the caller will try to connect to another address for the same host name, affecting the form of logged errors. |
Definition at line 261 of file network.c.
Referenced by tcp_open(), and unix_open().
|
static |
Definition at line 305 of file network.c.
Referenced by ff_http_match_no_proxy().
int ff_http_match_no_proxy | ( | const char * | no_proxy, |
const char * | hostname | ||
) |
Definition at line 329 of file network.c.
Referenced by http_open_cnx(), test(), and tls_open().
int ff_network_inited_globally |
Definition at line 121 of file network.c.
Referenced by avformat_network_init().