SimGrid  3.8.1
Scalable Simulation of Distributed Systems - Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Socket creation functions

Typedefs

typedef struct s_xbt_socket * xbt_socket_t
 Opaque type describing a socket.

Functions

void xbt_socket_new (int incoming, xbt_socket_t *dst)
void xbt_socket_new_ext (int incoming, xbt_socket_t *dst, xbt_trp_plugin_t plugin, unsigned long int buf_size, int measurement)
xbt_socket_t xbt_socket_tcp_client (const char *host, unsigned short port)
 Simply create a client socket (to speak to a remote host)
xbt_socket_t xbt_socket_tcp_server (unsigned short port)
 Simply create a server socket (to ear from remote hosts speaking to you)
xbt_socket_t xbt_socket_tcp_client_ext (const char *host, unsigned short port, unsigned long int bufSize, int measurement)
 Create a client socket, full interface to all relevant settings.
xbt_socket_t xbt_socket_tcp_server_ext (unsigned short portcp_t, unsigned long int bufSize, int measurement)
 Create a server socket, full interface to all relevant settings.

Detailed Description

Function Documentation

void xbt_socket_new ( int  incoming,
xbt_socket_t dst 
)

xbt_trp_socket:

Malloc a new socket with the TCP transport plugin and default parameters.

void xbt_socket_new_ext ( int  incoming,
xbt_socket_t dst,
xbt_trp_plugin_t  plugin,
unsigned long int  buf_size,
int  measurement 
)

xbt_trp_socket_new:

Malloc a new socket.