VLC 4.0.0-dev
Loading...
Searching...
No Matches
io.c File Reference
Include dependency graph for io.c:

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.
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.
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.

Function Documentation

◆ net_Read()

ssize_t net_Read ( vlc_object_t *restrict obj,
int fd,
void *restrict buf,
size_t len )

◆ rootwrap_bind()

int rootwrap_bind ( int family,
int socktype,
int protocol,
const struct sockaddr * addr,
size_t alen )
extern

Tries to obtain a bound TCP socket from the root process.

References getenv(), MSG_NOSIGNAL, and recv_fd().

Referenced by net_Listen().