21#ifndef VLC_DATAGRAM_SOCKET_H
22# define VLC_DATAGRAM_SOCKET_H
38 bool *restrict truncated);
53 bool *restrict truncated)
55 struct iovec iov = { .iov_base = buf, .iov_len = len };
57 return dgs->
ops->
readv(dgs, &iov, 1, truncated);
63 struct iovec iov = { .iov_base = (
void *)buf, .iov_len = len };
void(* close)(struct vlc_dtls *)
Definition vlc_dtls.h:34
int(* get_fd)(struct vlc_dtls *, short *events)
Definition vlc_dtls.h:36
ssize_t(* writev)(struct vlc_dtls *, const struct iovec *iov, unsigned len)
Definition vlc_dtls.h:39
ssize_t(* readv)(struct vlc_dtls *, struct iovec *iov, unsigned len, bool *restrict truncated)
Definition vlc_dtls.h:37
Datagram socket.
Definition vlc_dtls.h:29
const struct vlc_dtls_operations * ops
Definition vlc_dtls.h:30
struct vlc_dtls * vlc_datagram_CreateFD(int fd)
Definition datagram.c:100
static int vlc_dtls_GetPollFD(struct vlc_dtls *dgs, short *restrict ev)
Definition vlc_dtls.h:47
static ssize_t vlc_dtls_Send(struct vlc_dtls *dgs, const void *buf, size_t len)
Definition vlc_dtls.h:60
static void vlc_dtls_Close(struct vlc_dtls *dgs)
Definition vlc_dtls.h:42
struct vlc_dtls * vlc_dccp_CreateFD(int fd)
Definition datagram.c:151
static ssize_t vlc_dtls_Recv(struct vlc_dtls *dgs, void *buf, size_t len, bool *restrict truncated)
Definition vlc_dtls.h:52