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/system/soap/sensor++.h File Reference

Template for SOAP-based publish/subscribe. More...

#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <minisoap.h>
#include <sensor.h>

Go to the source code of this file.

Defines

#define MAX_APPS   1024
#define MAX_DATA   1024

Functions

template<class T>
int consume (const char *appname,< T > data[], unsigned int size)
template<class T>
int produce (< T > data[], unsigned int size)

Variables

int ipc_data_port
int ipc_cmd_port
const char * my_app


Detailed Description

Template for SOAP-based publish/subscribe.

Revision
1.1

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

Author
sean_m_brennan

Created: February 8, 2006

Date
2008/02/03 22:00:55

Definition in file sensor++.h.


Define Documentation

#define MAX_APPS   1024
 

Definition at line 49 of file sensor++.h.

#define MAX_DATA   1024
 

Definition at line 50 of file sensor++.h.


Function Documentation

template<class T>
int consume const char *  appname,
< T >  data[],
unsigned int  size
 

Definition at line 60 of file sensor++.h.

References _soap_event::data_type, format, ipc_cmd_send(), ipc_data_recv(), and _soap_event::msg.

Referenced by sensor_app().

template<class T>
int produce < T >  data[],
unsigned int  size
 

Definition at line 93 of file sensor++.h.

References _soap_event::data_type, EVENT_DATA_LEN, Event_Msg, _soap_event::from, _soap_event::from_app, MAX_TYPE_NAME, _soap_event::msg, my_app, my_ip_addr, NET_ADDR_LEN, PATH_MAX, _soap_event::time, _soap_event::to, _soap_event::to_app, and _soap_event::type.

Referenced by classify().


Variable Documentation

int ipc_cmd_port
 

Definition at line 20 of file vehicle-classify.c.

int ipc_data_port
 

Definition at line 20 of file vehicle-classify.c.

const char* my_app
 

Definition at line 22 of file vehicle-classify.c.


© 2007, Los Alamos National Security, LLC.