Distributed Hash Table File System for Linux








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 Wednesday, 09-Jan-2008 20:02:30 CET