home *** CD-ROM | disk | FTP | other *** search
- /*
- * Author : Ranveer Chandra
- * Directory: VirtualWiFi_Root\install
- * File Name: VirtualWiFiservice.h
- * Purpose : Defines structures and values used by the VirtualWiFi Service
- */
-
- #include <malloc.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- #include <sys/types.h>
- #include <windows.h>
- #include <io.h>
- #include <string.h>
-
- #define MAX_VirtualWiFi_NODES 5
- #define NUM_RETRIES 10
-
- #define INIT_TIME 600 // in milliseconds
- #define SWITCH_TIME 500 // in milliseconds
- #define STAY_TIME 700 // in milliseconds
-
- #define ADAPTIVE_WINDOW_SIZE 5
-
- typedef struct {
- int timeToSwitchToNetwork;
- int timeInNetwork;
- int bufferLengthHistory[ADAPTIVE_WINDOW_SIZE];
- int currentWindowPosition;
- int totalPacketsOverWindow;
- } RemoteNode;
-
-