VLC 4.0.0-dev
|
Functions | |
int | rootwrap_bind (int family, int socktype, int protocol, const struct sockaddr *addr, size_t alen) |
Tries to obtain a bound TCP socket from the root process. More... | |
int | net_Socket (vlc_object_t *p_this, int family, int socktype, int protocol) |
int() | net_Connect (vlc_object_t *obj, const char *host, int serv, int type, int proto) |
int * | net_Listen (vlc_object_t *p_this, const char *psz_host, unsigned i_port, int type, int protocol) |
void | net_ListenClose (int *fds) |
int | net_Accept (vlc_object_t *obj, int *fds) |
Accepts an new connection on a set of listening sockets. More... | |
ssize_t() | net_Read (vlc_object_t *restrict obj, int fd, void *restrict buf, size_t len) |
ssize_t() | net_Write (vlc_object_t *obj, int fd, const void *buf, size_t len) |
Writes data to a socket. More... | |
ssize_t() net_Read | ( | vlc_object_t *restrict | obj, |
int | fd, | ||
void *restrict | buf, | ||
size_t | len | ||
) |
References pollfd::fd, msg_Err, msg_Warn, vlc_killed(), vlc_recv_i11e(), vlc_strerror_c(), and vlc_testcancel().
int rootwrap_bind | ( | int | family, |
int | socktype, | ||
int | protocol, | ||
const struct sockaddr * | addr, | ||
size_t | alen | ||
) |
Tries to obtain a bound TCP socket from the root process.
References getenv(), MSG_NOSIGNAL, and recv_fd().
Referenced by net_Listen().