home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 June / PCpro_2006_06.ISO / files / mstools / MSRMesh-VirtualWIFI.MSI / virtualwifiservice.h13 < prev    next >
Encoding:
Text File  |  2005-06-24  |  831 b   |  36 lines

  1. /*
  2.  * Author   : Ranveer Chandra
  3.  * Directory: VirtualWiFi_Root\Service
  4.  * File Name: VirtualWiFiservice.h
  5.  * Purpose  : Defines structures and values used by the Service
  6.  */
  7.  
  8. #pragma once
  9.  
  10. #include <malloc.h>
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include <ctype.h>
  14. #include <sys/types.h>
  15. #include <windows.h>
  16. #include <io.h>
  17. #include <string.h>
  18.  
  19. #define MAX_VirtualWiFi_NODES    5
  20. #define NUM_RETRIES           10
  21.  
  22. #define INIT_TIME             600 // in milliseconds
  23. #define SWITCH_TIME           500 // in milliseconds
  24. #define STAY_TIME             700 // in milliseconds
  25.  
  26. #define ADAPTIVE_WINDOW_SIZE  5
  27.  
  28. typedef struct {
  29.     int timeToSwitchToNetwork;
  30.     int timeInNetwork;
  31.     int bufferLengthHistory[ADAPTIVE_WINDOW_SIZE];
  32.     int currentWindowPosition;
  33.     int totalPacketsOverWindow;
  34. } RemoteNode;
  35.  
  36.