2 .\" * Copyright (c) 2004 MontaVista Software, Inc.
4 .\" * All rights reserved.
6 .\" * Author: Steven Dake (sdake@mvista.com)
8 .\" * This software licensed under BSD license, the text of which follows:
10 .\" * Redistribution and use in source and binary forms, with or without
11 .\" * modification, are permitted provided that the following conditions are met:
13 .\" * - Redistributions of source code must retain the above copyright notice,
14 .\" * this list of conditions and the following disclaimer.
15 .\" * - Redistributions in binary form must reproduce the above copyright notice,
16 .\" * this list of conditions and the following disclaimer in the documentation
17 .\" * and/or other materials provided with the distribution.
18 .\" * - Neither the name of the MontaVista Software, Inc. nor the names of its
19 .\" * contributors may be used to endorse or promote products derived from this
20 .\" * software without specific prior written permission.
22 .\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 .\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 .\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 .\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 .\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 .\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 .\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 .\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
32 .\" * THE POSSIBILITY OF SUCH DAMAGE.
34 .TH EVS_INITIALIZE 3 2004-08-31 "openais Man Page" "Openais Programmer's Manual"
36 evs_initialize \- Create a new connection to the EVS service
38 .B #include <openais/evs.h>
40 .BI "int evs_initialize(evs_handle_t *" handle ", evs_callbacks_t *" callbacks ");
44 function is used to initialize a connection to the extended virtual synchrony API.
46 Each application may have several connections to the EVS API. Each application
49 argument to uniquely identify the connection. The
51 argument is then used in other function calls to identify the connection to be used
52 for communication with the EVS service.
54 Every time an EVS event occurs, one of the callbacks specified by the argument
56 is called. The callback functions are described by the following type definitions:
63 typedef void (*evs_deliver_fn_t) (
64 struct evs_address source_addr,
68 typedef void (*evs_confchg_fn_t) (
69 struct evs_address *member_list, int member_list_entries,
70 struct evs_address *left_list, int left_list_entries,
71 struct evs_address *joined_list, int joined_list_entries);
80 argument is of the type:
87 evs_deliver_fn_t evs_deliver_fn;
88 evs_confchg_fn_t evs_confchg_fn;
95 When a configuration change occurs or a message is to be delivered one of the callbacks
98 function. If a configuration change occurs,
100 is called. If a delivery of a message occurs,
114 unsigned short family;
115 unsigned char addr[TOTEMIP_ADDRLEN];
122 where nodeid is a 32 bit unique node identifier, family is of the value AF_INET for an IPV4 network, or AF_INET6 for an IPV6 network, and addr is a 32 bit address for an IPV4 network, or 128 bit address for an IPV6 network.
126 This call returns the EVS_OK value if successful, otherwise an error is returned.
129 The errors are undocumented.
131 .BR evs_overview (8),
132 .BR evs_finalize (3),
134 .BR evs_dispatch (3),
137 .BR evs_mcast_joined (3),
138 .BR evs_mcast_groups (3),
139 .BR evs_mmembership_get (3)