Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix regexes with older gcc.
[simgrid.git] / src / mc / remote / Channel.hpp
index ac4fd0c..c9de6d6 100644 (file)
@@ -19,7 +19,7 @@ namespace mc {
 /** A channel for exchanging messages between model-checker and model-checked
  *
  *  This abstracts away the way the messages are transferred. Currently, they
- *  are sent over a (connected) `SOCK_DGRAM` socket.
+ *  are sent over a (connected) `SOCK_SEQPACKET` socket.
  */
 class Channel {
   int socket_ = -1;
@@ -29,7 +29,7 @@ class Channel {
   }
 
 public:
-  Channel() {}
+  Channel() = default;
   explicit Channel(int sock) : socket_(sock) {}
   ~Channel();
 
@@ -53,6 +53,7 @@ public:
     s_mc_message message = {type};
     return this->send(&message, sizeof(message));
   }
+  /** @brief Send a message; returns 0 on success or errno on failure */
   template <class M> typename std::enable_if<messageType<M>(), int>::type send(M const& m) const
   {
     return this->send(&m, sizeof(M));