VLC  4.0.0-dev
Macros | Functions
Include dependency graph for vlc_network.h:

Go to the source code of this file.


#define net_errno   errno
#define net_Close(fd)   ((void)vlc_close(fd))
#define net_Connect(a, b, c, d, e)   net_Connect(VLC_OBJECT(a), b, c, d, e)
#define net_ListenTCP(a, b, c)
#define net_ConnectTCP(a, b, c)   net_ConnectTCP(VLC_OBJECT(a), b, c)
#define net_Accept(a, b)   net_Accept(VLC_OBJECT(a), b)
#define net_ConnectDgram(a, b, c, d, e)   net_ConnectDgram(VLC_OBJECT(a), b, c, d, e)
#define net_OpenDgram(a, b, c, d, e, g)   net_OpenDgram(VLC_OBJECT(a), b, c, d, e, g)
#define net_Read(a, b, c, d)   net_Read(VLC_OBJECT(a),b,c,d)
#define net_Write(a, b, c, d)   net_Write(VLC_OBJECT(a),b,c,d)
#define AI_NUMERICSERV   0
#define AI_IDN   0 /* GNU/libc extension */


VLC_EXPORT int vlc_socket (int pf, int type, int proto, bool nonblock)
 Creates a socket file descriptor. More...
VLC_EXPORT int vlc_socketpair (int pf, int type, int proto, int fds[2], bool nonblock)
 Creates a pair of socket file descriptors. More...
VLC_EXPORT int vlc_accept (int lfd, struct sockaddr *addr, socklen_t *alen, bool nonblock)
 Accepts an inbound connection request on a listening socket. More...
VLC_EXPORT ssize_t vlc_send (int fd, const void *buf, size_t buflen, int flags)
 Sends data. More...
VLC_EXPORT ssize_t vlc_sendto (int fd, const void *buf, size_t buflen, int flags, const struct sockaddr *dst, socklen_t dstlen)
 Sends data to a peer. More...
VLC_EXPORT ssize_t vlc_sendmsg (int fd, const struct msghdr *msg, int flags)
 Sends a socket message. More...
int net_Socket (vlc_object_t *obj, int family, int socktype, int proto)
VLC_EXPORT int net_Connect (vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol)
VLC_EXPORT int * net_Listen (vlc_object_t *p_this, const char *psz_host, unsigned i_port, int socktype, int protocol)
VLC_EXPORT int net_ConnectTCP (vlc_object_t *obj, const char *host, int port)
VLC_EXPORT int net_Accept (vlc_object_t *obj, int *fds)
 Accepts an new connection on a set of listening sockets. More...
VLC_EXPORT int net_ConnectDgram (vlc_object_t *p_this, const char *psz_host, unsigned i_port, int hlim, int proto)
static int net_ConnectUDP (vlc_object_t *obj, const char *host, unsigned port, int hlim)
VLC_EXPORT int net_OpenDgram (vlc_object_t *p_this, const char *psz_bind, unsigned i_bind, const char *psz_server, unsigned i_server, int proto)
static int net_ListenUDP1 (vlc_object_t *obj, const char *host, unsigned port)
VLC_EXPORT void net_ListenClose (int *fd)
VLC_EXPORT int net_SetCSCov (int fd, int sendcov, int recvcov)
 net_SetCSCov: Sets the send and receive checksum coverage of a socket: More...
VLC_EXPORT ssize_t net_Read (vlc_object_t *p_this, int fd, void *p_data, size_t i_data)
 Reads data from a socket. More...
VLC_EXPORT ssize_t net_Write (vlc_object_t *p_this, int fd, const void *p_data, size_t i_data)
 Writes data to a socket. More...
VLC_EXPORT int vlc_close (int)
 Closes a file descriptor. More...
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...

Detailed Description

Definitions for sockets and low-level networking