gareth 2002/12/09 01:57:28 Modified: c/src/xercesc/util/NetAccessors/Socket UnixHTTPURLInputStream.cpp UnixHTTPURLInputStream.hpp Log: Fixed compile error by adding private member. Not very efficient. Should be looked at again. Revision Changes Path 1.8 +10 -1 xml-xerces/c/src/xercesc/util/NetAccessors/Socket/UnixHTTPURLInputStream.cpp Index: UnixHTTPURLInputStream.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/NetAccessors/Socket/UnixHTTPURLInputStream.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- UnixHTTPURLInputStream.cpp 6 Dec 2002 16:43:33 -0000 1.7 +++ UnixHTTPURLInputStream.cpp 9 Dec 2002 09:57:27 -0000 1.8 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.8 2002/12/09 09:57:27 gareth + * Fixed compile error by adding private member. Not very efficient. Should be looked at again. + * * Revision 1.7 2002/12/06 16:43:33 tng * Fix the error messages thrown from net accessor module. * @@ -138,7 +141,12 @@ UnixHTTPURLInputStream::UnixHTTPURLInputStream(const XMLURL& urlSource) : fSocket(0) , fBytesProcessed(0) + , fURLText(0) { + + //REVISIT inefficient - this is used by the error reporting in readBytes. Do we need it? + fURLText = XMLString::replicate(urlSource.getURLText()); + // // Pull all of the parts of the URL out of th urlSource object, and transcode them // and transcode them back to ASCII. @@ -316,6 +324,7 @@ { shutdown(fSocket, 2); close(fSocket); + delete[] fURLText; } @@ -340,7 +349,7 @@ len = read(fSocket, (void *) toFill, maxToRead); if (len == -1) { - ThrowXML1(NetAccessorException, XMLExcepts::NetAcc_ReadSocket, urlSource.getURLText()); + ThrowXML1(NetAccessorException, XMLExcepts::NetAcc_ReadSocket, fURLText); } } 1.3 +6 -0 xml-xerces/c/src/xercesc/util/NetAccessors/Socket/UnixHTTPURLInputStream.hpp Index: UnixHTTPURLInputStream.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/NetAccessors/Socket/UnixHTTPURLInputStream.hpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- UnixHTTPURLInputStream.hpp 4 Nov 2002 15:11:38 -0000 1.2 +++ UnixHTTPURLInputStream.hpp 9 Dec 2002 09:57:27 -0000 1.3 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.3 2002/12/09 09:57:27 gareth + * Fixed compile error by adding private member. Not very efficient. Should be looked at again. + * * Revision 1.2 2002/11/04 15:11:38 tng * C++ Namespace Support. * @@ -127,6 +130,8 @@ // fBufferPos, fBufferEnd // Pointers into fBuffer, showing start and end+1 of content // that readBytes must return. + // fURLText + // Full URL text for error reporting // ----------------------------------------------------------------------- int fSocket; @@ -134,6 +139,7 @@ char fBuffer[4000]; char * fBufferEnd; char * fBufferPos; + XMLCh * fURLText; }; // UnixHTTPURLInputStream
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]