ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdate/Host.hpp
Revision: 9
Committed: 2003-11-05T22:59:04-08:00 (21 years, 7 months ago) by Douglas Thrift
File size: 657 byte(s)
Log Message:
Added Host and stuff.

File Contents

# Content
1 // Host Update
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _Host_h_
8 #define _Host_h_
9
10 #include "HostUpdate.hpp"
11
12 #ifndef _WIN32
13 #include <sys/types.h>
14 #include <sys/socket.h>
15 #include <netdb.h>
16 #else
17 #include <Winsock2.h>
18 #include <Ws2tcpip.h>
19 #endif
20
21 class Host
22 {
23 private:
24 string host;
25 string name;
26 struct sockaddr* address;
27 public:
28 Host();
29 ~Host();
30 void setHost(const string& host) { this->host = host; }
31 void setName(const string& name);
32 void setAddress(const string& address);
33 string getHost() const { return host; }
34 string getName() const { return name; }
35 string getAddress() const;
36 };
37
38 #endif // _Host_h_