43 #ifndef TOTEMNET_H_DEFINED 44 #define TOTEMNET_H_DEFINED 46 #include <sys/types.h> 47 #include <sys/socket.h> 51 #define TOTEMNET_NOFLUSH 0 52 #define TOTEMNET_FLUSH 1 58 qb_loop_t *poll_handle,
68 unsigned int msg_len),
70 void (*iface_change_fn) (
74 void (*target_set_completed) (
88 unsigned int msg_len);
93 unsigned int msg_len);
98 unsigned int msg_len);
122 const char *cipher_type,
123 const char *hash_type);
int totemnet_mcast_flush_send(void *net_context, const void *msg, unsigned int msg_len)
int totemnet_recv_mcast_empty(void *net_context)
The totem_ip_address struct.
unsigned char addr[TOTEMIP_ADDRLEN]
int totemnet_iface_check(void *net_context)
void * totemnet_buffer_alloc(void *net_context)
int totemnet_finalize(void *net_context)
int totemnet_net_mtu_adjust(void *net_context, struct totem_config *totem_config)
int totemnet_recv_flush(void *net_context)
const char * totemnet_iface_print(void *net_context)
int totemnet_mcast_noflush_send(void *net_context, const void *msg, unsigned int msg_len)
int totemnet_token_send(void *net_context, const void *msg, unsigned int msg_len)
int totemnet_member_set_active(void *net_context, const struct totem_ip_address *member, int active)
int totemnet_token_target_set(void *net_context, const struct totem_ip_address *token_target)
int totemnet_iface_get(void *net_context, struct totem_ip_address *addr)
int totemnet_member_remove(void *net_context, const struct totem_ip_address *member)
int totemnet_send_flush(void *net_context)
int totemnet_initialize(qb_loop_t *poll_handle, void **net_context, struct totem_config *totem_config, totemsrp_stats_t *stats, int interface_no, void *context, void(*deliver_fn)(void *context, const void *msg, unsigned int msg_len), void(*iface_change_fn)(void *context, const struct totem_ip_address *iface_address), void(*target_set_completed)(void *context))
Create an instance.
int totemnet_processor_count_set(void *net_context, int processor_count)
int totemnet_crypto_set(void *net_context, const char *cipher_type, const char *hash_type)
int totemnet_member_add(void *net_context, const struct totem_ip_address *member)
void totemnet_buffer_release(void *net_context, void *ptr)