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
f20cca8f
Commit
f20cca8f
authored
Sep 04, 2018
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align message names for new basp and raw data
parent
a287eae8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
libcaf_io/caf/policy/newb_basp.hpp
libcaf_io/caf/policy/newb_basp.hpp
+4
-4
libcaf_io/caf/policy/newb_raw.hpp
libcaf_io/caf/policy/newb_raw.hpp
+3
-3
No files found.
libcaf_io/caf/policy/newb_basp.hpp
View file @
f20cca8f
...
...
@@ -40,7 +40,7 @@ typename Inspector::result_type inspect(Inspector& fun, basp_header& hdr) {
constexpr
size_t
basp_header_len
=
sizeof
(
uint32_t
)
+
sizeof
(
actor_id
)
*
2
;
struct
new_basp_m
essage
{
struct
new_basp_m
sg
{
basp_header
header
;
char
*
payload
;
size_t
payload_len
;
...
...
@@ -48,14 +48,14 @@ struct new_basp_message {
template
<
class
Inspector
>
typename
Inspector
::
result_type
inspect
(
Inspector
&
fun
,
new_basp_m
essage
&
msg
)
{
new_basp_m
sg
&
msg
)
{
return
fun
(
meta
::
type_name
(
"new_basp_message"
),
msg
.
header
,
msg
.
payload_len
);
}
struct
datagram_basp
{
static
constexpr
size_t
header_size
=
basp_header_len
;
using
message_type
=
new_basp_m
essage
;
using
message_type
=
new_basp_m
sg
;
using
result_type
=
optional
<
message_type
>
;
io
::
network
::
newb
<
message_type
>*
parent
;
message_type
msg
;
...
...
@@ -109,7 +109,7 @@ struct datagram_basp {
struct
stream_basp
{
static
constexpr
size_t
header_size
=
basp_header_len
;
using
message_type
=
new_basp_m
essage
;
using
message_type
=
new_basp_m
sg
;
using
result_type
=
optional
<
message_type
>
;
io
::
network
::
newb
<
message_type
>*
parent
;
message_type
msg
;
...
...
libcaf_io/caf/policy/newb_raw.hpp
View file @
f20cca8f
...
...
@@ -24,18 +24,18 @@
namespace
caf
{
namespace
policy
{
struct
raw_data_message
{
struct
new_raw_msg
{
char
*
payload
;
size_t
payload_len
;
};
template
<
class
Inspector
>
typename
Inspector
::
result_type
inspect
(
Inspector
&
fun
,
raw_data_message
&
data
)
{
typename
Inspector
::
result_type
inspect
(
Inspector
&
fun
,
new_raw_msg
&
data
)
{
return
fun
(
meta
::
type_name
(
"raw_data_message"
),
data
.
payload_len
);
}
struct
raw
{
using
message_type
=
raw_data_message
;
using
message_type
=
new_raw_msg
;
using
result_type
=
optional
<
message_type
>
;
io
::
network
::
newb
<
message_type
>*
parent
;
message_type
msg
;
...
...
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