ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdate/Host.hpp
(Generate patch)

Comparing HostUpdate/Host.hpp (file contents):
Revision 12 by Douglas Thrift, 2003-11-06T23:43:01-08:00 vs.
Revision 14 by Douglas Thrift, 2003-11-07T23:04:39-08:00

# Line 13 | Line 13
13  
14   #include <sys/socket.h>
15   #include <netdb.h>
16 + #include <netinet/in.h>
17 + #include <arpa/inet.h>
18  
19   #else
20  
# Line 46 | Line 48 | public:
48          string getName() const { return name; }
49          string getAddress() const { return inet_ntoa(*address); }
50          string getPlatform() const { return platform; }
51 <        void operator++();
52 <        void operator++(int) { operator++(); }
53 <        void operator--();
54 <        void operator--(int) { operator--(); }
51 >        bool operator==(const Host& host) const;
52 >        bool operator!=(const Host& host) const { return !(*this == host); }
53 >        bool operator<(const Host& host) const { return this->host < host.host; }
54 >        bool operator>(const Host& host) const { return this->host > host.host; }
55 >        Host operator++();
56 >        Host operator++(int);
57 >        Host operator--();
58 >        Host operator--(int);
59   };
60  
61   #endif // _Host_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines