1EVS_MCAST_JOINED(3)Corosync Cluster Engine Programmer's ManuaElVS_MCAST_JOINED(3)
2
3
4
6 evs_join - Multicasts to all groups joined to an handle
7
9 #include <sys/uio.h> #include <corosync/evs.h>
10
11 int evs_mcast_joined(evs_handle_t handle, evs_guraantee_t guarantee,
12 struct iovec *iovec, int iov_len);
13
15 The evs_mcast_joined function is multicast a message to all the groups
16 that have been joined with the evs_join(3) function for the argument
17 handle. Messages that are sent to any of the groups joined to the
18 parameter handle will be delivered to all processors in the system.
19
20 The argument guarantee requests a delivery guarantee for the message to
21 be sent. The evs_guarantee_t type is defined by:
22
23 typedef enum {
24 EVS_TYPE_UNORDERED, /* not implemented */
25 EVS_TYPE_FIFO, /* same as agreed */
26 EVS_TYPE_AGREED, /* implemented */
27 EVS_TYPE_SAFE /* not implemented */
28 } evs_guarantee_t;
29
30 The meanings of the evs_guarantee_t typedef are:
31
32 EVS_GUARANTEE_UNORDERED
33 Messages are guaranteed to be delivered, but with no particular
34 order. This mode is unimplemented in the EVS library.
35
36 EVS_GUARANTEE_FIFO
37 Messages are guaranteed to be delivered in first sent first
38 delivery order from one one. In fact, this guarantee is actu‐
39 ally the AGREED guarantee.
40
41 EVS_GUARANTEE_AGREED
42 All processors must agree on the order of delivery. If a mes‐
43 sage is sent from two or more processors at about the same time,
44 the delivery will occur in the same order to all processors.
45
46 EVS_GUARANTEE_SAFE
47 All processors must agree on the order of delivery. Further all
48 processors must have a copy of the message before any delivery
49 takes place. This mode is unimplemented in the EVS library.
50
51 The iovec argument describes the scatter/gather list which is used to
52 transmit a message. This is a standard socket structure described by:
53
54 struct iovec
55 {
56 void *iov_base; /* Pointer to data. */
57 unsigned int iov_len; /* Length of data. */
58 };
59
60 The iovlen argument describes the number of entires in the iovec argu‐
61 ment.
62
63
65 This call returns the EVS_OK value if successful, otherwise an error is
66 returned.
67
69 The errors are undocumented.
70
72 evs_overview(8), evs_initialize(3), evs_finalize(3), evs_fd_get(3),
73 evs_dispatch(3), evs_leave(3), evs_join(3), evs_mcast_groups(3),
74 evs_membership_get(3) evs_context_get(3) evs_context_set(3)
75
76corosync Man Page 3004-08-31 EVS_MCAST_JOINED(3)