#ifndef DOD_H
#define DOD_H

#define StartDOD   "StartDOD.CMD"
#define StopDOD    "StopDOD.CMD"
//#define DODCfg     "DOD.CFG"

#include "baseincs.h"
#include "client.h"
//#include "network.h"

#pragma pack(2)
struct ifact
    {
    short ifNumber;
    struct iftable
        {
        ULONG ifa_addr;
        short  ifIndex;
        ULONG ifa_netm;
        ULONG ifa_brdcast;
        } iftable[IFMIB_ENTRIES];
     };

// Dial on Demand support
class DialOnDemand : public Client
   {
   protected:
      int DOD_On, DOD_Sleeptime, nl;

   public:
      int rweonline();
      // Checking to see if we're connected
      // Returns 1 if online, 0 if not

      void ensureonline();
      // establishes connection if not connected already.

      void checkoffline();
      // disconnects if a connection had to be made before.
   };

#endif
