VLC 4.0.0-dev
|
Modules | |
Internet sockets | |
Transport layer sockets | |
Network stream abstraction. | |
HTTP | |
Hyper-Text Transfer Protocol. | |
RTP | |
Real-time Transport Protocol. | |
Session Description Protocol | |
Files | |
file | vlc_network.h |
Definitions for sockets and low-level networking. | |
Macros | |
#define | NI_MAXNUMERICHOST 64 |
#define | AI_NUMERICSERV 0 |
#define | AI_IDN 0 /* GNU/libc extension */ |
Functions | |
int | vlc_getnameinfo (const struct sockaddr *, int, char *, int, int *, int) |
int | vlc_getaddrinfo (const char *, unsigned, const struct addrinfo *, struct addrinfo **) |
Resolves a host name to a list of socket addresses (like getaddrinfo()). More... | |
int | vlc_getaddrinfo_i11e (const char *, unsigned, const struct addrinfo *, struct addrinfo **) |
static bool | net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len) |
static int | net_GetSockAddress (int fd, char *address, int *port) |
static int | net_GetPeerAddress (int fd, char *address, int *port) |
char * | vlc_getProxyUrl (const char *) |
Determines the network proxy server to use (if any). More... | |
#define AI_IDN 0 /* GNU/libc extension */ |
#define AI_NUMERICSERV 0 |
#define NI_MAXNUMERICHOST 64 |
|
inlinestatic |
References NI_MAXNUMERICHOST, VLC_EGENERIC, and vlc_getnameinfo().
Referenced by httpd_ClientIP().
|
inlinestatic |
References NI_MAXNUMERICHOST, VLC_EGENERIC, and vlc_getnameinfo().
Referenced by httpd_ServerIP().
|
inlinestatic |
Referenced by net_ListenSingle(), net_OpenDgram(), and net_SetupDgramSocket().
int vlc_getaddrinfo | ( | const char * | node, |
unsigned | port, | ||
const struct addrinfo * | hints, | ||
struct addrinfo ** | res | ||
) |
Resolves a host name to a list of socket addresses (like getaddrinfo()).
node | host name to resolve (encoded as UTF-8), or NULL |
i_port | port number for the socket addresses |
p_hints | parameters (see getaddrinfo() manual page) |
res | pointer set to the resulting chained list. |
References getaddrinfo().
Referenced by net_ConnectDgram(), net_Listen(), net_ListenSingle(), net_OpenDgram(), and sout_AnnounceRegisterSDP().
int vlc_getaddrinfo_i11e | ( | const char * | name, |
unsigned | port, | ||
const struct addrinfo * | hints, | ||
struct addrinfo ** | res | ||
) |
References vlc_gai_req::done, vlc_gai_req::error, vlc_gai_req::hints, name, vlc_gai_req::name, vlc_gai_req::service, vlc_cancel(), vlc_clone(), vlc_gai_thread(), vlc_getaddrinfo_notify(), vlc_join(), vlc_sem_init(), vlc_sem_wait(), and vlc_sem_wait_i11e().
Referenced by net_Connect(), SocksHandshakeTCP(), vlc_h1_request(), vlc_tls_SocketOpenTCP(), and vlc_tls_SocketOpenTLS().
int vlc_getnameinfo | ( | const struct sockaddr * | sa, |
int | salen, | ||
char * | host, | ||
int | hostlen, | ||
int * | portnum, | ||
int | flags | ||
) |
References getnameinfo().
Referenced by net_GetPeerAddress(), net_GetSockAddress(), and sout_AnnounceRegisterSDP().
char * vlc_getProxyUrl | ( | const char * | url | ) |
Determines the network proxy server to use (if any).
This function fetch the Android proxy using the System.getProperty() method with "http.proxyHost" and "http.proxyPort" keys. This is working only for Android 4.0 and after.
url | absolute URL for which to get the proxy server (unused) |
url | absolute URL for which to get the proxy server |
References asprintf(), config_GetPsz(), fields, get_env(), getenv(), vlc_url_t::psz_password, release_env(), strdup(), var, vlc_close(), vlc_pipe(), vlc_spawnp(), VLC_UNUSED, vlc_uri_compose(), vlc_UrlClean(), vlc_UrlParse(), and vlc_waitpid().
Referenced by vlc_http_proxy_find().