qb_ipcs_create3
Create a new ipc server.
Usage
#include <qb/qbipcs.h>
qb_ipcs_service_t * qb_ipcs_create(
const char *name, /* for clients to connect to. */
int32_t service_id, /* an integer to associate with the service */
enum qb_ipc_type type, /* transport type. */
struct qb_ipcs_service_handlers *handlers /* callbacks. */
);
Params
name for clients to connect to.
service_id an integer to associate with the service
type transport type.
handlers callbacks.
Overview
Structures
struct qb_ipcs_service_handlers {
qb_ipcs_connection_accept_fn connection_accept;
qb_ipcs_connection_created_fn connection_created;
qb_ipcs_msg_process_fn msg_process;
qb_ipcs_connection_closed_fn connection_closed;
qb_ipcs_connection_destroyed_fn connection_destroyed;
};
Return value
the new service instance.
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.