X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/49e9f443f655fd07cc8ed1e4ad6ce329ded0fdc3..6a908b79ea45f85f305620c09375b72483b7eee9:/src/mc/remote/Channel.hpp diff --git a/src/mc/remote/Channel.hpp b/src/mc/remote/Channel.hpp index da1f649ae1..c9e1aeb770 100644 --- a/src/mc/remote/Channel.hpp +++ b/src/mc/remote/Channel.hpp @@ -22,6 +22,7 @@ class Channel { template static constexpr bool messageType() { return std::is_class_v && std::is_trivial_v; } public: + Channel() = default; explicit Channel(int sock) : socket_(sock) {} ~Channel(); @@ -49,7 +50,9 @@ public: return this->receive(&m, sizeof(M)); } + // Socket handling int get_socket() const { return socket_; } + void reset_socket(int socket) { socket_ = socket; } }; } // namespace simgrid::mc