Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
d6e2f8bd
Commit
d6e2f8bd
authored
Jul 26, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port caf_net to latest CAF API
parent
53c85439
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
libcaf_net/caf/net/middleman.hpp
libcaf_net/caf/net/middleman.hpp
+3
-0
libcaf_net/src/net/middleman.cpp
libcaf_net/src/net/middleman.cpp
+4
-0
libcaf_net/test/transport_worker_dispatcher.cpp
libcaf_net/test/transport_worker_dispatcher.cpp
+4
-0
No files found.
libcaf_net/caf/net/middleman.hpp
View file @
d6e2f8bd
...
...
@@ -75,6 +75,9 @@ public:
return
result
.
release
();
}
/// Adds module-specific options to the config before loading the module.
static
void
add_module_options
(
actor_system_config
&
cfg
);
// -- remoting ---------------------------------------------------------------
expected
<
endpoint_manager_ptr
>
connect
(
const
uri
&
locator
);
...
...
libcaf_net/src/net/middleman.cpp
View file @
d6e2f8bd
...
...
@@ -96,6 +96,10 @@ void* middleman::subtype_ptr() {
return
this
;
}
void
middleman
::
add_module_options
(
actor_system_config
&
)
{
// nop
}
expected
<
endpoint_manager_ptr
>
middleman
::
connect
(
const
uri
&
locator
)
{
if
(
auto
ptr
=
backend
(
locator
.
scheme
()))
return
ptr
->
get_or_connect
(
locator
);
...
...
libcaf_net/test/transport_worker_dispatcher.cpp
View file @
d6e2f8bd
...
...
@@ -47,6 +47,10 @@ struct dummy_actor : public monitorable_actor {
void
enqueue
(
mailbox_element_ptr
,
execution_unit
*
)
override
{
// nop
}
void
setup_metrics
()
{
// nop
}
};
class
dummy_application
{
...
...
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