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
69913604
Commit
69913604
authored
Oct 24, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added virtual getter for actor addressing
parent
79405550
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
cppa/network/default_protocol.hpp
cppa/network/default_protocol.hpp
+3
-2
cppa/network/protocol.hpp
cppa/network/protocol.hpp
+4
-0
src/default_protocol.cpp
src/default_protocol.cpp
+4
-0
No files found.
cppa/network/default_protocol.hpp
View file @
69913604
...
...
@@ -66,8 +66,6 @@ class default_protocol : public protocol {
actor_ptr
remote_actor
(
io_stream_ptr_pair
ioptrs
,
variant_args
args
);
inline
default_actor_addressing
*
addressing
()
{
return
&
m_addressing
;
}
void
register_peer
(
const
process_information
&
node
,
default_peer
*
ptr
);
default_peer_ptr
get_peer
(
const
process_information
&
node
);
...
...
@@ -80,6 +78,9 @@ class default_protocol : public protocol {
void
continue_writer
(
const
default_peer_ptr
&
pptr
);
// covariant return type
default_actor_addressing
*
addressing
();
private:
default_actor_addressing
m_addressing
;
...
...
cppa/network/protocol.hpp
View file @
69913604
...
...
@@ -42,6 +42,8 @@
#include "cppa/network/acceptor.hpp"
namespace
cppa
{
class
actor_addressing
;
}
namespace
cppa
{
namespace
network
{
class
abstract_middleman
;
...
...
@@ -73,6 +75,8 @@ class protocol : public ref_counted {
virtual
actor_ptr
remote_actor
(
io_stream_ptr_pair
ioptrs
,
variant_args
args
)
=
0
;
virtual
actor_addressing
*
addressing
()
=
0
;
void
run_later
(
std
::
function
<
void
()
>
fun
);
protected:
...
...
src/default_protocol.cpp
View file @
69913604
...
...
@@ -215,4 +215,8 @@ void default_protocol::continue_writer(const default_peer_ptr& pptr) {
super
::
continue_writer
(
pptr
.
get
());
}
default_actor_addressing
*
default_protocol
::
addressing
()
{
return
&
m_addressing
;
}
}
}
// namespace cppa::network
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