Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
0cfec00d
Commit
0cfec00d
authored
Aug 17, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build with ASIO multiplexer enabled
parent
156fd942
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
20 deletions
+23
-20
libcaf_io/caf/io/middleman_actor.hpp
libcaf_io/caf/io/middleman_actor.hpp
+19
-20
libcaf_io/test/automatic_connection.cpp
libcaf_io/test/automatic_connection.cpp
+4
-0
No files found.
libcaf_io/caf/io/middleman_actor.hpp
View file @
0cfec00d
...
@@ -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)
...
...
libcaf_io/test/automatic_connection.cpp
View file @
0cfec00d
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment