Commit 0cfec00d authored by Dominik Charousset's avatar Dominik Charousset

Fix build with ASIO multiplexer enabled

parent 156fd942
...@@ -35,11 +35,11 @@ namespace io { ...@@ -35,11 +35,11 @@ namespace io {
/// // Establishes a new `port <-> actor` mapping and returns the actual /// // Establishes a new `port <-> actor` mapping and returns the actual
/// // port in use on success. Passing 0 as port instructs the OS to choose /// // port in use on success. Passing 0 as port instructs the OS to choose
/// // the next high-level port available for binding. /// // the next high-level port available for binding.
/// // @param port: Unused TCP port or 0 for any. /// // port: Unused TCP port or 0 for any.
/// // @param whom: Actor that should be published at given port. /// // whom: Actor that should be published at given port.
/// // @param ifs: Interface of given actor. /// // ifs: Interface of given actor.
/// // @param addr: IP address to listen to or empty for any. /// // addr: IP address to listen to or empty for any.
/// // @param reuse_addr: Enables or disables SO_REUSEPORT option. /// // reuse:_addr: Enables or disables SO_REUSEPORT option.
/// (publish_atom, uint16_t port, actor_addr whom, /// (publish_atom, uint16_t port, actor_addr whom,
/// set<string> ifs, string addr, bool reuse_addr) /// set<string> ifs, string addr, bool reuse_addr)
/// -> either (ok_atom, uint16_t port) /// -> either (ok_atom, uint16_t port)
...@@ -49,9 +49,9 @@ namespace io { ...@@ -49,9 +49,9 @@ namespace io {
/// // difference between `PUBLISH` and `OPEN` is that no actor is mapped to /// // difference between `PUBLISH` and `OPEN` is that no actor is mapped to
/// // this port, meaning that connecting nodes only get a valid `node_id` /// // this port, meaning that connecting nodes only get a valid `node_id`
/// // handle when connecting. /// // handle when connecting.
/// // @param port: Unused TCP port or 0 for any. /// // port: Unused TCP port or 0 for any.
/// // @param addr: IP address to listen to or empty for any. /// // addr: IP address to listen to or empty for any.
/// // @param reuse_addr: Enables or disables SO_REUSEPORT option. /// // reuse:_addr: Enables or disables SO_REUSEPORT option.
/// (open_atom, uint16_t port, string addr, bool reuse_addr) /// (open_atom, uint16_t port, string addr, bool reuse_addr)
/// -> either (ok_atom, uint16_t port) /// -> either (ok_atom, uint16_t port)
/// or (error_atom, string error_string) /// or (error_atom, string error_string)
...@@ -60,33 +60,32 @@ namespace io { ...@@ -60,33 +60,32 @@ namespace io {
/// // an `actor_addr` to a remote actor if an actor was published at this /// // an `actor_addr` to a remote actor if an actor was published at this
/// // port. The actor address must be cast to either `actor` or /// // port. The actor address must be cast to either `actor` or
/// // `typed_actor` using `actor_cast` after validating `ifs`. /// // `typed_actor` using `actor_cast` after validating `ifs`.
/// // @param hostname IP address or DNS hostname. /// // hostname: IP address or DNS hostname.
/// // @param port TCP port. /// // port: TCP port.
/// (connect_atom, string hostname, uint16_t port) /// (connect_atom, string hostname, uint16_t port)
/// -> either (ok_atom, node_id nid, actor_addr remote_actor, set<string> ifs) /// -> either (ok_atom, node_id nid, actor_addr remote_actor, set<string> ifs)
/// or (error_atom, string error_string) /// or (error_atom, string error_string)
/// ///
/// // Closes `port` if it is mapped to `whom`. /// // Closes `port` if it is mapped to `whom`.
/// // @param whom A published actor. /// // whom: A published actor.
/// // @param port Used TCP port. /// // port: Used TCP port.
/// (unpublish_atom, actor_addr whom, uint16_t port) /// (unpublish_atom, actor_addr whom, uint16_t port)
/// -> either (ok_atom) /// -> either (ok_atom)
/// or (error_atom, string error_string) /// or (error_atom, string error_string)
/// ///
/// // Unconditionally closes `port`, removing any actor /// // Unconditionally closes `port`, removing any actor
/// // published at this port. /// // published at this port.
/// // @param port Used TCP port. /// // port: Used TCP port.
/// (close_atom, uint16_t port) /// (close_atom, uint16_t port)
/// -> either (ok_atom) /// -> either (ok_atom)
/// or (error_atom, string error_string) /// or (error_atom, string error_string)
/// ///
/// // Spawns an actor on a remote node, initializing it /// // Spawns an actor on a remote node, initializing it using the arguments
/// // using the arguments stored in `msg`. /// // stored in `msg` and returns the address of the spawned actor and its
/// // @param nid ID of the remote node that should spawn the actor. /// // interface description on success; an error string otherwise.
/// // @param name Announced type name of the actor. /// // nid: ID of the remote node that should spawn the actor.
/// // @param args Initialization arguments for the actor. /// // name: Announced type name of the actor.
/// // @returns The address of the spawned actor and its interface /// // args: Initialization arguments for the actor.
/// // description on success; an error string otherwise.
/// (spawn_atom, node_id nid, string name, message args) /// (spawn_atom, node_id nid, string name, message args)
/// -> either (ok_atom, actor_addr, set<string> /// -> either (ok_atom, actor_addr, set<string>
/// or (error_atom, string error_string) /// or (error_atom, string error_string)
......
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
#include "caf/detail/run_program.hpp" #include "caf/detail/run_program.hpp"
#ifdef CAF_USE_ASIO
#include "caf/io/network/asio_multiplexer.hpp"
#endif // CAF_USE_ASIO
using namespace caf; using namespace caf;
using namespace caf::io; using namespace caf::io;
using namespace caf::experimental; using namespace caf::experimental;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment