Sensix
Wireless Sensor Network Middleware



   Home


   Project Page


   Download


   CVS




 Hosted by
Get SENSIX at SourceForge.net. Fast, secure 
and Free Open Source software downloads

/home/brennan/Software/sensix/tools/sim/platform.pc/external_comm.h File Reference

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>

Go to the source code of this file.

Defines

#define COMMAND_PORT   10584
#define EVENT_PORT   10585
#define MAX_CLIENT_CONNECTIONS   4

Functions

void initializeSockets ()
int readTossimCommand (int clifd, int clidx)
void buildTossimEvent (uint16_t moteID, uint16_t type, long long ftime, void *data, unsigned char **msgp, int *lenp)
void sendTossimEvent (uint16_t moteID, uint16_t type, long long ftime, void *data)
int writeTossimEvent (void *data, int datalen, int clifd)
int notifyTaskPosted (char *task)
int notifyEventSignaled (char *event)
int notifyCommandCalled (char *command)
char * currentTime ()
int printTime (char *buf, int len)
int printOtherTime (char *buf, int len, long long int ftime)


Define Documentation

#define COMMAND_PORT   10584

Definition at line 43 of file external_comm.h.

#define EVENT_PORT   10585

Definition at line 44 of file external_comm.h.

#define MAX_CLIENT_CONNECTIONS   4

Definition at line 45 of file external_comm.h.


Function Documentation

void buildTossimEvent ( uint16_t  moteID,
uint16_t  type,
long long  ftime,
void *  data,
unsigned char **  msgp,
int *  lenp 
)

Definition at line 877 of file external_comm.c.

char* currentTime (  ) 

Definition at line 272 of file external_comm.c.

void initializeSockets (  ) 

Definition at line 125 of file external_comm.c.

int notifyCommandCalled ( char *  command  ) 

int notifyEventSignaled ( char *  event  ) 

int notifyTaskPosted ( char *  task  ) 

int printOtherTime ( char *  buf,
int  len,
long long int  ftime 
)

Definition at line 251 of file external_comm.c.

int printTime ( char *  buf,
int  len 
)

Definition at line 268 of file external_comm.c.

int readTossimCommand ( int  clifd,
int  clidx 
)

Definition at line 670 of file external_comm.c.

void sendTossimEvent ( uint16_t  moteID,
uint16_t  type,
long long  ftime,
void *  data 
)

Definition at line 937 of file external_comm.c.

int writeTossimEvent ( void *  data,
int  datalen,
int  clifd 
)

Definition at line 846 of file external_comm.c.


© 2008, Los Alamos National Security, LLC.