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
b0e66758
Commit
b0e66758
authored
Jul 07, 2018
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flatten caf::io::network::policy namespace
parent
4260a34b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
37 deletions
+15
-37
libcaf_io/caf/io/network/datagram_servant_impl.hpp
libcaf_io/caf/io/network/datagram_servant_impl.hpp
+1
-1
libcaf_io/caf/io/network/doorman_impl.hpp
libcaf_io/caf/io/network/doorman_impl.hpp
+1
-1
libcaf_io/caf/io/network/scribe_impl.hpp
libcaf_io/caf/io/network/scribe_impl.hpp
+1
-1
libcaf_io/caf/policy/tcp.hpp
libcaf_io/caf/policy/tcp.hpp
+3
-7
libcaf_io/caf/policy/udp.hpp
libcaf_io/caf/policy/udp.hpp
+2
-6
libcaf_io/src/default_multiplexer.cpp
libcaf_io/src/default_multiplexer.cpp
+0
-6
libcaf_io/src/tcp.cpp
libcaf_io/src/tcp.cpp
+4
-8
libcaf_io/src/udp.cpp
libcaf_io/src/udp.cpp
+3
-7
No files found.
libcaf_io/caf/io/network/datagram_servant_impl.hpp
View file @
b0e66758
...
...
@@ -24,7 +24,7 @@
#include "caf/io/network/native_socket.hpp"
#include "caf/io/network/datagram_handler_impl.hpp"
#include "caf/
io/network/
policy/udp.hpp"
#include "caf/policy/udp.hpp"
namespace
caf
{
namespace
io
{
...
...
libcaf_io/caf/io/network/doorman_impl.hpp
View file @
b0e66758
...
...
@@ -24,7 +24,7 @@
#include "caf/io/network/acceptor_impl.hpp"
#include "caf/io/network/native_socket.hpp"
#include "caf/
io/network/
policy/tcp.hpp"
#include "caf/policy/tcp.hpp"
namespace
caf
{
namespace
io
{
...
...
libcaf_io/caf/io/network/scribe_impl.hpp
View file @
b0e66758
...
...
@@ -24,7 +24,7 @@
#include "caf/io/network/stream_impl.hpp"
#include "caf/io/network/native_socket.hpp"
#include "caf/
io/network/
policy/tcp.hpp"
#include "caf/policy/tcp.hpp"
namespace
caf
{
namespace
io
{
...
...
libcaf_io/caf/
io/network/
policy/tcp.hpp
→
libcaf_io/caf/policy/tcp.hpp
View file @
b0e66758
...
...
@@ -21,18 +21,16 @@
#include "caf/io/network/default_multiplexer.hpp"
namespace
caf
{
namespace
io
{
namespace
network
{
namespace
policy
{
/// Function signature of `read_some`.
using
read_some_fun
=
decltype
(
read_some
)
*
;
using
read_some_fun
=
decltype
(
io
::
network
::
read_some
)
*
;
/// Function signature of `wite_some`.
using
write_some_fun
=
decltype
(
write_some
)
*
;
using
write_some_fun
=
decltype
(
io
::
network
::
write_some
)
*
;
/// Function signature of `try_accept`.
using
try_accept_fun
=
decltype
(
try_accept
)
*
;
using
try_accept_fun
=
decltype
(
io
::
network
::
try_accept
)
*
;
/// Policy object for wrapping default TCP operations.
struct
tcp
{
...
...
@@ -42,6 +40,4 @@ struct tcp {
};
}
// namespace policy
}
// namespace network
}
// namespace io
}
// namespace caf
libcaf_io/caf/
io/network/
policy/udp.hpp
→
libcaf_io/caf/policy/udp.hpp
View file @
b0e66758
...
...
@@ -21,15 +21,13 @@
#include "caf/io/network/default_multiplexer.hpp"
namespace
caf
{
namespace
io
{
namespace
network
{
namespace
policy
{
/// Function signature of read_datagram
using
read_datagram_fun
=
decltype
(
read_datagram
)
*
;
using
read_datagram_fun
=
decltype
(
io
::
network
::
read_datagram
)
*
;
/// Function signature of write_datagram
using
write_datagram_fun
=
decltype
(
write_datagram
)
*
;
using
write_datagram_fun
=
decltype
(
io
::
network
::
write_datagram
)
*
;
/// Policy object for wrapping default UDP operations
struct
udp
{
...
...
@@ -38,6 +36,4 @@ struct udp {
};
}
// namespace policy
}
// namespace network
}
// namespace io
}
// namespace caf
libcaf_io/src/default_multiplexer.cpp
View file @
b0e66758
...
...
@@ -26,17 +26,11 @@
#include "caf/io/broker.hpp"
#include "caf/io/middleman.hpp"
#include "caf/io/network/stream.hpp"
#include "caf/io/network/acceptor.hpp"
#include "caf/io/network/protocol.hpp"
#include "caf/io/network/interfaces.hpp"
#include "caf/io/network/pipe_reader.hpp"
#include "caf/io/network/scribe_impl.hpp"
#include "caf/io/network/doorman_impl.hpp"
#include "caf/io/network/datagram_handler.hpp"
#include "caf/io/network/datagram_servant_impl.hpp"
#include "caf/io/network/policy/tcp.hpp"
#include "caf/io/network/policy/udp.hpp"
#include "caf/scheduler/abstract_coordinator.hpp"
...
...
libcaf_io/src/tcp.cpp
View file @
b0e66758
...
...
@@ -16,20 +16,16 @@
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/
io/network/
policy/tcp.hpp"
#include "caf/policy/tcp.hpp"
namespace
caf
{
namespace
io
{
namespace
network
{
namespace
policy
{
read_some_fun
tcp
::
read_some
=
caf
::
io
::
network
::
read_some
;
read_some_fun
tcp
::
read_some
=
io
::
network
::
read_some
;
write_some_fun
tcp
::
write_some
=
caf
::
io
::
network
::
write_some
;
write_some_fun
tcp
::
write_some
=
io
::
network
::
write_some
;
try_accept_fun
tcp
::
try_accept
=
caf
::
io
::
network
::
try_accept
;
try_accept_fun
tcp
::
try_accept
=
io
::
network
::
try_accept
;
}
// policy
}
// namespace network
}
// namespace io
}
// namespace caf
libcaf_io/src/udp.cpp
View file @
b0e66758
...
...
@@ -16,18 +16,14 @@
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/
io/network/
policy/udp.hpp"
#include "caf/policy/udp.hpp"
namespace
caf
{
namespace
io
{
namespace
network
{
namespace
policy
{
read_datagram_fun
udp
::
read_datagram
=
caf
::
io
::
network
::
read_datagram
;
read_datagram_fun
udp
::
read_datagram
=
io
::
network
::
read_datagram
;
write_datagram_fun
udp
::
write_datagram
=
caf
::
io
::
network
::
write_datagram
;
write_datagram_fun
udp
::
write_datagram
=
io
::
network
::
write_datagram
;
}
// policy
}
// namespace network
}
// namespace io
}
// 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