A helper class that delegates C style function pointers to C++ class method invocations via user data. Also, it provides makeFunctions() and registerProtocol(). More...
#include <objectbox-sync.hpp>
Static Public Member Functions | |
static std::shared_ptr< SERVER > * | sharedPtrPtr (void *serverUserData) |
static std::shared_ptr< SERVER > | sharedPtr (void *serverUserData) |
static CONNECTION & | refConnection (void *connectionUserData) |
static void * | delegateCreate (uint64_t serverId, const char *url, const char *certPath, void *configUserData) |
static obx_err | delegateStart (void *serverUserData, uint64_t *outPort) |
static void | delegateStop (void *serverUserData) |
static void | delegateShutdown (void *serverUserData) |
static bool | delegateClientConnSendAsync (OBX_bytes_lazy *cBytes, void *, void *connectionUserData) |
static void | delegateClientConnClose (void *, void *connectionUserData) |
static void | delegateClientConnShutdown (void *connectionUserData) |
static OBX_custom_msg_server_functions | makeFunctions () |
Create a OBX_custom_msg_server_functions struct according to the defined template delegates. | |
static void | registerProtocol (const char *protocol, void *configUserData=nullptr) |
Must be called to register a protocol for your custom messaging server. Call before starting a server. | |
A helper class that delegates C style function pointers to C++ class method invocations via user data. Also, it provides makeFunctions() and registerProtocol().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Create a OBX_custom_msg_server_functions struct according to the defined template delegates.
|
inlinestatic |
|
inlinestatic |
Must be called to register a protocol for your custom messaging server. Call before starting a server.
protocol | the communication protocol to use, e.g. "tcp" |
|
inlinestatic |
|
inlinestatic |