-/* Copyright (c) 2015-2016. The SimGrid Team.
+/* Copyright (c) 2015-2017. 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. */
-#include <errno.h>
+#include <cerrno>
#include <unistd.h>
#include <sys/socket.h>
close(this->socket_);
}
+/** @brief Send a message; returns 0 on success or errno on failure */
int Channel::send(const void* message, size_t size) const
{
XBT_DEBUG("Send %s", MC_message_type_name(*(e_mc_message_type*)message));