1QB_IPCS_CREATE(3)          libqb Programmer's Manual         QB_IPCS_CREATE(3)
2
3
4

NAME

6       qb_ipcs_create - Create a new IPC server.
7
8

SYNOPSIS

10       #include <qb/qbipcs.h>
11
12       qb_ipcs_service_t * qb_ipcs_create(
13           const char                        *name,   /* for clients to connect to. */
14           int32_t                            service_id,         /* an integer to associate with the service */
15           enum qb_ipc_type                   type,   /* transport type. */
16           struct qb_ipcs_service_handlers   *handlers       /* callbacks. */
17       );
18

PARAMS

20       name       for clients to connect to.
21
22       service_id an integer to associate with the service
23
24       type       transport type.
25
26       handlers   callbacks.
27

DESCRIPTION

STRUCTURES

30       struct qb_ipcs_service_handlers {
31           qb_ipcs_connection_accept_fn     connection_accept;
32           qb_ipcs_connection_created_fn    connection_created;
33           qb_ipcs_msg_process_fn           msg_process;
34           qb_ipcs_connection_closed_fn     connection_closed;
35           qb_ipcs_connection_destroyed_fn  connection_destroyed;
36       };
37

RETURN VALUE

39       the new service instance.
40

SEE ALSO

42       qb_ipcs_response_send(3), qb_ipcs_ref(3), qb_ipcs_unref(3),
43       qb_ipcs_connection_auth_set(3), qb_ipcs_service_context_get(3),
44       qb_ipcs_connection_ref(3), qb_ipcs_connection_next_get(3),
45       qb_ipcs_stats_get(3), qb_ipcs_connection_unref(3),
46       qb_ipcs_context_set(3), qb_ipcs_poll_handlers_set(3),
47       qb_ipcs_request_rate_limit(3), qb_ipcs_disconnect(3),
48       qb_ipcs_connection_first_get(3), qb_ipcs_enforce_buffer_size(3),
49       qb_ipcs_destroy(3), qb_ipcs_event_send(3),
50       qb_ipcs_connection_stats_get_2(3), qb_ipcs_service_context_set(3),
51       qb_ipcs_connection_stats_get(3), qb_ipcs_service_id_get(3),
52       qb_ipcs_context_get(3), qb_ipcs_connection_get_buffer_size(3),
53       qb_ipcs_run(3), qb_ipcs_event_sendv(3),
54       qb_ipcs_connection_service_context_get(3), qb_ipcs_response_sendv(3)
55
57       Copyright (C) 2010-2020 Red Hat, Inc.
58
59
60
61LIBQB                             2022-03-23                 QB_IPCS_CREATE(3)
Impressum