N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

/home/brennan/n-sim/Vaike/linux/system-addons/networking/sensor_mesh_daemon.c File Reference

WSN mesh network routing. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <syslog.h>
#include <signal.h>
#include <pthread.h>
#include <errno.h>
#include "sensor_self.h"
#include "mesh_metrics.h"
#include "mesh_discovery.h"
#include "mesh_neighbor.h"
#include "mesh_net.h"
#include "mesh_ipc.h"
#include "mesh_on_demand.h"

Go to the source code of this file.

Defines

#define MESH_APPLICATION   "sensormeshd"
#define MESH_VERSION   "0.3"
#define error()

Functions

void * run_echo (void *arg)
void * run_statistics (void *arg)
void * run_controller (void *arg)
void * discover_neighbors (void *arg)
void * semi_reliability (void *arg)
void * start_on_demand (void *arg)
void * on_demand_timeouts (void *arg)
int main (int argc, char *argv[])


Detailed Description

WSN mesh network routing.

Revision
1.1

Original Author: Sean M. Brennan <brennan@lanl.gov>

Author
sean_m_brennan

Created: August 1, 2007

Date
2008/02/03 22:00:51

Definition in file sensor_mesh_daemon.c.


Define Documentation

 
#define error  ) 
 

Value:

do { \
  fprintf(stderr, "%s (%s:%d) ", MESH_APPLICATION, __FUNCTION__, __LINE__); \
  fprintf(stderr, __VA_ARGS__); \
  fprintf(stderr, ".\n"); \
} while (0)

Definition at line 68 of file sensor_mesh_daemon.c.

#define MESH_APPLICATION   "sensormeshd"
 

Definition at line 65 of file sensor_mesh_daemon.c.

#define MESH_VERSION   "0.3"
 

Definition at line 66 of file sensor_mesh_daemon.c.


Function Documentation

void* discover_neighbors void *  arg  ) 
 

Definition at line 105 of file sensor_mesh_daemon.c.

References neighbor_discovery().

Referenced by raise_local_query().

int main int  argc,
char *  argv[]
 

Definition at line 178 of file sensor_mesh_daemon.c.

References init_self(), and setup_sigsegv().

void* on_demand_timeouts void *  arg  ) 
 

Definition at line 135 of file sensor_mesh_daemon.c.

References packet_usage().

void* run_controller void *  arg  ) 
 

Definition at line 95 of file sensor_mesh_daemon.c.

void* run_echo void *  arg  ) 
 

Definition at line 75 of file sensor_mesh_daemon.c.

References echo_statistics().

void* run_statistics void *  arg  ) 
 

Definition at line 85 of file sensor_mesh_daemon.c.

References gather_statistics().

void* semi_reliability void *  arg  ) 
 

Definition at line 115 of file sensor_mesh_daemon.c.

References reliable_net().

void* start_on_demand void *  arg  ) 
 

Definition at line 125 of file sensor_mesh_daemon.c.

References on_demand().


© 2007, Los Alamos National Security, LLC.