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
b332a1ad
Commit
b332a1ad
authored
Jul 16, 2018
by
Dominik Charousset
Committed by
Dominik Charousset
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate io_failure implementations
parent
f182d377
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
29 deletions
+2
-29
libcaf_io/caf/io/datagram_servant.hpp
libcaf_io/caf/io/datagram_servant.hpp
+0
-2
libcaf_io/caf/io/doorman.hpp
libcaf_io/caf/io/doorman.hpp
+0
-2
libcaf_io/caf/io/network/manager.hpp
libcaf_io/caf/io/network/manager.hpp
+2
-2
libcaf_io/caf/io/scribe.hpp
libcaf_io/caf/io/scribe.hpp
+0
-2
libcaf_io/src/datagram_servant.cpp
libcaf_io/src/datagram_servant.cpp
+0
-7
libcaf_io/src/doorman.cpp
libcaf_io/src/doorman.cpp
+0
-7
libcaf_io/src/scribe.cpp
libcaf_io/src/scribe.cpp
+0
-7
No files found.
libcaf_io/caf/io/datagram_servant.hpp
View file @
b332a1ad
...
@@ -72,8 +72,6 @@ public:
...
@@ -72,8 +72,6 @@ public:
virtual
void
remove_endpoint
(
datagram_handle
hdl
)
=
0
;
virtual
void
remove_endpoint
(
datagram_handle
hdl
)
=
0
;
void
io_failure
(
execution_unit
*
ctx
,
network
::
operation
op
)
override
;
bool
consume
(
execution_unit
*
,
datagram_handle
hdl
,
bool
consume
(
execution_unit
*
,
datagram_handle
hdl
,
network
::
receive_buffer
&
buf
)
override
;
network
::
receive_buffer
&
buf
)
override
;
...
...
libcaf_io/caf/io/doorman.hpp
View file @
b332a1ad
...
@@ -43,8 +43,6 @@ public:
...
@@ -43,8 +43,6 @@ public:
~
doorman
()
override
;
~
doorman
()
override
;
void
io_failure
(
execution_unit
*
ctx
,
network
::
operation
op
)
override
;
using
doorman_base
::
new_connection
;
using
doorman_base
::
new_connection
;
bool
new_connection
(
execution_unit
*
ctx
,
connection_handle
x
);
bool
new_connection
(
execution_unit
*
ctx
,
connection_handle
x
);
...
...
libcaf_io/caf/io/network/manager.hpp
View file @
b332a1ad
...
@@ -63,8 +63,8 @@ public:
...
@@ -63,8 +63,8 @@ public:
/// Adds the I/O device to the event loop of the middleman.
/// Adds the I/O device to the event loop of the middleman.
virtual
void
add_to_loop
()
=
0
;
virtual
void
add_to_loop
()
=
0
;
///
Called by the underlying I/O device to report failures
.
///
Detaches this manager from its parent in case of an error
.
v
irtual
void
io_failure
(
execution_unit
*
ctx
,
operation
op
)
=
0
;
v
oid
io_failure
(
execution_unit
*
ctx
,
operation
op
)
;
/// Get the address of the underlying I/O device.
/// Get the address of the underlying I/O device.
virtual
std
::
string
addr
()
const
=
0
;
virtual
std
::
string
addr
()
const
=
0
;
...
...
libcaf_io/caf/io/scribe.hpp
View file @
b332a1ad
...
@@ -57,8 +57,6 @@ public:
...
@@ -57,8 +57,6 @@ public:
/// content of the buffer via the network.
/// content of the buffer via the network.
virtual
void
flush
()
=
0
;
virtual
void
flush
()
=
0
;
void
io_failure
(
execution_unit
*
ctx
,
network
::
operation
op
)
override
;
bool
consume
(
execution_unit
*
,
const
void
*
,
size_t
)
override
;
bool
consume
(
execution_unit
*
,
const
void
*
,
size_t
)
override
;
void
data_transferred
(
execution_unit
*
,
size_t
,
size_t
)
override
;
void
data_transferred
(
execution_unit
*
,
size_t
,
size_t
)
override
;
...
...
libcaf_io/src/datagram_servant.cpp
View file @
b332a1ad
...
@@ -73,13 +73,6 @@ void datagram_servant::datagram_sent(execution_unit* ctx, datagram_handle hdl,
...
@@ -73,13 +73,6 @@ void datagram_servant::datagram_sent(execution_unit* ctx, datagram_handle hdl,
invoke_mailbox_element_impl
(
ctx
,
tmp
);
invoke_mailbox_element_impl
(
ctx
,
tmp
);
}
}
void
datagram_servant
::
io_failure
(
execution_unit
*
ctx
,
network
::
operation
op
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
hdl
())
<<
CAF_ARG
(
op
));
// keep compiler happy when compiling w/o logging
static_cast
<
void
>
(
op
);
detach
(
ctx
,
true
);
}
}
// namespace io
}
// namespace io
}
// namespace caf
}
// namespace caf
libcaf_io/src/doorman.cpp
View file @
b332a1ad
...
@@ -37,13 +37,6 @@ message doorman::detach_message() {
...
@@ -37,13 +37,6 @@ message doorman::detach_message() {
return
make_message
(
acceptor_closed_msg
{
hdl
()});
return
make_message
(
acceptor_closed_msg
{
hdl
()});
}
}
void
doorman
::
io_failure
(
execution_unit
*
ctx
,
network
::
operation
op
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
hdl
().
id
())
<<
CAF_ARG
(
op
));
// keep compiler happy when compiling w/o logging
static_cast
<
void
>
(
op
);
detach
(
ctx
,
true
);
}
bool
doorman
::
new_connection
(
execution_unit
*
ctx
,
connection_handle
x
)
{
bool
doorman
::
new_connection
(
execution_unit
*
ctx
,
connection_handle
x
)
{
msg
().
handle
=
x
;
msg
().
handle
=
x
;
return
invoke_mailbox_element
(
ctx
);
return
invoke_mailbox_element
(
ctx
);
...
...
libcaf_io/src/scribe.cpp
View file @
b332a1ad
...
@@ -77,12 +77,5 @@ void scribe::data_transferred(execution_unit* ctx, size_t written,
...
@@ -77,12 +77,5 @@ void scribe::data_transferred(execution_unit* ctx, size_t written,
//parent()->consume(std::move(ptr));
//parent()->consume(std::move(ptr));
}
}
void
scribe
::
io_failure
(
execution_unit
*
ctx
,
network
::
operation
op
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
hdl
())
<<
CAF_ARG
(
op
));
// keep compiler happy when compiling w/o logging
static_cast
<
void
>
(
op
);
detach
(
ctx
,
true
);
}
}
// namespace io
}
// namespace io
}
// 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