10 #include <zeroeq/defines.h>
11 #include <servus/types.h>
12 #include <servus/uint128_t.h>
18 # include <winsock2.h>
40 using servus::uint128_t;
46 typedef std::function< void() >
EventFunc;
58 typedef std::function< std::string() >
GETFunc;
61 typedef SOCKET SocketDescriptor;
63 typedef int SocketDescriptor;
70 using servus::make_uint128;
72 static const std::string DEFAULT_SESSION =
"__zeroeq";
73 static const std::string NULL_SESSION =
"__null_session";
75 namespace detail {
struct Socket; }
Enhances servus::URI to guarantee the existance of a schema and to allow construction of [host][:port...
std::function< bool() > PUTFunc
HTTP PUT callback w/o payload, return reply success.
static const uint32_t TIMEOUT_INDEFINITE
Constant defining 'wait forever' in methods with wait parameters.
std::function< void() > EventFunc
Callback for receival of subscribed event w/o payload.
std::function< std::string() > GETFunc
HTTP GET callback to return JSON reply.
std::function< bool(const std::string &) > PUTPayloadFunc
HTTP PUT callback w/ JSON payload, return reply success.
std::function< void(const void *, size_t) > EventPayloadFunc
Callback for receival of subscribed event w/ payload.
Publish-subscribe classes for typed events.