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/minisoap.c File Reference

Basic interface to Soap services. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <math.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/ether.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <asm/types.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <pthread.h>
#include <zlib.h>
#include "minisoap.h"
#include "sensor_ipc.h"

Go to the source code of this file.

Classes

struct  route_info

Defines

#define _minisoap_impl_
#define _GNU_SOURCE
#define CONN_BACKLOG   10
#define ESOAPCLIENT   8359
#define MAX_NEIGHBORS   128
#define DISCOVERY_PORT   8359
#define BUFSIZE   8192

Functions

int get_gateways (ip_addr_t gateways[], unsigned int size)
int register_soap_handler (cmd_callback_t handler)
int raise_soap_event (SoapEvent *evt, char *server, int port)
int raise_local_query (SoapEvent *evt, int port)

Variables

char my_ip_addr [NET_ADDR_LEN]
pthread_t soap_thread
pthread_t local_thread


Detailed Description

Basic interface to Soap services.

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:54

Definition in file minisoap.c.


Define Documentation

#define _GNU_SOURCE
 

Definition at line 36 of file minisoap.c.

#define _minisoap_impl_
 

Definition at line 35 of file minisoap.c.

#define BUFSIZE   8192
 

Definition at line 82 of file minisoap.c.

Referenced by get_gateways().

#define CONN_BACKLOG   10
 

Definition at line 65 of file minisoap.c.

#define DISCOVERY_PORT   8359
 

Definition at line 68 of file minisoap.c.

#define ESOAPCLIENT   8359
 

Definition at line 66 of file minisoap.c.

#define MAX_NEIGHBORS   128
 

Definition at line 67 of file minisoap.c.

Referenced by raise_local_query().


Function Documentation

int get_gateways ip_addr_t  gateways[],
unsigned int  size
 

Definition at line 164 of file minisoap.c.

References BUFSIZE, error, and strcmp.

int raise_local_query SoapEvent evt,
int  port
 

Definition at line 586 of file minisoap.c.

References discover_neighbors(), MAX_NEIGHBORS, and raise_soap_event().

int raise_soap_event SoapEvent evt,
char *  server,
int  port
 

Definition at line 440 of file minisoap.c.

References he, MAX_EVENT_LEN, and _soap_event::time.

Referenced by raise_local_query().

int register_soap_handler cmd_callback_t  handler  ) 
 

Definition at line 419 of file minisoap.c.

References local_thread, and soap_thread.

Referenced by main().


Variable Documentation

pthread_t local_thread
 

Definition at line 72 of file minisoap.c.

Referenced by register_soap_handler().

char my_ip_addr[NET_ADDR_LEN]
 

Definition at line 71 of file minisoap.c.

Referenced by consume(), main(), produce(), and sensor_ctl().

pthread_t soap_thread
 

Definition at line 72 of file minisoap.c.

Referenced by main(), and register_soap_handler().


© 2007, Los Alamos National Security, LLC.