From: mquinson Date: Wed, 29 Sep 2004 09:29:20 +0000 (+0000) Subject: Reintroduce the raw sockets X-Git-Tag: v3.3~4912 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0cc0118417c2e650aa2a481102b1b3e2f8cf3599?ds=sidebyside Reintroduce the raw sockets git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@438 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/gras/transport.h b/include/gras/transport.h index b2b83f0525..ae488b1495 100644 --- a/include/gras/transport.h +++ b/include/gras/transport.h @@ -27,6 +27,27 @@ int gras_socket_my_port (gras_socket_t *sock); int gras_socket_peer_port(gras_socket_t *sock); char *gras_socket_peer_name(gras_socket_t *sock); +/* extended interface to get all details */ +gras_error_t gras_socket_client_ext(const char *host, + unsigned short port, + unsigned long int bufSize, + int raw, + /* OUT */ gras_socket_t **dst); +gras_error_t gras_socket_server_ext(unsigned short port, + unsigned long int bufSize, + int raw, + /* OUT */ gras_socket_t **dst); + +/* using raw sockets */ +gras_error_t gras_socket_raw_send(gras_socket_t *peer, + unsigned int timeout, + unsigned long int expSize, + unsigned long int msgSize); +gras_error_t gras_socket_raw_recv(gras_socket_t *peer, + unsigned int timeout, + unsigned long int expSize, + unsigned long int msgSize); + /* debuging functions */ gras_error_t gras_socket_client_from_file(const char*path, /* OUT */ gras_socket_t **dst);