VLC 4.0.0-dev
|
#include <vlc_tls.h>
Data Fields | |
int(* | get_fd )(struct vlc_tls *, short *restrict events) |
Callback for events polling. More... | |
ssize_t(* | readv )(struct vlc_tls *, struct iovec *iov, unsigned len) |
Callback for receiving data. More... | |
ssize_t(* | writev )(struct vlc_tls *, const struct iovec *iov, unsigned len) |
Callback for sending data. More... | |
int(* | shutdown )(struct vlc_tls *, bool duplex) |
Callback for shutting down. More... | |
void(* | close )(struct vlc_tls *) |
Callback for closing. More... | |
void(* vlc_tls_operations::close) (struct vlc_tls *) |
Callback for closing.
This callback terminates the stream and releases any associated resources. However, it does not destroy the underlying stream if there is one. See also vlc_tls_SessionDelete().
Referenced by vlc_tls_SessionDelete().
int(* vlc_tls_operations::get_fd) (struct vlc_tls *, short *restrict events) |
ssize_t(* vlc_tls_operations::readv) (struct vlc_tls *, struct iovec *iov, unsigned len) |
Callback for receiving data.
This callback receives/reads data into an I/O vector in non-blocking mode.
iov | I/O vector to read data into |
len | number of entries of the I/O vector |
If no data is available without blocking, the function returns -1 and sets errno
to EAGAIN
.
Referenced by httpd_NetRecv(), vlc_https_recv(), vlc_tls_ProxyRead(), and vlc_tls_Read().
int(* vlc_tls_operations::shutdown) (struct vlc_tls *, bool duplex) |
Callback for shutting down.
This callback marks the end of the output (send/write) half of the stream. If the duplex flag is set, it also marks the end of the input (receive/read) half. See also vlc_tls_Shutdown().
Referenced by vlc_tls_Shutdown().
ssize_t(* vlc_tls_operations::writev) (struct vlc_tls *, const struct iovec *iov, unsigned len) |
Callback for sending data.
This callback sends/writes data from an I/O vector in non-blocking mode.
iov | I/O vector to write data from |
len | number of entries of the I/O vector |
If no data can be sent without blocking, the function returns -1 and sets errno
to EAGAIN
.
Referenced by httpd_NetSend(), vlc_https_send(), vlc_tls_ProxyWrite(), and vlc_tls_Write().