logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

qb_ipcs_create - Create a new IPC server.

Description

Name

       qb_ipcs_create - Create a new IPC server.

Params

nameforclientstoconnectto.service_idanintegertoassociatewiththeservicetypetransporttype.handlerscallbacks.

Return Value

       the new service instance.

See Also

qb_ipcs_response_send(3), qb_ipcs_ref(3), qb_ipcs_unref(3), qb_ipcs_connection_auth_set(3),
       qb_ipcs_service_context_get(3), qb_ipcs_connection_ref(3), qb_ipcs_connection_next_get(3),
       qb_ipcs_stats_get(3), qb_ipcs_connection_unref(3), qb_ipcs_context_set(3), qb_ipcs_poll_handlers_set(3),
       qb_ipcs_request_rate_limit(3), qb_ipcs_disconnect(3), qb_ipcs_connection_first_get(3),
       qb_ipcs_enforce_buffer_size(3), qb_ipcs_destroy(3), qb_ipcs_event_send(3),
       qb_ipcs_connection_stats_get_2(3), qb_ipcs_service_context_set(3), qb_ipcs_connection_stats_get(3),
       qb_ipcs_service_id_get(3), qb_ipcs_context_get(3), qb_ipcs_connection_get_buffer_size(3), qb_ipcs_run(3),
       qb_ipcs_event_sendv(3), qb_ipcs_connection_service_context_get(3), qb_ipcs_response_sendv(3)

Structures

structqb_ipcs_service_handlers{qb_ipcs_connection_accept_fnconnection_accept;qb_ipcs_connection_created_fnconnection_created;qb_ipcs_msg_process_fnmsg_process;qb_ipcs_connection_closed_fnconnection_closed;qb_ipcs_connection_destroyed_fnconnection_destroyed;};

Synopsis

#include<qb/qbipcs.h>qb_ipcs_service_t*qb_ipcs_create(
           constchar*name,        /* for clients to connect to. */
           int32_tservice_id,  /* an integer to associate with the service */
           enumqb_ipc_typetype,        /* transport type. */
           structqb_ipcs_service_handlers*handlers     /* callbacks. */
       );

See Also