VLC 4.0.0-dev
datagram.c File Reference
Include dependency graph for datagram.c:

Data Structures

struct  vlc_dgram_sock
 

Macros

#define MSG_TRUNC   0
 

Functions

static void vlc_datagram_Close (struct vlc_dtls *dgs)
 
static int vlc_datagram_GetPollFD (struct vlc_dtls *dgs, short *restrict ev)
 
static ssize_t vlc_datagram_Recv (struct vlc_dtls *dgs, struct iovec *iov, unsigned iovlen, bool *truncated)
 
static ssize_t vlc_datagram_Send (struct vlc_dtls *dgs, const struct iovec *iov, unsigned iovlen)
 
struct vlc_dtlsvlc_datagram_CreateFD (int fd)
 
static ssize_t vlc_dccp_Recv (struct vlc_dtls *dgs, struct iovec *iov, unsigned iovlen, bool *truncated)
 
struct vlc_dtlsvlc_dccp_CreateFD (int fd)
 

Variables

static const struct vlc_dtls_operations vlc_datagram_ops
 
static const struct vlc_dtls_operations vlc_dccp_ops
 

Macro Definition Documentation

◆ MSG_TRUNC

#define MSG_TRUNC   0

Function Documentation

◆ vlc_datagram_Close()

static void vlc_datagram_Close ( struct vlc_dtls dgs)
static

◆ vlc_datagram_CreateFD()

struct vlc_dtls * vlc_datagram_CreateFD ( int  fd)

◆ vlc_datagram_GetPollFD()

static int vlc_datagram_GetPollFD ( struct vlc_dtls dgs,
short *restrict  ev 
)
static

References container_of, and vlc_dgram_sock::s.

◆ vlc_datagram_Recv()

static ssize_t vlc_datagram_Recv ( struct vlc_dtls dgs,
struct iovec *  iov,
unsigned  iovlen,
bool *  truncated 
)
static

References container_of, MSG_TRUNC, and recvmsg().

Referenced by vlc_dccp_Recv().

◆ vlc_datagram_Send()

static ssize_t vlc_datagram_Send ( struct vlc_dtls dgs,
const struct iovec *  iov,
unsigned  iovlen 
)
static

References container_of, and vlc_sendmsg().

◆ vlc_dccp_CreateFD()

struct vlc_dtls * vlc_dccp_CreateFD ( int  fd)

◆ vlc_dccp_Recv()

static ssize_t vlc_dccp_Recv ( struct vlc_dtls dgs,
struct iovec *  iov,
unsigned  iovlen,
bool *  truncated 
)
static

Variable Documentation

◆ vlc_datagram_ops

const struct vlc_dtls_operations vlc_datagram_ops
static
Initial value:
= {
}
static void vlc_datagram_Close(struct vlc_dtls *dgs)
Definition: datagram.c:45
static ssize_t vlc_datagram_Send(struct vlc_dtls *dgs, const struct iovec *iov, unsigned iovlen)
Definition: datagram.c:80
static ssize_t vlc_datagram_Recv(struct vlc_dtls *dgs, struct iovec *iov, unsigned iovlen, bool *truncated)
Definition: datagram.c:64
static int vlc_datagram_GetPollFD(struct vlc_dtls *dgs, short *restrict ev)
Definition: datagram.c:58

Referenced by vlc_datagram_CreateFD().

◆ vlc_dccp_ops

const struct vlc_dtls_operations vlc_dccp_ops
static
Initial value:
= {
}
static ssize_t vlc_dccp_Recv(struct vlc_dtls *dgs, struct iovec *iov, unsigned iovlen, bool *truncated)
Definition: datagram.c:111

Referenced by vlc_dccp_CreateFD().