X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9ceefed14c83a0f6ea5f78e3acafd53181dc4fa1..7ec4bfe63855f02819ad397d3b29babf4421ea00:/include/simgrid/s4u/Comm.hpp diff --git a/include/simgrid/s4u/Comm.hpp b/include/simgrid/s4u/Comm.hpp index 8a5fe9f87a..bee49b304a 100644 --- a/include/simgrid/s4u/Comm.hpp +++ b/include/simgrid/s4u/Comm.hpp @@ -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() const { return from_; } + CommPtr set_destination(Host* to); + Host* get_destination() const { return to_; } + /** Sets the maximal communication rate (in byte/sec). Must be done before start */ CommPtr set_rate(double rate);