
Defines | |
| #define | SOL_IP IPPROTO_IP |
| #define | SOL_IPV6 IPPROTO_IPV6 |
| #define | IPPROTO_IPV6 41 |
| #define | SOL_DCCP IPPROTO_DCCP |
| #define | IPPROTO_DCCP 33 |
| #define | SOL_UDPLITE IPPROTO_UDPLITE |
Functions | |
| int | net_Socket (vlc_object_t *p_this, int i_family, int i_socktype, int i_protocol) |
| static int | net_SetupDgramSocket (vlc_object_t *p_obj, int fd, const struct addrinfo *ptr) |
| static int | net_ListenSingle (vlc_object_t *obj, const char *host, int port, int protocol) |
| static int | net_SetMcastHopLimit (vlc_object_t *p_this, int fd, int family, int hlim) |
| static int | net_SetMcastOut (vlc_object_t *p_this, int fd, int family, const char *iface) |
| static unsigned | var_GetIfIndex (vlc_object_t *obj) |
| static int | net_SourceSubscribe (vlc_object_t *obj, int fd, const struct sockaddr *src, socklen_t srclen, const struct sockaddr *grp, socklen_t grplen) |
| IP-agnostic multicast join, with fallback to old APIs, and fallback from SSM to ASM. | |
| int | net_Subscribe (vlc_object_t *obj, int fd, const struct sockaddr *grp, socklen_t grplen) |
| static int | net_SetDSCP (int fd, uint8_t dscp) |
| int | net_ConnectDgram (vlc_object_t *p_this, const char *psz_host, int i_port, int i_hlim, int proto) |
| int | net_OpenDgram (vlc_object_t *obj, const char *psz_bind, int i_bind, const char *psz_server, int i_server, int protocol) |
| int | net_SetCSCov (int fd, int sendcov, int recvcov) |
| net_SetCSCov: Sets the send and receive checksum coverage of a socket: | |
| #define IPPROTO_DCCP 33 |
| #define IPPROTO_IPV6 41 |
Referenced by net_Socket().
| #define SOL_DCCP IPPROTO_DCCP |
Referenced by net_SetCSCov(), and net_Socket().
| #define SOL_IP IPPROTO_IP |
Referenced by net_SetMcastOut(), net_SourceSubscribe(), and net_Subscribe().
| #define SOL_IPV6 IPPROTO_IPV6 |
Referenced by net_ListenSingle(), net_SetMcastOut(), and net_Subscribe().
| #define SOL_UDPLITE IPPROTO_UDPLITE |
Referenced by net_SetCSCov().
| int net_ConnectDgram | ( | vlc_object_t * | p_this, | |
| const char * | psz_host, | |||
| int | i_port, | |||
| int | i_hlim, | |||
| int | proto | |||
| ) |
| static int net_ListenSingle | ( | vlc_object_t * | obj, | |
| const char * | host, | |||
| int | port, | |||
| int | protocol | |||
| ) | [static] |
References freeaddrinfo(), gai_strerror(), msg_Dbg, msg_Err, net_Close, net_SetupDgramSocket(), net_SockAddrIsMulticast(), net_Socket(), net_Subscribe(), SOL_IPV6, and vlc_getaddrinfo().
Referenced by net_OpenDgram().
| int net_OpenDgram | ( | vlc_object_t * | obj, | |
| const char * | psz_bind, | |||
| int | i_bind, | |||
| const char * | psz_server, | |||
| int | i_server, | |||
| int | protocol | |||
| ) |
| int net_SetCSCov | ( | int | fd, | |
| int | sendcov, | |||
| int | recvcov | |||
| ) |
net_SetCSCov: Sets the send and receive checksum coverage of a socket:
| fd | socket | |
| sendcov | payload coverage of sent packets (bytes), -1 for full | |
| recvcov | minimum payload coverage of received packets, -1 for full |
References SOL_DCCP, SOL_UDPLITE, VLC_EGENERIC, and VLC_UNUSED.
| static int net_SetDSCP | ( | int | fd, | |
| uint8_t | dscp | |||
| ) | [static] |
References net_ConnectDgram.
Referenced by net_ConnectDgram().
| static int net_SetMcastHopLimit | ( | vlc_object_t * | p_this, | |
| int | fd, | |||
| int | family, | |||
| int | hlim | |||
| ) | [static] |
References msg_Dbg, msg_Err, and msg_Warn.
Referenced by net_ConnectDgram().
| static int net_SetMcastOut | ( | vlc_object_t * | p_this, | |
| int | fd, | |||
| int | family, | |||
| const char * | iface | |||
| ) | [static] |
References if_nametoindex, msg_Err, SOL_IP, and SOL_IPV6.
Referenced by net_ConnectDgram().
| static int net_SetupDgramSocket | ( | vlc_object_t * | p_obj, | |
| int | fd, | |||
| const struct addrinfo * | ptr | |||
| ) | [static] |
References msg_Err, net_Close, and net_SockAddrIsMulticast().
Referenced by net_ListenSingle(), and net_OpenDgram().
| int net_Socket | ( | vlc_object_t * | p_this, | |
| int | i_family, | |||
| int | i_socktype, | |||
| int | i_protocol | |||
| ) |
| static int net_SourceSubscribe | ( | vlc_object_t * | obj, | |
| int | fd, | |||
| const struct sockaddr * | src, | |||
| socklen_t | srclen, | |||
| const struct sockaddr * | grp, | |||
| socklen_t | grplen | |||
| ) | [static] |
IP-agnostic multicast join, with fallback to old APIs, and fallback from SSM to ASM.
References msg_Err, msg_Warn, net_Subscribe(), SOL_IP, and var_GetIfIndex().
Referenced by net_OpenDgram().
| int net_Subscribe | ( | vlc_object_t * | obj, | |
| int | fd, | |||
| const struct sockaddr * | grp, | |||
| socklen_t | grplen | |||
| ) |
References msg_Err, SOL_IP, SOL_IPV6, and var_GetIfIndex().
Referenced by net_Listen(), net_ListenSingle(), and net_SourceSubscribe().
| static unsigned var_GetIfIndex | ( | vlc_object_t * | obj | ) | [static] |
References if_nametoindex, msg_Err, and var_InheritString.
Referenced by net_SourceSubscribe(), and net_Subscribe().
1.7.1