template <class M> static constexpr bool messageType() { return std::is_class_v<M> && std::is_trivial_v<M>; }
public:
+ Channel() = default;
explicit Channel(int sock) : socket_(sock) {}
~Channel();
return this->receive(&m, sizeof(M));
}
+ // Socket handling
int get_socket() const { return socket_; }
+ void reset_socket(int socket) { socket_ = socket; }
};
} // namespace simgrid::mc