Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
enable sendto_init()->set_from(h1)->set_to(h2)
[simgrid.git] / include / simgrid / s4u / Comm.hpp
index 8a5fe9f..36e04e8 100644 (file)
@@ -44,6 +44,8 @@ public:
 
   ~Comm() override;
 
+  /*! Creates a communication that bypasses the mailbox mechanism. */
+  static CommPtr sendto_init();
   /*! Creates a communication beween the two given hosts, bypassing the mailbox mechanism. */
   static CommPtr sendto_init(Host* from, Host* to);
   /** Do an asynchronous communication between two arbitrary hosts.
@@ -104,6 +106,10 @@ public:
     return detach();
   }
 
+  /** Set the source and destination of communications that bypass the mailbox mechanism */
+  CommPtr set_from(Host* from);
+  CommPtr set_to(Host* to);
+
   /** Sets the maximal communication rate (in byte/sec). Must be done before start */
   CommPtr set_rate(double rate);