Emulation and simulation of
Wireless Sensor Networks


   Project Page






 Hosted by
SourceForge.net Logo

/home/brennan/n-sim/Vaike/linux/system-addons/system/soap/sensor_app.c File Reference

Nearly-meta programming template. More...

#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include "sensor_ipc.h"
#include "sensor_app.h"

Go to the source code of this file.


#define MAX_APPS   1024
#define MAX_DATA   1024


SoapDataType consume (const char *appname, unsigned char data[], size_t *bytes)
void produce (SoapDataType type, unsigned char data[], size_t bytes)


int ipc_data_port
int ipc_cmd_port
const char * my_app

Detailed Description

Nearly-meta programming template.


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


Created: February 8, 2006

2008/02/03 22:00:55

Definition in file sensor_app.c.

Define Documentation

#define MAX_APPS   1024

Definition at line 45 of file sensor_app.c.

#define MAX_DATA   1024

Definition at line 46 of file sensor_app.c.

Function Documentation

SoapDataType consume const char *  appname,
unsigned char  data[],
size_t *  bytes

Definition at line 55 of file sensor_app.c.

References _soap_event::data_type, format, _soap_event::from, Invalid_Type, ipc_cmd_send(), ipc_data_recv(), _soap_event::msg, my_ip_addr, and NET_ADDR_LEN.

void produce SoapDataType  type,
unsigned char  data[],
size_t  bytes

Definition at line 91 of file sensor_app.c.

References _soap_event::data_type, EVENT_DATA_LEN, Event_Msg, _soap_event::from, _soap_event::from_app, _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.

Variable Documentation

int ipc_cmd_port

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

Referenced by main().

int ipc_data_port

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

Referenced by main().

const char* my_app

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

Referenced by main(), and produce().

© 2007, Los Alamos National Security, LLC.