protocol_node.c File Reference
#include "magma.h"Defines | |
| #define | INCLUDE_FLARE_INTERNALS |
Functions | |
| int | join_network (char *ipaddr, int port) |
| int | node_join_network (int s) |
| int | node_transmit_node (int s) |
| int | node_get_key (int s) |
| int | node_drop_key (int s) |
| int | node_put_key (int s) |
| void | manage_node (int s, struct sockaddr_in *peer, socklen_t *peer_len) |
Define Documentation
| #define INCLUDE_FLARE_INTERNALS |
Function Documentation
| int join_network | ( | char * | ipaddr, | |
| int | port | |||
| ) |
join the net syncing from specified node ipaddr and port.
- Parameters:
-
ipaddr string rappresentation of remote server IP address port remote server port
- Returns:
- result can be safely ignored since exit(N) is called in case of failure.
| void manage_node | ( | int | s, | |
| struct sockaddr_in * | peer, | |||
| socklen_t * | peer_len | |||
| ) |
manages an incoming node connection.
- Parameters:
-
s network socket peer remote peer IP address peer_len size of *peer structure
| int node_drop_key | ( | int | s | ) |
| int node_get_key | ( | int | s | ) |
| int node_join_network | ( | int | s | ) |
| int node_put_key | ( | int | s | ) |
| int node_transmit_node | ( | int | s | ) |
This file last modified Friday, 04-Jan-2008 18:10:35 CET