+ void (*clean_fun)(void*) = nullptr; /* Function to clean the detached src_buf if something goes wrong */
+ int (*match_fun)(void*, void*, simgrid::kernel::activity::CommImpl*) =
+ nullptr; /* Filter function used by the other side. It is used when
+looking if a given communication matches my needs. For that, myself must match the
+expectations of the other side, too. See */
+ void (*copy_data_fun)(smx_activity_t, void*, size_t) = nullptr;
+
+ /* Surf action data */
+ resource::Action* surf_action_ = nullptr; /* The Surf communication action encapsulated */
+ resource::Action* src_timeout_ = nullptr; /* Surf's actions to instrument the timeouts */
+ resource::Action* dst_timeout_ = nullptr; /* Surf's actions to instrument the timeouts */
+ actor::ActorImplPtr src_actor_ = nullptr;
+ actor::ActorImplPtr dst_actor_ = nullptr;
+ double rate_ = 0.0;
+ double task_size_ = 0.0;
+
+ /* Data to be transfered */
+ void* src_buff_ = nullptr;
+ void* dst_buff_ = nullptr;
+ size_t src_buff_size_ = 0;
+ size_t* dst_buff_size_ = nullptr;
+ bool copied = false; /* whether the data were already copied */
+
+ void* src_data_ = nullptr; /* User data associated to the communication */
+ void* dst_data_ = nullptr;