QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vlc_network.h File Reference
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

Go to the source code of this file.

Classes

struct  virtual_socket_t
 

Macros

#define net_errno   errno
 
#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, e, f)   net_Read(VLC_OBJECT(a),b,c,d,e,f)
 
#define net_Write(a, b, c, d, e)   net_Write(VLC_OBJECT(a),b,c,d,e)
 
#define net_Gets(a, b, c)   net_Gets(VLC_OBJECT(a),b,c)
 
#define net_Printf(o, fd, vs,...)   net_Printf(VLC_OBJECT(o),fd,vs, __VA_ARGS__)
 
#define net_vaPrintf(a, b, c, d, e)   net_vaPrintf(VLC_OBJECT(a),b,c,d,e)
 
#define net_Close(fd)   (void)close (fd)
 
#define EAI_BADFLAGS   -1
 
#define EAI_NONAME   -2
 
#define EAI_AGAIN   -3
 
#define EAI_FAIL   -4
 
#define EAI_NODATA   -5
 
#define EAI_FAMILY   -6
 
#define EAI_SOCKTYPE   -7
 
#define EAI_SERVICE   -8
 
#define EAI_ADDRFAMILY   -9
 
#define EAI_MEMORY   -10
 
#define EAI_OVERFLOW   -11
 
#define EAI_SYSTEM   -12
 
#define NI_MAXHOST   1025
 
#define NI_MAXSERV   32
 
#define NI_MAXNUMERICHOST   64
 
#define AI_NUMERICSERV   0
 
#define AI_IDN   0 /* GNU/libc extension */
 

Functions

VLC_API int vlc_socket (int, int, int, bool nonblock) VLC_USED
 
VLC_API int vlc_accept (int, struct sockaddr *, socklen_t *, bool) VLC_USED
 
int net_Socket (vlc_object_t *obj, int family, int socktype, int proto)
 
VLC_API int net_Connect (vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol)
 
VLC_API int * net_Listen (vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol)
 
VLC_API int net_AcceptSingle (vlc_object_t *obj, int lfd)
 
VLC_API int net_Accept (vlc_object_t *, int *)
 
VLC_API int net_ConnectDgram (vlc_object_t *p_this, const char *psz_host, int i_port, int hlim, int proto)
 
VLC_API int net_OpenDgram (vlc_object_t *p_this, const char *psz_bind, int i_bind, const char *psz_server, int i_server, int proto)
 
VLC_API void net_ListenClose (int *fd)
 
int net_Subscribe (vlc_object_t *obj, int fd, const struct sockaddr *addr, socklen_t addrlen)
 
VLC_API int net_SetCSCov (int fd, int sendcov, int recvcov)
 
VLC_API ssize_t net_Read (vlc_object_t *p_this, int fd, const v_socket_t *, void *p_data, size_t i_data, bool b_retry)
 
VLC_API ssize_t net_Write (vlc_object_t *p_this, int fd, const v_socket_t *, const void *p_data, size_t i_data)
 
VLC_API char * net_Gets (vlc_object_t *p_this, int fd, const v_socket_t *)
 
VLC_API ssize_t net_Printf (vlc_object_t *p_this, int fd, const v_socket_t *, const char *psz_fmt,...) VLC_FORMAT(4
 
VLC_API ssize_t net_vaPrintf (vlc_object_t *p_this, int fd, const v_socket_t *, const char *psz_fmt, va_list args)
 
VLC_API int vlc_getnameinfo (const struct sockaddr *, int, char *, int, int *, int)
 
VLC_API int vlc_getaddrinfo (const char *, unsigned, const struct addrinfo *, struct addrinfo **)
 
VLC_API char * vlc_getProxyUrl (const char *)
 

Detailed Description

This file defines interface to communicate with network plug-ins

Macro Definition Documentation

#define net_ListenTCP (   a,
  b,
 
)
Value:
net_Listen(VLC_OBJECT(a), b, c, \
SOCK_STREAM, IPPROTO_TCP)