picotm  0.8.0
Functions
socket.h File Reference

Transactional wrappers for interfaces of <sys/socket.h>. More...

#include <picotm/compiler.h>
#include <sys/socket.h>

Functions

PICOTM_NOTHROW int accept_tx (int socket, struct sockaddr *address, socklen_t *address_len)
 
PICOTM_NOTHROW int bind_tx (int socket, const struct sockaddr *address, socklen_t address_len)
 
PICOTM_NOTHROW int connect_tx (int socket, const struct sockaddr *address, socklen_t address_len)
 
PICOTM_NOTHROW int listen_tx (int socket, int backlog)
 
PICOTM_NOTHROW ssize_t send_tx (int socket, const void *buffer, size_t length, int flags)
 
PICOTM_NOTHROW int shutdown_tx (int socket, int how)
 
PICOTM_NOTHROW int socket_tx (int domain, int type, int protocol)
 
PICOTM_NOTHROW ssize_t recv_tx (int socket, void *buffer, size_t length, int flags)
 

Function Documentation

◆ accept_tx()

PICOTM_NOTHROW int accept_tx ( int  socket,
struct sockaddr *  address,
socklen_t *  address_len 
)

A transaction-safe implementation of accept().

◆ bind_tx()

PICOTM_NOTHROW int bind_tx ( int  socket,
const struct sockaddr *  address,
socklen_t  address_len 
)

A transaction-safe implementation of bind().

◆ connect_tx()

PICOTM_NOTHROW int connect_tx ( int  socket,
const struct sockaddr *  address,
socklen_t  address_len 
)

A transaction-safe implementation of connect().

◆ listen_tx()

PICOTM_NOTHROW int listen_tx ( int  socket,
int  backlog 
)

A transaction-safe implementation of listen().

◆ recv_tx()

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

A transaction-safe implementation of recv().

◆ send_tx()

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

A transaction-safe implementation of send().

◆ shutdown_tx()

PICOTM_NOTHROW int shutdown_tx ( int  socket,
int  how 
)

A transaction-safe implementation of shutdown().

◆ socket_tx()

PICOTM_NOTHROW int socket_tx ( int  domain,
int  type,
int  protocol 
)

A transaction-safe implementation of socket().