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
6b717efd
Commit
6b717efd
authored
Nov 09, 2016
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make compiler happy
parent
63a997d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
libcaf_io/caf/io/basp_broker.hpp
libcaf_io/caf/io/basp_broker.hpp
+3
-3
libcaf_io/src/basp_broker.cpp
libcaf_io/src/basp_broker.cpp
+3
-1
No files found.
libcaf_io/caf/io/basp_broker.hpp
View file @
6b717efd
...
...
@@ -115,13 +115,13 @@ struct basp_broker_state : proxy_registry::backend, basp::instance::callee {
// stores information about remote datagram enpoints
struct
remote_endpoint
{
// local sink
datagram_sink_handle
sink
;
datagram_sink_handle
sink
;
// ordering information
uint32_t
sequence_number_send
=
0
;
uint32_t
sequence_number_receive
=
0
;
// TODO: local buffer for ordering
uint16_t
remote_port
;
}
}
;
// our current processed BSAP header
basp
::
header
hdr
;
// local source
...
...
@@ -144,7 +144,7 @@ struct basp_broker_state : proxy_registry::backend, basp::instance::callee {
// keeps context information for all open connections
std
::
unordered_map
<
connection_handle
,
connection_context
>
tcp_ctx
;
std
::
unordered_map
<
datagram_s
ource
_handle
,
endpoint_context
>
udp_ctx
;
std
::
unordered_map
<
datagram_s
ink
_handle
,
endpoint_context
>
udp_ctx
;
// points to the current context for callbacks such as `make_proxy`
connection_context
*
this_context
=
nullptr
;
...
...
libcaf_io/src/basp_broker.cpp
View file @
6b717efd
...
...
@@ -550,7 +550,7 @@ behavior basp_broker::make_behavior() {
CAF_LOG_TRACE
(
CAF_ARG
(
msg
.
handle
));
CAF_LOG_DEBUG
(
"Received new_datagram_msg: "
<<
CAF_ARG
(
msg
));
auto
&
hdl
=
msg
.
handle
;
state
.
instance
.
handle
(
context
(),
msg
,
//
state.instance.handle(context(), msg,
},
// received from proxy instances
[
=
](
forward_atom
,
strong_actor_ptr
&
src
,
...
...
@@ -690,9 +690,11 @@ behavior basp_broker::make_behavior() {
auto
res
=
assign_datagram_sink
(
hdl
);
if
(
res
)
{
auto
&
ctx
=
state
.
udp_ctx
[
hdl
];
/*
ctx.sink = hdl;
ctx.remote_port = port;
ctx.callback = rp;
*/
// TODO: Start handshake with server as there is no way for
// the server to initiate this.
}
else
{
...
...
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