µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
posix/sys/socket.h File Reference
#include <unistd.h>
#include <sys/types.h>

Go to the source code of this file.

Classes

struct  sockaddr
 

Typedefs

typedef unsigned int sa_family_t
 
typedef uint32_t socklen_t
 

Functions

int accept (int socket, struct sockaddr *address, socklen_t *address_len)
 
int bind (int socket, const struct sockaddr *address, socklen_t address_len)
 
int connect (int socket, const struct sockaddr *address, socklen_t address_len)
 
int getpeername (int socket, struct sockaddr *address, socklen_t *address_len)
 
int getsockname (int socket, struct sockaddr *address, socklen_t *address_len)
 
int getsockopt (int socket, int level, int option_name, void *option_value, socklen_t *option_len)
 
int listen (int socket, int backlog)
 
ssize_t recv (int socket, void *buffer, size_t length, int flags)
 
ssize_t recvfrom (int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len)
 
ssize_t recvmsg (int socket, struct msghdr *message, int flags)
 
ssize_t send (int socket, const void *buffer, size_t length, int flags)
 
ssize_t sendmsg (int socket, const struct msghdr *message, int flags)
 
ssize_t sendto (int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len)
 
int setsockopt (int socket, int level, int option_name, const void *option_value, socklen_t option_len)
 
int shutdown (int socket, int how)
 
int sockatmark (int socket)
 
int socket (int domain, int type, int protocol)
 
int socketpair (int domain, int type, int protocol, int socket_vector[2])
 

Typedef Documentation

◆ sa_family_t

typedef unsigned int sa_family_t

Definition at line 58 of file posix/sys/socket.h.

◆ socklen_t

typedef uint32_t socklen_t

Definition at line 55 of file posix/sys/socket.h.

Function Documentation

◆ accept()

int accept ( int  socket,
struct sockaddr address,
socklen_t address_len 
)

◆ bind()

int bind ( int  socket,
const struct sockaddr address,
socklen_t  address_len 
)

◆ connect()

int connect ( int  socket,
const struct sockaddr address,
socklen_t  address_len 
)

◆ getpeername()

int getpeername ( int  socket,
struct sockaddr address,
socklen_t address_len 
)

◆ getsockname()

int getsockname ( int  socket,
struct sockaddr address,
socklen_t address_len 
)

◆ getsockopt()

int getsockopt ( int  socket,
int  level,
int  option_name,
void *  option_value,
socklen_t option_len 
)

◆ listen()

int listen ( int  socket,
int  backlog 
)

◆ recv()

ssize_t recv ( int  socket,
void *  buffer,
size_t  length,
int  flags 
)

◆ recvfrom()

ssize_t recvfrom ( int  socket,
void *  buffer,
size_t  length,
int  flags,
struct sockaddr address,
socklen_t address_len 
)

◆ recvmsg()

ssize_t recvmsg ( int  socket,
struct msghdr *  message,
int  flags 
)

◆ send()

ssize_t send ( int  socket,
const void *  buffer,
size_t  length,
int  flags 
)

◆ sendmsg()

ssize_t sendmsg ( int  socket,
const struct msghdr *  message,
int  flags 
)

◆ sendto()

ssize_t sendto ( int  socket,
const void *  message,
size_t  length,
int  flags,
const struct sockaddr dest_addr,
socklen_t  dest_len 
)

◆ setsockopt()

int setsockopt ( int  socket,
int  level,
int  option_name,
const void *  option_value,
socklen_t  option_len 
)

◆ shutdown()

int shutdown ( int  socket,
int  how 
)

◆ sockatmark()

int sockatmark ( int  socket)

◆ socket()

int socket ( int  domain,
int  type,
int  protocol 
)

◆ socketpair()

int socketpair ( int  domain,
int  type,
int  protocol,
int  socket_vector[2] 
)