ObjectBox C and C++ API 4.3.0
 
Loading...
Searching...
No Matches
OBX_custom_msg_server_functions Struct Reference

Struct of the custom server function callbacks. In order to implement the custom server, you must provide custom methods for each of the members of this struct. This is then passed to obx_custom_msg_server_register() to register the custom server. More...

#include <objectbox-sync.h>

Public Attributes

size_t version
 Must be initialized with sizeof(OBX_custom_msg_server_functions) to "version" the struct. This allows the library (whi) to detect older or newer versions and react properly.
 
OBX_custom_msg_server_func_createfunc_create
 
OBX_custom_msg_server_func_startfunc_start
 
OBX_custom_msg_server_func_stopfunc_stop
 
OBX_custom_msg_server_func_shutdownfunc_shutdown
 
OBX_custom_msg_server_func_client_connection_send_asyncfunc_conn_send_async
 
OBX_custom_msg_server_func_client_connection_closefunc_conn_close
 
OBX_custom_msg_server_func_client_connection_shutdownfunc_conn_shutdown
 

Detailed Description

Struct of the custom server function callbacks. In order to implement the custom server, you must provide custom methods for each of the members of this struct. This is then passed to obx_custom_msg_server_register() to register the custom server.

Member Data Documentation

◆ func_conn_close

OBX_custom_msg_server_func_client_connection_close* OBX_custom_msg_server_functions::func_conn_close

◆ func_conn_send_async

OBX_custom_msg_server_func_client_connection_send_async* OBX_custom_msg_server_functions::func_conn_send_async

◆ func_conn_shutdown

OBX_custom_msg_server_func_client_connection_shutdown* OBX_custom_msg_server_functions::func_conn_shutdown

◆ func_create

OBX_custom_msg_server_func_create* OBX_custom_msg_server_functions::func_create

◆ func_shutdown

OBX_custom_msg_server_func_shutdown* OBX_custom_msg_server_functions::func_shutdown

◆ func_start

OBX_custom_msg_server_func_start* OBX_custom_msg_server_functions::func_start

◆ func_stop

OBX_custom_msg_server_func_stop* OBX_custom_msg_server_functions::func_stop

◆ version

size_t OBX_custom_msg_server_functions::version

Must be initialized with sizeof(OBX_custom_msg_server_functions) to "version" the struct. This allows the library (whi) to detect older or newer versions and react properly.