1 /* Copyright (c) 2006-2015. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_S4U_CHANNEL_HPP
7 #define SIMGRID_S4U_CHANNEL_HPP
9 #include <boost/unordered_map.hpp>
11 #include "simgrid/s4u/process.hpp"
18 * Rendez-vous point for network communications, similar to URLs on which you could post and retrieve data.
19 * They are not network locations (you can post and retrieve on a given mailbox from anywhere on the network).
25 Channel(const char*name, smx_rdv_t inferior);
30 smx_rdv_t getInferior() { return p_inferior; }
33 /** Retrieve the channel associated to the given string */
34 static Channel *byName(const char *name);
39 static boost::unordered_map<std::string, Channel *> *channels;
41 }} // namespace simgrid::s4u
43 #endif /* SIMGRID_S4U_CHANNEL_HPP */