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
0b579f72
Commit
0b579f72
authored
Jun 03, 2020
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing CAF_NET_EXPORTs
parent
d0a0d62a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
11 deletions
+22
-11
libcaf_net/caf/net/basp/application.hpp
libcaf_net/caf/net/basp/application.hpp
+2
-1
libcaf_net/caf/net/basp/application_factory.hpp
libcaf_net/caf/net/basp/application_factory.hpp
+3
-0
libcaf_net/caf/net/basp/header.hpp
libcaf_net/caf/net/basp/header.hpp
+4
-3
libcaf_net/caf/net/basp/worker.hpp
libcaf_net/caf/net/basp/worker.hpp
+3
-2
libcaf_net/caf/net/defaults.hpp
libcaf_net/caf/net/defaults.hpp
+5
-3
libcaf_net/caf/net/multiplexer.hpp
libcaf_net/caf/net/multiplexer.hpp
+3
-1
libcaf_net/caf/net/socket_manager.hpp
libcaf_net/caf/net/socket_manager.hpp
+2
-1
No files found.
libcaf_net/caf/net/basp/application.hpp
View file @
0b579f72
...
...
@@ -31,6 +31,7 @@
#include "caf/byte.hpp"
#include "caf/callback.hpp"
#include "caf/defaults.hpp"
#include "caf/detail/net_export.hpp"
#include "caf/detail/worker_hub.hpp"
#include "caf/error.hpp"
#include "caf/fwd.hpp"
...
...
@@ -52,7 +53,7 @@
namespace
caf
::
net
::
basp
{
/// An implementation of BASP as an application layer protocol.
class
application
{
class
CAF_NET_EXPORT
application
{
public:
// -- member types -----------------------------------------------------------
...
...
libcaf_net/caf/net/basp/application_factory.hpp
View file @
0b579f72
...
...
@@ -18,12 +18,15 @@
#pragma once
#include "caf/detail/net_export.hpp"
#include "caf/error.hpp"
#include "caf/net/basp/application.hpp"
#include "caf/proxy_registry.hpp"
namespace
caf
::
net
::
basp
{
/// Factory for basp::application.
/// @relates doorman
class
CAF_NET_EXPORT
application_factory
{
public:
using
application_type
=
basp
::
application
;
...
...
libcaf_net/caf/net/basp/header.hpp
View file @
0b579f72
...
...
@@ -22,6 +22,7 @@
#include <cstdint>
#include "caf/detail/comparable.hpp"
#include "caf/detail/net_export.hpp"
#include "caf/fwd.hpp"
#include "caf/meta/hex_formatted.hpp"
#include "caf/meta/type_name.hpp"
...
...
@@ -33,7 +34,7 @@ namespace caf::net::basp {
/// @addtogroup BASP
/// The header of a Binary Actor System Protocol (BASP) message.
struct
header
:
detail
::
comparable
<
header
>
{
struct
CAF_NET_EXPORT
header
:
detail
::
comparable
<
header
>
{
// -- constructors, destructors, and assignment operators --------------------
constexpr
header
()
noexcept
...
...
@@ -74,11 +75,11 @@ struct header : detail::comparable<header> {
/// Serializes a header to a byte representation.
/// @relates header
std
::
array
<
byte
,
header_size
>
to_bytes
(
header
x
);
CAF_NET_EXPORT
std
::
array
<
byte
,
header_size
>
to_bytes
(
header
x
);
/// Serializes a header to a byte representation.
/// @relates header
void
to_bytes
(
header
x
,
byte_buffer
&
buf
);
CAF_NET_EXPORT
void
to_bytes
(
header
x
,
byte_buffer
&
buf
);
/// @relates header
template
<
class
Inspector
>
...
...
libcaf_net/caf/net/basp/worker.hpp
View file @
0b579f72
...
...
@@ -24,6 +24,7 @@
#include "caf/byte_buffer.hpp"
#include "caf/config.hpp"
#include "caf/detail/abstract_worker.hpp"
#include "caf/detail/net_export.hpp"
#include "caf/detail/worker_hub.hpp"
#include "caf/fwd.hpp"
#include "caf/net/basp/header.hpp"
...
...
@@ -36,8 +37,8 @@
namespace
caf
::
net
::
basp
{
/// Deserializes payloads for BASP messages asynchronously.
class
worker
:
public
detail
::
abstract_worker
,
public
remote_message_handler
<
worker
>
{
class
CAF_NET_EXPORT
worker
:
public
detail
::
abstract_worker
,
public
remote_message_handler
<
worker
>
{
public:
// -- friends ----------------------------------------------------------------
...
...
libcaf_net/caf/net/defaults.hpp
View file @
0b579f72
...
...
@@ -21,17 +21,19 @@
#include <cstddef>
#include <cstdint>
#include "caf/detail/net_export.hpp"
// -- hard-coded default values for various CAF options ------------------------
namespace
caf
::
defaults
::
middleman
{
/// Maximum number of cached buffers for sending payloads.
extern
const
size_t
max_payload_buffers
;
CAF_NET_EXPORT
extern
const
size_t
max_payload_buffers
;
/// Maximum number of cached buffers for sending headers.
extern
const
size_t
max_header_buffers
;
CAF_NET_EXPORT
extern
const
size_t
max_header_buffers
;
/// Port to listen on for tcp.
extern
const
uint16_t
tcp_port
;
CAF_NET_EXPORT
extern
const
uint16_t
tcp_port
;
}
// namespace caf::defaults::middleman
libcaf_net/caf/net/multiplexer.hpp
View file @
0b579f72
...
...
@@ -22,6 +22,7 @@
#include <mutex>
#include <thread>
#include "caf/detail/net_export.hpp"
#include "caf/net/fwd.hpp"
#include "caf/net/operation.hpp"
#include "caf/net/pipe_socket.hpp"
...
...
@@ -37,7 +38,8 @@ struct pollfd;
namespace
caf
::
net
{
/// Multiplexes any number of ::socket_manager objects with a ::socket.
class
multiplexer
:
public
std
::
enable_shared_from_this
<
multiplexer
>
{
class
CAF_NET_EXPORT
multiplexer
:
public
std
::
enable_shared_from_this
<
multiplexer
>
{
public:
// -- member types -----------------------------------------------------------
...
...
libcaf_net/caf/net/socket_manager.hpp
View file @
0b579f72
...
...
@@ -18,6 +18,7 @@
#pragma once
#include "caf/detail/net_export.hpp"
#include "caf/error.hpp"
#include "caf/fwd.hpp"
#include "caf/net/fwd.hpp"
...
...
@@ -28,7 +29,7 @@
namespace
caf
::
net
{
/// Manages the lifetime of a single socket and handles any I/O events on it.
class
socket_manager
:
public
ref_counted
{
class
CAF_NET_EXPORT
socket_manager
:
public
ref_counted
{
public:
// -- constructors, destructors, and assignment operators --------------------
...
...
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