VLC
4.0.0-dev
|
Modules | |
Internet sockets | |
Transport layer sockets | |
Network stream abstraction. | |
HTTP | |
Session Description Protocol | |
Files | |
file | vlc_network.h |
Macros | |
#define | NI_MAXNUMERICHOST 64 |
#define | AI_NUMERICSERV 0 |
#define | AI_IDN 0 /* GNU/libc extension */ |
Functions | |
VLC_EXPORT int | vlc_getnameinfo (const struct sockaddr *, int, char *, int, int *, int) |
VLC_EXPORT int | vlc_getaddrinfo (const char *, unsigned, const struct addrinfo *, struct addrinfo **) |
Resolves a host name to a list of socket addresses (like getaddrinfo()). More... | |
VLC_EXPORT 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) |
VLC_EXPORT 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().
VLC_EXPORT 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().
VLC_EXPORT int vlc_getaddrinfo_i11e | ( | const char * | , |
unsigned | , | ||
const struct addrinfo * | , | ||
struct addrinfo ** | |||
) |
References name, vlc_getaddrinfo_notify(), 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().
VLC_EXPORT int vlc_getnameinfo | ( | const struct sockaddr * | , |
int | , | ||
char * | , | ||
int | , | ||
int * | , | ||
int | |||
) |
References getnameinfo().
Referenced by net_GetPeerAddress(), net_GetSockAddress(), and sout_AnnounceRegisterSDP().
VLC_EXPORT 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().