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

SYNOPSIS

9       #include <qb/qbipcc.h>
10
11       qb_ipcc_connection_t* qb_ipcc_connect(
12           const char   *name,
13           size_t        max_msg_size
14       );
15

PARAMS

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

DESCRIPTION

RETURN VALUE

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

NOTE

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

SEE ALSO

35       qb_ipcc_send(3), qb_ipcc_sendv_recv(3), qb_ipcc_recv(3),
36       qb_ipcc_event_recv(3), qb_ipcc_fc_enable_max_set(3),
37       qb_ipcc_is_connected(3), qb_ipcc_sendv(3), qb_ipcc_context_set(3),
38       qb_ipcc_context_get(3), qb_ipcc_verify_dgram_max_msg_size(3),
39       qb_ipcc_get_buffer_size(3), qb_ipcc_disconnect(3), qb_ipcc_fd_get(3)
40
42       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
43
44
45
46LIBQB                             2020-07-30                QB_IPCC_CONNECT(3)
Impressum