Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #ifndef IPROUTE
  2. #define IPROUTE
  3.  
  4.  
  5.  
  6. //This class defines an entry of the routing table
  7. class iproute
  8. {
  9.     public:
  10.     iproute ();
  11.     iproute (unsigned int addr, unsigned int mask, unsigned int gw);
  12.     unsigned int getAddr ();
  13.     unsigned int getMask ();
  14.     unsigned int getGw ();
  15.     void setAddr (unsigned int addr);
  16.     void setMask (unsigned int mask);
  17.     void setGw (unsigned int gw);
  18.     void print_entry ();
  19.    
  20.     private:
  21.     unsigned int _addr;
  22.     unsigned int _mask;
  23.     unsigned int _gw;
  24. };
  25.  
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement