Commit 0b579f72 authored by Jakob Otto's avatar Jakob Otto

Add missing CAF_NET_EXPORTs

parent d0a0d62a
......@@ -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 -----------------------------------------------------------
......
......@@ -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;
......
......@@ -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>
......
......@@ -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 ----------------------------------------------------------------
......
......@@ -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
......@@ -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 -----------------------------------------------------------
......
......@@ -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 --------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment