picotm  0.4.0
Functions
socket-tm.h File Reference

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

#include <picotm/compiler.h>
#include <sys/socket.h>
Include dependency graph for socket-tm.h:

Functions

PICOTM_NOTHROW int accept_tm (int socket, struct sockaddr *address, socklen_t *address_len)
 
PICOTM_NOTHROW int bind_tm (int socket, const struct sockaddr *address, socklen_t address_len)
 
PICOTM_NOTHROW int connect_tm (int socket, const struct sockaddr *address, socklen_t address_len)
 
PICOTM_NOTHROW ssize_t send_tm (int socket, const void *buffer, size_t length, int flags)
 
PICOTM_NOTHROW ssize_t recv_tm (int socket, void *buffer, size_t length, int flags)
 

Function Documentation

◆ accept_tm()

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

Variant of accept_tx() that operates on transactional memory.

◆ bind_tm()

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

Variant of bind_tx() that operates on transactional memory.

◆ connect_tm()

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

Variant of connect_tx() that operates on transactional memory.

◆ recv_tm()

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

Variant of recv_tx() that operates on transactional memory.

◆ send_tm()

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

Variant of send_tx() that operates on transactional memory.