Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gras_trp_socket_new is in charge of pushing it into the set of known sockets
[simgrid.git] / src / gras / Transport / transport_plugin_file.c
index de90623..6a52c08 100644 (file)
@@ -107,14 +107,7 @@ gras_socket_client_from_file(const char*path,
         (*dst)->incoming?'y':'n', 
         (*dst)->outgoing?'y':'n',
         (*dst)->accepting?'y':'n');
         (*dst)->incoming?'y':'n', 
         (*dst)->outgoing?'y':'n',
         (*dst)->accepting?'y':'n');
-  /* register socket */
-  errcode = gras_dynar_push(_gras_trp_sockets,dst);
-  if (errcode != no_error) {
-    free(*dst);
-    *dst = NULL;
-    return errcode;
-  }
-
+   
   return no_error;
 }
 
   return no_error;
 }
 
@@ -158,14 +151,6 @@ gras_socket_server_from_file(const char*path,
         (*dst)->outgoing?'y':'n',
         (*dst)->accepting?'y':'n');
 
         (*dst)->outgoing?'y':'n',
         (*dst)->accepting?'y':'n');
 
-  /* register socket */
-  errcode = gras_dynar_push(_gras_trp_sockets,dst);
-  if (errcode != no_error) {
-    free(*dst);
-    *dst = NULL;
-    return errcode;
-  }
-
   return no_error;
 }
 
   return no_error;
 }