Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Test functions SD_task_get_start_time and SD_task_get_finish_time
[simgrid.git] / include / gras / transport.h
index fbbbd5d..02dc476 100644 (file)
@@ -37,9 +37,9 @@ typedef struct s_gras_socket *gras_socket_t;
 
 /** \brief Simply create a client socket (to speak to a remote host) */
 gras_socket_t gras_socket_client(const char *host, unsigned short port);
+gras_socket_t gras_socket_client_from_string(const char *host);
 /** \brief Simply create a server socket (to ear from remote hosts speaking to you) */
 gras_socket_t gras_socket_server(unsigned short port);
-/** \brief Close socket */
 void          gras_socket_close(gras_socket_t sd);
 
 /** \brief Create a client socket, full interface to all relevant settings */
@@ -51,6 +51,10 @@ gras_socket_t gras_socket_client_ext(const char *host,
 gras_socket_t gras_socket_server_ext(unsigned short port,
                                     unsigned long int bufSize,
                                     int measurement);
+gras_socket_t
+gras_socket_server_range(unsigned short minport, unsigned short maxport,
+                        unsigned long int buf_size, int measurement);
+
 /* @}*/
 /** \defgroup GRAS_sock_info Retrieving data about sockets and peers 
  *  \ingroup GRAS_sock
@@ -65,6 +69,8 @@ int   gras_socket_my_port  (gras_socket_t sock);
 int   gras_socket_peer_port(gras_socket_t sock);
 /** Get the host name of the remote side */
 char *gras_socket_peer_name(gras_socket_t sock);
+/** Get the process name of the remote side */
+char *gras_socket_peer_proc(gras_socket_t sock);
 /* @}*/
 
 /** \defgroup GRAS_sock_meas Using measurement sockets