Go to the documentation of this file.
35 #ifndef TOTEMUDP_H_DEFINED
36 #define TOTEMUDP_H_DEFINED
38 #include <sys/types.h>
39 #include <sys/socket.h>
40 #include <qb/qbloop.h>
48 qb_loop_t* poll_handle,
60 void (*iface_change_fn) (
63 unsigned int ring_no),
69 void (*target_set_completed) (
83 unsigned int msg_len);
88 unsigned int msg_len);
93 unsigned int msg_len);
97 unsigned int *iface_count);
105 unsigned short ip_port,
106 unsigned int iface_no);
120 const char *cipher_type,
121 const char *hash_type);
void * totemudp_buffer_alloc(void)
int totemudp_processor_count_set(void *udp_context, int processor_count)
int totemudp_ifaces_get(void *net_context, char ***status, unsigned int *iface_count)
int totemudp_initialize(qb_loop_t *poll_handle, void **udp_context, struct totem_config *totem_config, totemsrp_stats_t *stats, void *context, void(*deliver_fn)(void *context, const void *msg, unsigned int msg_len, const struct sockaddr_storage *system_from), void(*iface_change_fn)(void *context, const struct totem_ip_address *iface_address, unsigned int ring_no), void(*mtu_changed)(void *context, int net_mtu), void(*target_set_completed)(void *context))
Create an instance.
int totemudp_member_remove(void *udpu_context, const struct totem_ip_address *member, int ring_no)
int totemudp_reconfigure(void *udp_context, struct totem_config *totem_config)
void totemudp_buffer_release(void *ptr)
int totemudp_member_add(void *udpu_context, const struct totem_ip_address *local, const struct totem_ip_address *member, int ring_no)
void(*) void udp_context)
int totemudp_send_flush(void *udp_context)
int totemudp_crypto_set(void *udp_context, const char *cipher_type, const char *hash_type)
int totemudp_token_target_set(void *udp_context, unsigned int nodeid)
The totem_ip_address struct.
void totemudp_net_mtu_adjust(void *udp_context, struct totem_config *totem_config)
int totemudp_finalize(void *udp_context)
struct srp_addr system_from
int totemudp_mcast_flush_send(void *udp_context, const void *msg, unsigned int msg_len)
int totemudp_mcast_noflush_send(void *udp_context, const void *msg, unsigned int msg_len)
int totemudp_iface_check(void *udp_context)
int totemudp_iface_set(void *net_context, const struct totem_ip_address *local_addr, unsigned short ip_port, unsigned int iface_no)
int totemudp_recv_flush(void *udp_context)
int totemudp_recv_mcast_empty(void *udp_context)
int totemudp_token_send(void *udp_context, const void *msg, unsigned int msg_len)