CppWAMP
C++11 client library for the WAMP protocol
|
Go to the documentation of this file.
7 #ifndef CPPWAMP_UDSPATH_HPP
8 #define CPPWAMP_UDSPATH_HPP
19 #include "internal/socketoptions.hpp"
22 namespace boost {
namespace asio {
namespace local {
class stream_protocol; }}}
27 namespace internal {
class UdsOpener; }
43 UdsOptions& withBroadcast(
bool enabled =
true);
49 UdsOptions& withDoNotRoute(
bool enabled =
true);
52 UdsOptions& withKeepAlive(
bool enabled =
true);
55 UdsOptions& withLinger(
bool enabled,
int timeout);
67 UdsOptions& withReuseAddress(
bool enabled =
true);
76 template <
typename TOption,
typename... TArgs>
79 template <
typename TSocket>
void applyTo(TSocket& socket)
const;
81 internal::SocketOptionList<boost::asio::local::stream_protocol> options_;
83 friend class internal::UdsOpener;
104 std::string pathName,
117 const std::string& pathName()
const;
208 std::string pathName_;
215 #ifndef CPPWAMP_COMPILED_LIB
216 #include "./internal/udspath.ipp"
219 #endif // CPPWAMP_UDSPATH_HPP
UdsPath & withBroadcast(bool enabled=true)
The following setters are deprecated.
Definition: udspath.hpp:130
Contains a Unix domain socket path, as well as other socket options.
Definition: udspath.hpp:95
Defines macros related to exporting/importing APIs.
UdsPath & withReceiveLowWatermark(int size)
Adds the SO_RCVLOWAT socket option.
Definition: udspath.hpp:179
UdsPath & withReceiveBufferSize(int size)
Adds the SO_RCVBUF socket option.
Definition: udspath.hpp:172
UdsPath & withReuseAddress(bool enabled=true)
Adds the SO_REUSEADDR socket option.
Definition: udspath.hpp:186
Definition: anyhandler.hpp:36
UdsPath & withSendLowWatermark(int size)
Adds the SO_SNDLOWAT socket option.
Definition: udspath.hpp:200
Contains options for the UNIX domain socket transport.
Definition: udspath.hpp:39
Contains common option definitions for raw socket transports.
RawsockMaxLength
Enumerators used to specify the maximum length of messages that a raw socket transport can receive.
Definition: rawsockoptions.hpp:22
UdsPath & withLinger(bool enabled, int timeout)
Adds the SO_LINGER socket option.
Definition: udspath.hpp:165
UdsPath & withDebug(bool enabled=true)
Adds the SO_DEBUG socket option.
Definition: udspath.hpp:137
UdsPath & withOutOfBandInline(bool enabled)
Adds the SO_OOBINLINE socket option.
Definition: udspath.hpp:158
UdsPath & withSendBufferSize(int size)
Adds the SO_SNDBUF socket option.
Definition: udspath.hpp:193
UdsPath & withKeepAlive(bool enabled=true)
Adds the SO_KEEPALIVE socket option.
Definition: udspath.hpp:151
UdsPath & withDoNotRoute(bool enabled=true)
Adds the SO_DONTROUTE socket option.
Definition: udspath.hpp:144