Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use the deployment file to specify the host where the server lives, do not overload...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 11 Feb 2005 08:27:43 +0000 (08:27 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 11 Feb 2005 08:27:43 +0000 (08:27 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@973 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/ping/ping.c
examples/gras/ping/ping_deployment.xml

index 631ed93..66b4b8a 100644 (file)
@@ -149,10 +149,7 @@ int client(int argc,char *argv[]) {
   /* 1. Init the GRAS's infrastructure */
   gras_init(&argc, argv, NULL);
    
-  /* 2. Get the server's address. 
-     If in simulation, the default is not the same. In any case, the command line override defaults when specified */
-  if (gras_if_SG())
-     host = "Tremblay";
+  /* 2. Get the server's address. The command line override defaults when specified */
   if (argc == 3) {
     host=argv[1];
     port=atoi(argv[2]);
index a97b81d..78dc211 100644 (file)
@@ -5,6 +5,7 @@
      <argument value="4000"/>       <!-- port number -->
   </process>
   <process host="Fafard" function="client">
+     <argument value="Tremblay"/>   <!-- server host -->
      <argument value="4000"/>       <!-- port number -->
   </process>
 </platform_description>