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
cb86c22d
Commit
cb86c22d
authored
Aug 16, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix const specifiers
parent
f96b992e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libcaf_net/caf/policy/scribe.hpp
libcaf_net/caf/policy/scribe.hpp
+2
-2
libcaf_net/src/scribe.cpp
libcaf_net/src/scribe.cpp
+1
-1
No files found.
libcaf_net/caf/policy/scribe.hpp
View file @
cb86c22d
...
...
@@ -90,7 +90,7 @@ public:
if
(
write_buf_
.
empty
())
return
false
;
auto
len
=
write_buf_
.
size
()
-
written_
;
void
*
buf
=
write_buf_
.
data
()
+
written_
;
const
void
*
buf
=
write_buf_
.
data
()
+
written_
;
CAF_LOG_TRACE
(
CAF_ARG
(
handle_
.
id
)
<<
CAF_ARG
(
len
));
auto
ret
=
net
::
write
(
handle_
,
buf
,
len
);
if
(
auto
num_bytes
=
get_if
<
size_t
>
(
&
ret
))
{
...
...
@@ -130,7 +130,7 @@ public:
void
configure_read
(
net
::
receive_policy
::
config
cfg
);
void
write_packet
(
span
<
byte
>
buf
);
void
write_packet
(
span
<
const
byte
>
buf
);
private:
net
::
stream_socket
handle_
;
...
...
libcaf_net/src/scribe.cpp
View file @
cb86c22d
...
...
@@ -69,7 +69,7 @@ void scribe::configure_read(net::receive_policy::config cfg) {
prepare_next_read
();
}
void
scribe
::
write_packet
(
const
span
<
byte
>
buf
)
{
void
scribe
::
write_packet
(
span
<
const
byte
>
buf
)
{
write_buf_
.
insert
(
write_buf_
.
end
(),
buf
.
begin
(),
buf
.
end
());
}
...
...
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