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

NAME

6       qb_ipcc_connect - Create a connection to an IPC service.
7
8

SYNOPSIS

10       #include <qb/qbipcc.h>
11
12       qb_ipcc_connection_t* qb_ipcc_connect(
13           const char   *name,   /* name of the service. */
14           size_t        max_msg_size           /* biggest msg size. */
15       );
16

PARAMS

18       name         name of the service.
19
20       max_msg_size biggest msg size.
21

DESCRIPTION

RETURN VALUE

24       NULL (error: see errno) or a connection object.
25

NOTE

27       It  is recommended to do a one time check on the max_msg_size value us‐
28       ing qb_ipcc_verify_dgram_max_msg_size BEFORE calling the connect  func‐
29       tion  when  IPC_SOCKET  is in use. Some distributions while allow large
30       message buffers to be set on the socket, but not  actually  honor  them
31       because  of  kernel state values. The qb_ipcc_verify_dgram_max_msg_size
32       function both sets the socket buffer size and verifies it  by  doing  a
33       send/recv.
34

SEE ALSO

36       qb_ipcc_send(3), qb_ipcc_sendv_recv(3), qb_ipcc_recv(3),
37       qb_ipcc_event_recv(3), qb_ipcc_fc_enable_max_set(3),
38       qb_ipcc_is_connected(3), qb_ipcc_auth_get(3), qb_ipcc_sendv(3),
39       qb_ipcc_context_set(3), qb_ipcc_context_get(3),
40       qb_ipcc_verify_dgram_max_msg_size(3), qb_ipcc_get_buffer_size(3),
41       qb_ipcc_disconnect(3), qb_ipcc_fd_get(3)
42
44       Copyright (C) 2010-2020 Red Hat, Inc.
45
46
47
48LIBQB                             2021-11-12                QB_IPCC_CONNECT(3)
Impressum