Functions

Using files as sockets
[Sockets]

Functions

gras_socket_t gras_socket_client_from_file (const char *path)
gras_socket_t gras_socket_server_from_file (const char *path)

Detailed Description

For debugging purpose, it is possible to deal with files as if they were sockets. It can even be useful to store stuff in a portable manner, but writing messages to a file may be strange...

Bug:
Don't use '-' on windows. this file represents stdin or stdout, but I failed to deal with it on windows.

Function Documentation

gras_socket_t gras_socket_client_from_file ( const char *  path  ) 

gras_socket_client_from_file:

Create a client socket from a file path.

This only possible in RL, and is mainly for debugging.

gras_socket_t gras_socket_server_from_file ( const char *  path  ) 

gras_socket_server_from_file:

Create a server socket from a file path.

This only possible in RL, and is mainly for debugging.


Back to the main Simgrid Documentation page Generated for SimGridAPI by doxygen