|
|
|
|
/home/brennan/n-sim/Vaike/linux/system-addons/networking/mesh_protocol.h File ReferenceWSN mesh network protocol registry. More...
#include <netinet/in.h>
#include <pthread.h>
#include "avl.h"
Go to the source code of this file.
|
Classes |
struct | _protocol |
Defines |
#define | PROTO_NAMELEN 64 |
Typedefs |
typedef _protocol | protocol_t |
Functions |
u_int64_t | get_current_time (void) |
int | add_protocol (struct _self *self, char *name, int id, char *path, unsigned int tmo, unsigned char pro, unsigned char re, char *discovery_fctn, char *route_send_fctn, char *route_recv_fctn, char *socket_mod_fctn) |
int | delete_protocol (struct _self *self, char *string) |
protocol_t * | protocol_by_string (struct _self *self, char *string) |
protocol_t * | protocol_by_id (struct _self *self, int id) |
int | recv_mesh_discovery (protocol_t *proto, int sd, int num_links) |
ssize_t | send_routes (struct _self *self, int sd, struct _db *db, unsigned int num_links, struct sockaddr_in *to) |
ssize_t | receive_routes (int sd, struct _db *db, unsigned int num_links, struct sockaddr_in *from, struct msghdr *msg_header, size_t ctl_msg_size) |
Detailed Description
WSN mesh network protocol registry.
- Revision
- 1.2
Original Author: Sean M. Brennan <brennan@lanl.gov> - Author
- sean_m_brennan
Created: August 1, 2007 - Date
- 2008/02/05 19:14:30
Definition in file mesh_protocol.h.
Define Documentation
Typedef Documentation
Function Documentation
int add_protocol |
( |
struct _self * |
self, |
|
|
char * |
name, |
|
|
int |
id, |
|
|
char * |
path, |
|
|
unsigned int |
tmo, |
|
|
unsigned char |
pro, |
|
|
unsigned char |
re, |
|
|
char * |
discovery_fctn, |
|
|
char * |
route_send_fctn, |
|
|
char * |
route_recv_fctn, |
|
|
char * |
socket_mod_fctn |
|
) |
|
|
|
Definition at line 58 of file mesh_protocol.c.
References discover_network(), _protocol::discover_thread, _self::last_p, _protocol::lib_handle, _protocol::mesh_init_discovery, _protocol::mesh_route_recv, _protocol::mesh_route_send, _protocol::name, _protocol::proactive, PROTO_NAMELEN, _self::protocols, _protocol::reactive, _protocol::sensor, _protocol::timeout, and _protocol::unique_id. |
int delete_protocol |
( |
struct _self * |
self, |
|
|
char * |
string |
|
) |
|
|
u_int64_t get_current_time |
( |
void |
|
) |
|
|
ssize_t receive_routes |
( |
int |
sd, |
|
|
struct _db * |
db, |
|
|
unsigned int |
num_links, |
|
|
struct sockaddr_in * |
from, |
|
|
struct msghdr * |
msg_header, |
|
|
size_t |
ctl_msg_size |
|
) |
|
|
int recv_mesh_discovery |
( |
protocol_t * |
proto, |
|
|
int |
sd, |
|
|
int |
num_links |
|
) |
|
|
ssize_t send_routes |
( |
struct _self * |
self, |
|
|
int |
sd, |
|
|
struct _db * |
db, |
|
|
unsigned int |
num_links, |
|
|
struct sockaddr_in * |
to |
|
) |
|
|
|