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 13 by Douglas Thrift, 2003-11-07T12:17:57-08:00 vs.
Revision 15 by Douglas Thrift, 2003-11-09T16:51:42-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 32 | Line 34 | private:
34   #endif
35          string host;
36          string name;
37 <        struct in_addr* address;
37 >        struct in_addr address;
38          string platform;
39   public:
40          Host(const string& host, const string& name = "", const string& address =
# Line 44 | Line 46 | public:
46          void setPlatform(const string& platform) { this->platform = platform; }
47          string getHost() const { return host; }
48          string getName() const { return name; }
49 <        string getAddress() const { return inet_ntoa(*address); }
49 >        string getAddress() const { return inet_ntoa(address); }
50          string getPlatform() const { return platform; }
51          bool operator==(const Host& host) const;
52          bool operator!=(const Host& host) const { return !(*this == host); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines