1CPG_MCAST_JOINED(3)       Openais Programmer's Manual      CPG_MCAST_JOINED(3)
2
3
4

NAME

6       cpg_join - Multicasts to all groups joined to a handle
7

SYNOPSIS

9       #include <sys/uio.h> #include <openais/cpg.h>
10
11       int  cpg_mcast_joined(cpg_handle_t  handle,  cpg_gurantee_t  guarantee,
12       struct iovec *iovec, int iov_len);
13

DESCRIPTION

15       The cpg_mcast_joined function is multicast a message to  all  the  pro‐
16       cesses  that have been joined with the cpg_join(3) funtion for the same
17       group name.  handle.  Messages that are  sent  to  any  of  the  groups
18       joined to the parameter handle will be delivered to all subscribed pro‐
19       cesses in the system.
20
21       The argument guarantee requests a delivery guarantee for the message to
22       be sent.  The cpg_guarantee_t type is defined by:
23
24              typedef enum {
25                      CPG_TYPE_UNORDERED,     /* not implemented */
26                      CPG_TYPE_FIFO,          /* same as agreed */
27                      CPG_TYPE_AGREED,        /* implemented */
28                      CPG_TYPE_SAFE           /* not implemented */
29              } cpg_guarantee_t;
30
31       The meanings of the cpg_gaurantee_t typedef are:
32
33       CPG_GUARANTEE_UNORDERED
34              Messages  are guaranteed to be delivered, but with no particular
35              order.  This mode is unimplemented in the CPG library.
36
37       CPG_GUARANTEE_FIFO
38              Messages are guaranteed to be  delivered  in  first  sent  first
39              delivery  order  from one one.  In fact, this guarantee is actu‐
40              ally the AGREED guarantee.
41
42       CPG_GUARANTEE_AGREED
43              All processors must agree on the order of delivery.  If  a  mes‐
44              sage is sent from two or more processors at about the same time,
45              the delivery will occur in the same order to all processors.
46
47       CPG_GUARANTEE_SAFE
48              All processors must agree on the order of delivery.  Further all
49              processors  must  have a copy of the message before any delivery
50              takes place.  This mode is unimplemented in the CPG library.
51
52       The iovec argument describes the scatter/gather list which is  used  to
53       transmit a message.  This is a standard socket structure described by:
54
55              struct iovec
56              {
57                      void *iov_base;     /* Pointer to data.  */
58                      size_t iov_len;     /* Length of data.  */
59              };
60
61       The  iovlen argument describes the number of entires in the iovec argu‐
62       ment.
63
64

RETURN VALUE

66       This call returns the CPG_OK value if successful, otherwise an error is
67       returned.
68

ERRORS

70       The errors are undocumented.
71

SEE ALSO

73       cpg_overview(8),   cpg_initialize(3),  cpg_finalize(3),  cpg_fd_get(3),
74       cpg_dispatch(3), cpg_leave(3), cpg_join(3), cpg_membership_get(3)
75
76openais Man Page                  3004-08-31               CPG_MCAST_JOINED(3)
Impressum