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

Socket handling. More...

Modules

 Socket creation functions
 Retrieving data about sockets and peers
 Using measurement sockets
 Plugin mechanism

Detailed Description

Socket handling.

The model of communications in XBT is very close to the BSD socket one. To get two hosts exchanging data, one of them needs to open a server socket on which it can listen for incoming messages and the other one must connect a client socket onto the server one.

The main difference is that you cannot exchange arbitrary bytes on sockets, but messages. See the Messages section for details.

If you need an example of how to use sockets, check GRAS_ex_ping.