]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/s4u/Comm.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove old dot loader
[simgrid.git] / include / simgrid / s4u / Comm.hpp
index 8a5fe9f87a1d99966e7e9c89f6c692bd8d2a6da2..6806ed953020003e7c859229a1ecdfde8b51e2f4 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,12 @@ public:
     return detach();
   }
 
+  /** Set the source and destination of communications that bypass the mailbox mechanism */
+  CommPtr set_source(Host* from);
+  Host* get_source() { return from_; }
+  CommPtr set_destination(Host* to);
+  Host* get_destination() { return to_; }
+
   /** Sets the maximal communication rate (in byte/sec). Must be done before start */
   CommPtr set_rate(double rate);