X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4838662713c36d5b661503992e03fb07a12dbf48..6d454127a5b4d271888c494413f434e521ea8ab5:/src/mc/remote/Channel.hpp diff --git a/src/mc/remote/Channel.hpp b/src/mc/remote/Channel.hpp index c9de6d6ac9..a3e234410c 100644 --- a/src/mc/remote/Channel.hpp +++ b/src/mc/remote/Channel.hpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2015-2016. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2015-2019. 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. */ @@ -7,16 +6,14 @@ #ifndef SIMGRID_MC_CHANNEL_HPP #define SIMGRID_MC_CHANNEL_HPP -#include +#include "src/mc/remote/mc_protocol.h" #include -#include "src/mc/remote/mc_protocol.h" - 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. @@ -50,7 +47,7 @@ public: int send(const void* message, size_t size) const; int send(e_mc_message_type type) const { - s_mc_message message = {type}; + s_mc_message_t message = {type}; return this->send(&message, sizeof(message)); } /** @brief Send a message; returns 0 on success or errno on failure */ @@ -66,7 +63,7 @@ public: return this->receive(&m, sizeof(M)); } - int getSocket() const { return socket_; } + int get_socket() const { return socket_; } }; } }