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
dfcf808f
Commit
dfcf808f
authored
Aug 22, 2014
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken broker examples. This closes #169
parent
7964c4ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
examples/remote_actors/protobuf_broker.cpp
examples/remote_actors/protobuf_broker.cpp
+1
-0
examples/remote_actors/simple_broker.cpp
examples/remote_actors/simple_broker.cpp
+1
-0
No files found.
examples/remote_actors/protobuf_broker.cpp
View file @
dfcf808f
...
...
@@ -53,6 +53,7 @@ void protobuf_io(broker* self, connection_handle hdl, const actor& buddy) {
int32_t
s
=
htonl
(
static_cast
<
int32_t
>
(
buf
.
size
()));
self
->
write
(
hdl
,
sizeof
(
int32_t
),
&
s
);
self
->
write
(
hdl
,
buf
.
size
(),
buf
.
data
());
self
->
flush
(
hdl
);
};
message_handler
default_bhvr
=
{
[
=
](
const
connection_closed_msg
&
)
{
...
...
examples/remote_actors/simple_broker.cpp
View file @
dfcf808f
...
...
@@ -64,6 +64,7 @@ template <class T>
void
write_int
(
broker
*
self
,
connection_handle
hdl
,
T
value
)
{
auto
cpy
=
static_cast
<
T
>
(
htonl
(
value
));
self
->
write
(
hdl
,
sizeof
(
T
),
&
cpy
);
self
->
flush
(
hdl
);
}
// utility function for reading an ingeger from incoming data
...
...
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