ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Indexer.cpp
(Generate patch)

Comparing trunk/Search/Indexer.cpp (file contents):
Revision 13 by douglas, 2002-12-06T12:03:05-08:00 vs.
Revision 14 by douglas, 2002-12-07T00:19:03-08:00

# Line 89 | Line 89 | void Indexer::index(URL& url, ofstream&
89  
90                  if (!restricted(url))
91                  {
92 <                        if (http.connect(url))
92 >                        if (http.handle(url))
93                          {
94                                  if (http.good())
95                                  {
# Line 165 | Line 165 | void Indexer::robots(URL& url)
165          URL robots = url;
166          robots.setPath("/robots.txt");
167  
168 <        cout << "Checking " << robots << "..." << flush;
169 <
170 <        if (http.connect(robots))
168 >        if (http.handle(robots))
169          {
170 +                cout << "Checking " << robots << "..." << flush;
171 +
172                  string line;
173                  do http.getline(line); while (http.good() && line != "");
174  
# Line 282 | Line 282 | void Indexer::robots(URL& url)
282                  default:
283                          break;
284                  }
285 +
286 +                cout << "done.\n";
287          }
288  
289          http.clear();
290  
291          checked.insert(url.getAddress() += url.getPort() != 80 ? ":" +
292                  url.getPort() : "");
291
292        cout << "done.\n";
293   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines