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

Comparing HostUpdate/HostUpdate.cpp (file contents):
Revision 1 by Douglas Thrift, 2003-11-05T17:58:20-08:00 vs.
Revision 10 by Douglas Thrift, 2003-11-06T20:35:29-08:00

# Line 1 | Line 1
1 < // Host Update
2 < //
3 < // Douglas Thrift
4 < //
5 < // $Id$
6 <
7 < #include "HostUpdate.hpp"
8 <
9 < int main(int argc, char* argv[])
10 < {
11 <        HostUpdate update;
12 <
13 <        return 0;
14 < }
15 <
16 < HostUpdate::HostUpdate()
17 < {
18 <        CgiEnvironment env = cgi.getEnvironment();
19 <
20 <        cout << "Location: " << (env.usingHTTPS() ? "https" : "http") << "://"
21 <                << env.getServerName() << ":" << env.getServerPort() << "/\n\n";
22 <
23 <        form_iterator itor = cgi["host"];
24 <        FormEntry host = *itor;
25 < }
26 <
27 < HostUpdate::~HostUpdate()
28 < {
29 < }
1 > // Host Update
2 > //
3 > // Douglas Thrift
4 > //
5 > // $Id$
6 >
7 > #include "HostUpdate.hpp"
8 > #include "Host.hpp"
9 >
10 > int main(int argc, char* argv[])
11 > {
12 >        HostUpdate update;
13 >
14 >        return 0;
15 > }
16 >
17 > HostUpdate::HostUpdate()
18 > {
19 > /*      CgiEnvironment env = cgi.getEnvironment();
20 >
21 >        cout << "Location: " << (env.usingHTTPS() ? "https" : "http") << "://"
22 >                << env.getServerName() << ":" << env.getServerPort() << "/\n\n";
23 >
24 >        form_iterator itor = cgi["host"];
25 >        FormEntry host = *itor;*/
26 >
27 >        Host host("douglaspc", "", "192.168.0.1");
28 >
29 >        host--;
30 >
31 >        cout << host.getName() << '\n' << host.getAddress();
32 > }
33 >
34 > HostUpdate::~HostUpdate()
35 > {
36 >        //
37 > }

Comparing HostUpdate/HostUpdate.cpp (property svn:eol-style):
Revision 1 by Douglas Thrift, 2003-11-05T17:58:20-08:00 vs.
Revision 10 by Douglas Thrift, 2003-11-06T20:35:29-08:00

# Line 0 | Line 1
1 + native

Comparing HostUpdate/HostUpdate.cpp (property svn:keywords):
Revision 1 by Douglas Thrift, 2003-11-05T17:58:20-08:00 vs.
Revision 10 by Douglas Thrift, 2003-11-06T20:35:29-08:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines