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.h File Reference

Basic interface to Soap services. More...

#include <sys/time.h>
#include <limits.h>
#include <errno.h>

Go to the source code of this file.

Classes

struct  ip_addr_t
struct  _soap_event

Defines

#define DEFAULT_MINISOAP_PORT   8000
#define NET_ADDR_LEN   23
#define TYPE_STR_LEN   10
#define MAX_TYPE_NAME   128
#define TIME_STR_LEN   30
#define EVENT_DATA_LEN   8192
#define MAX_EVENT_LEN

Typedefs

typedef _soap_event SoapEvent
typedef void(* cmd_callback_t )(SoapEvent *)

Enumerations

enum  SoapMsgType { Invalid_Msg = -1, Event_Msg = 0, Command_Msg = 1 }
enum  SoapDataType {
  Invalid_Type = -1, Soap_Char = 0, Soap_Short, Soap_Int,
  Soap_Long, Soap_Long_Long, Soap_UChar, Soap_UShort,
  Soap_UInt, Soap_ULong, Soap_ULong_Long, Soap_Float,
  Soap_Double, Soap_Long_Double
}

Functions

int quitting (void)
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)
int get_gateways (ip_addr_t gateways[], unsigned int size)

Variables

char my_ip_addr [NET_ADDR_LEN]
pthread_t soap_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.h.


Define Documentation

#define DEFAULT_MINISOAP_PORT   8000
 

Definition at line 43 of file minisoap.h.

#define EVENT_DATA_LEN   8192
 

Definition at line 49 of file minisoap.h.

Referenced by produce().

#define MAX_EVENT_LEN
 

Value:

Definition at line 50 of file minisoap.h.

Referenced by raise_soap_event().

#define MAX_TYPE_NAME   128
 

Definition at line 47 of file minisoap.h.

Referenced by produce().

#define NET_ADDR_LEN   23
 

Definition at line 45 of file minisoap.h.

#define TIME_STR_LEN   30
 

Definition at line 48 of file minisoap.h.

#define TYPE_STR_LEN   10
 

Definition at line 46 of file minisoap.h.


Typedef Documentation

typedef void(* cmd_callback_t)(SoapEvent *)
 

Definition at line 213 of file minisoap.h.

typedef struct _soap_event SoapEvent
 


Enumeration Type Documentation

enum SoapDataType
 

Enumerator:
Invalid_Type 
Soap_Char 
Soap_Short 
Soap_Int 
Soap_Long 
Soap_Long_Long 
Soap_UChar 
Soap_UShort 
Soap_UInt 
Soap_ULong 
Soap_ULong_Long 
Soap_Float 
Soap_Double 
Soap_Long_Double 

Definition at line 71 of file minisoap.h.

enum SoapMsgType
 

Enumerator:
Invalid_Msg 
Event_Msg 
Command_Msg 

Definition at line 64 of file minisoap.h.


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 quitting void   ) 
 

Definition at line 77 of file sensor_ipc.c.

Referenced by main().

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

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.