#include <linux/socket.h>
#include <sys/socket.h>
#include <linux/inet.h>
#include <linux/in.h>
Go to the source code of this file.
|
int | r2net_send_message (u32 msg_type, u32 key, void *data, u32 len, u8 target_node, int *status) |
|
int | r2net_send_message_vec (u32 msg_type, u32 key, struct kvec *vec, size_t veclen, u8 target_node, int *status) |
|
int | r2net_register_handler (u32 msg_type, u32 key, u32 max_len, r2net_msg_handler_func *func, void *data, r2net_post_msg_handler_func *post_func, struct list_head *unreg_list) |
|
void | r2net_unregister_handler_list (struct list_head *list) |
|
void | r2net_fill_node_map (unsigned long *map, unsigned bytes) |
|
void | r2net_force_data_magic (struct r2net_msg *, u16, u32) |
|
void | r2net_hb_node_up_manual (int) |
|
struct r2net_node * | r2net_nn_from_num (u8) |
|
int | r2net_register_hb_callbacks (void) |
|
void | r2net_unregister_hb_callbacks (void) |
|
int | r2net_start_listening (struct r2nm_node *node) |
|
void | r2net_stop_listening (struct r2nm_node *node) |
|
void | r2net_disconnect_node (struct r2nm_node *node) |
|
int | r2net_num_connected_peers (void) |
|
int | r2net_init (void) |
|
void | r2net_exit (void) |
|
#define R2NET_IDLE_TIMEOUT_MS_DEFAULT 30000 |
Definition at line 63 of file tcp.h.
#define R2NET_KEEPALIVE_DELAY_MS_DEFAULT 2000 |
Definition at line 62 of file tcp.h.
Definition at line 57 of file tcp.h.
#define R2NET_RECONNECT_DELAY_MS_DEFAULT 2000 |
Definition at line 60 of file tcp.h.
Definition at line 52 of file tcp.h.
Definition at line 54 of file tcp.h.
- Enumerator:
R2NET_DRIVER_UNINITED |
|
R2NET_DRIVER_READY |
|
Definition at line 94 of file tcp.h.
void r2net_fill_node_map |
( |
unsigned long * |
map, |
|
|
unsigned |
bytes |
|
) |
| |
void r2net_hb_node_up_manual |
( |
int |
| ) |
|
int r2net_num_connected_peers |
( |
void |
| ) |
|
int r2net_register_hb_callbacks |
( |
void |
| ) |
|
void r2net_unregister_hb_callbacks |
( |
void |
| ) |
|