|
From: Christian P. <cp...@us...> - 2005-01-14 14:58:17
|
Update of /cvsroot/pclasses/pclasses2/src/Net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21590/src/Net Modified Files: HTTPClient.cpp Log Message: Renamed some members of HTTPResponse. Index: HTTPClient.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Net/HTTPClient.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- HTTPClient.cpp 7 Jan 2005 13:41:23 -0000 1.1 +++ HTTPClient.cpp 14 Jan 2005 14:58:05 -0000 1.2 @@ -67,9 +67,9 @@ return _header; } -HTTPResponse::HTTPResponse(HTTPClient& client, const std::string& proto, - int code, const std::string& resp) -: _client(&client), _proto(proto), _responseCode(code), _response(resp), +HTTPResponse::HTTPResponse(HTTPClient& client, const std::string& protoVer, + int code, const std::string& reason) +: _client(&client), _protoVer(protoVer), _statusCode(code), _reason(reason), _bytesRead(0), _contentLength(0), _chunkedEncoding(false) { setAccess(Read); @@ -92,19 +92,19 @@ return _header; } -const std::string& HTTPResponse::protocol() const throw() +const std::string& HTTPResponse::protocolVersion() const throw() { - return _proto; + return _protoVer; } -int HTTPResponse::responseCode() const throw() +int HTTPResponse::statusCode() const throw() { - return _responseCode; + return _statusCode; } -const std::string& HTTPResponse::response() const throw() +const std::string& HTTPResponse::reason() const throw() { - return _response; + return _reason; } void HTTPResponse::_close() throw(IO::IOError) @@ -221,9 +221,9 @@ return ret; } -HTTPClient::Domain AddrFamily2Domain(int family) +Socket::Domain AddrFamily2Domain(int family) { - HTTPClient::Domain d; + Socket::Domain d; switch(family) { case AF_INET: |