X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..1b06644f45ed96ceb1dfc0eddb0f55d6e0ed2326:/src/mc/remote/Channel.hpp diff --git a/src/mc/remote/Channel.hpp b/src/mc/remote/Channel.hpp index b703e0b44f..30161b5bb3 100644 --- a/src/mc/remote/Channel.hpp +++ b/src/mc/remote/Channel.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -13,7 +13,7 @@ namespace simgrid { namespace mc { -/** A channel for exchanging messages between model-checker and model-checked +/** A channel for exchanging messages between model-checker and model-checked app * * This abstracts away the way the messages are transferred. Currently, they * are sent over a (connected) `SOCK_SEQPACKET` socket. @@ -26,7 +26,6 @@ class Channel { } public: - Channel() = default; explicit Channel(int sock) : socket_(sock) {} ~Channel(); @@ -34,15 +33,6 @@ public: Channel(Channel const&) = delete; Channel& operator=(Channel const&) = delete; - // Move: - Channel(Channel&& that) : socket_(that.socket_) { that.socket_ = -1; } - Channel& operator=(Channel&& that) - { - this->socket_ = that.socket_; - that.socket_ = -1; - return *this; - } - // Send int send(const void* message, size_t size) const; int send(e_mc_message_type type) const @@ -63,9 +53,9 @@ public: return this->receive(&m, sizeof(M)); } - int getSocket() const { return socket_; } + int get_socket() const { return socket_; } }; -} -} +} // namespace mc +} // namespace simgrid #endif