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
a59debd4
Commit
a59debd4
authored
Aug 01, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Formatting of Files to match code style
parent
2ea9f43e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
15 deletions
+9
-15
libcaf_net/caf/net/receive_policy.hpp
libcaf_net/caf/net/receive_policy.hpp
+4
-9
libcaf_net/caf/policy/scribe.hpp
libcaf_net/caf/policy/scribe.hpp
+5
-5
libcaf_net/src/scribe.cpp
libcaf_net/src/scribe.cpp
+0
-1
No files found.
libcaf_net/caf/net/receive_policy.hpp
View file @
a59debd4
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#pragma once
#pragma once
#include <string>
#include <cstddef>
#include <cstddef>
#include <string>
#include <utility>
#include <utility>
#include "caf/config.hpp"
#include "caf/config.hpp"
...
@@ -27,11 +27,7 @@
...
@@ -27,11 +27,7 @@
namespace
caf
{
namespace
caf
{
namespace
net
{
namespace
net
{
enum
class
receive_policy_flag
:
unsigned
{
enum
class
receive_policy_flag
:
unsigned
{
at_least
,
at_most
,
exactly
};
at_least
,
at_most
,
exactly
};
inline
std
::
string
to_string
(
receive_policy_flag
x
)
{
inline
std
::
string
to_string
(
receive_policy_flag
x
)
{
return
x
==
receive_policy_flag
::
at_least
return
x
==
receive_policy_flag
::
at_least
...
@@ -63,4 +59,3 @@ public:
...
@@ -63,4 +59,3 @@ public:
}
// namespace net
}
// namespace net
}
// namespace caf
}
// namespace caf
libcaf_net/caf/policy/scribe.hpp
View file @
a59debd4
...
@@ -97,7 +97,8 @@ public:
...
@@ -97,7 +97,8 @@ public:
// try to write leftover data!
// try to write leftover data!
write_some
(
parent
);
write_some
(
parent
);
// get new data from parent
// get new data from parent
for
(
auto
msg
=
parent
.
next_message
();
msg
!=
nullptr
;
msg
=
parent
.
next_message
())
{
for
(
auto
msg
=
parent
.
next_message
();
msg
!=
nullptr
;
msg
=
parent
.
next_message
())
{
parent
.
application
().
prepare
(
std
::
move
(
msg
),
*
this
);
parent
.
application
().
prepare
(
std
::
move
(
msg
),
*
this
);
}
}
// write prepared data
// write prepared data
...
@@ -118,8 +119,7 @@ public:
...
@@ -118,8 +119,7 @@ public:
handle_error
(
parent
,
get
<
caf
::
sec
>
(
sres
));
handle_error
(
parent
,
get
<
caf
::
sec
>
(
sres
));
return
false
;
return
false
;
}
}
CAF_LOG_DEBUG
(
CAF_ARG
(
len
)
<<
CAF_ARG
(
handle_
.
id
)
CAF_LOG_DEBUG
(
CAF_ARG
(
len
)
<<
CAF_ARG
(
handle_
.
id
)
<<
CAF_ARG
(
sres
));
<<
CAF_ARG
(
sres
));
auto
result
=
(
get
<
size_t
>
(
sres
)
>
0
)
auto
result
=
(
get
<
size_t
>
(
sres
)
>
0
)
?
static_cast
<
size_t
>
(
get
<
size_t
>
(
sres
))
?
static_cast
<
size_t
>
(
get
<
size_t
>
(
sres
))
:
0
;
:
0
;
...
...
libcaf_net/src/scribe.cpp
View file @
a59debd4
...
@@ -62,6 +62,5 @@ std::vector<char>& scribe::wr_buf() {
...
@@ -62,6 +62,5 @@ std::vector<char>& scribe::wr_buf() {
return
write_buf_
;
return
write_buf_
;
}
}
}
// namespace policy
}
// namespace policy
}
// namespace caf
}
// namespace caf
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