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
1be99cf3
Commit
1be99cf3
authored
Oct 25, 2016
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing function
parent
c0d766d2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
libcaf_io/caf/io/network/test_multiplexer.hpp
libcaf_io/caf/io/network/test_multiplexer.hpp
+15
-12
libcaf_io/src/test_multiplexer.cpp
libcaf_io/src/test_multiplexer.cpp
+6
-2
No files found.
libcaf_io/caf/io/network/test_multiplexer.hpp
View file @
1be99cf3
...
@@ -159,6 +159,8 @@ public:
...
@@ -159,6 +159,8 @@ public:
uint16_t
&
port
(
datagram_source_handle
hdl
);
uint16_t
&
port
(
datagram_source_handle
hdl
);
size_t
&
buffer_size
(
datagram_source_handle
hdl
);
/// Returns `true` if this handle has been closed
/// Returns `true` if this handle has been closed
/// for reading, `false` otherwise.
/// for reading, `false` otherwise.
bool
&
stopped_reading
(
accept_handle
hdl
);
bool
&
stopped_reading
(
accept_handle
hdl
);
...
@@ -252,6 +254,7 @@ private:
...
@@ -252,6 +254,7 @@ private:
struct
datagram_source_data
{
struct
datagram_source_data
{
uint16_t
port
;
uint16_t
port
;
buffer_type
rd_buf
;
buffer_type
rd_buf
;
size_t
buffer_size
;
bool
stopped_reading
=
false
;
bool
stopped_reading
=
false
;
bool
passive_mode
=
false
;
bool
passive_mode
=
false
;
intrusive_ptr
<
datagram_source
>
ptr
;
intrusive_ptr
<
datagram_source
>
ptr
;
...
...
libcaf_io/src/test_multiplexer.cpp
View file @
1be99cf3
...
@@ -309,7 +309,7 @@ expected<void> test_multiplexer::assign_datagram_source(abstract_broker* ptr,
...
@@ -309,7 +309,7 @@ expected<void> test_multiplexer::assign_datagram_source(abstract_broker* ptr,
// nop
// nop
}
}
void
configure_datagram_size
(
size_t
buf_size
)
override
{
void
configure_datagram_size
(
size_t
buf_size
)
override
{
mpx_
->
buffer_size
(
hdl
())
=
buf_size
;
}
}
void
stop_reading
()
override
{
void
stop_reading
()
override
{
mpx_
->
stopped_reading
(
hdl
())
=
true
;
mpx_
->
stopped_reading
(
hdl
())
=
true
;
...
@@ -482,6 +482,10 @@ uint16_t& test_multiplexer::port(datagram_source_handle hdl) {
...
@@ -482,6 +482,10 @@ uint16_t& test_multiplexer::port(datagram_source_handle hdl) {
return
datagram_source_data_
[
hdl
].
port
;
return
datagram_source_data_
[
hdl
].
port
;
}
}
size_t
&
test_multiplexer
::
buffer_size
(
datagram_source_handle
hdl
)
{
return
datagram_source_data_
[
hdl
].
buffer_size
;
}
bool
&
test_multiplexer
::
stopped_reading
(
accept_handle
hdl
)
{
bool
&
test_multiplexer
::
stopped_reading
(
accept_handle
hdl
)
{
return
doorman_data_
[
hdl
].
stopped_reading
;
return
doorman_data_
[
hdl
].
stopped_reading
;
}
}
...
...
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