Code Search for Developers
 
 
  

filemover_shared.h from EmStar at Krugle


Show filemover_shared.h syntax highlighted

#ifndef _FILEMOVER_SHARED_H_
#define _FILEMOVER_SHARED_H_


/*
 * Functions, structs, and defines for dealing with meta data
 */
#define FILEMOVER_META_VERSION1 0x1
#define FILEMOVER_META_VERSION2 0x2
#define FILEMOVER_META_VERSION_STRING_SIZE 6
#define FILEMOVER_META_VERSION1_SIZE 2048
#define FILEMOVER_META_VERSION2_SIZE 2048

const static char FILEMOVER_META_VERSION1_STRING[] = "fmv01";
const static char FILEMOVER_META_VERSION2_STRING[] = "fmv02";

typedef struct filemover_meta_header_t {
  char filemover_meta_version;
  char filemover_meta_version_string[FILEMOVER_META_VERSION_STRING_SIZE];
  uint32_t filemover_meta_size;
  uint16_t filemover_num_elements;
  uint64_t file_size;
} __attribute__ ((packed)) filemover_meta_header_t;


typedef struct filemover_meta_entry {
  tcpxfer_done_stats_packet_t stats;
} __attribute__ ((packed)) filemover_meta_entry_t;


typedef struct filemover_meta_entry_v2 {
  tcpxfer_done_stats_packet_t stats;
  struct timeval recevied_at;
} __attribute__ ((packed)) filemover_meta_entry_v2_t;


int filemover_meta_initialize_meta(char *file);
int filemover_meta_check_meta(char *file); 
int filemover_meta_update_meta(char *file, tcpxfer_done_stats_packet_t *stats);



#endif




See more files for this project here

EmStar

EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.

Project homepage: http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other

  dts_shared.h
  dts_sink.h
  dts_util.h
  filemover_shared.h
  tcpxfer_shared.h