Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reintroduce the raw sockets
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 29 Sep 2004 09:29:20 +0000 (09:29 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 29 Sep 2004 09:29:20 +0000 (09:29 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@438 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/gras/transport.h

index b2b83f0..ae488b1 100644 (file)
@@ -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);
 
 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);
 /* debuging functions */
 gras_error_t gras_socket_client_from_file(const char*path,
                                          /* OUT */ gras_socket_t **dst);