latest changes from main repository; added eclipse cdt project files

This commit is contained in:
Guenter Obiltschnig
2007-04-28 12:05:15 +00:00
parent e46a2d8ed7
commit cf20ff1bd7
11 changed files with 47 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
//
// HTTPChunkedStream.cpp
//
// $Id: //poco/Main/Net/src/HTTPChunkedStream.cpp#13 $
// $Id: //poco/Main/Net/src/HTTPChunkedStream.cpp#14 $
//
// Library: Net
// Package: HTTP
@@ -115,10 +115,10 @@ int HTTPChunkedStreamBuf::writeToDevice(const char* buffer, std::streamsize leng
{
_chunkBuffer = NumberFormatter::formatHex(length);
_chunkBuffer.append("\r\n", 2);
_chunkBuffer.append(buffer, length);
_chunkBuffer.append(buffer, static_cast<std::string::size_type>(length));
_chunkBuffer.append("\r\n", 2);
_session.write(_chunkBuffer.data(), static_cast<std::streamsize>(_chunkBuffer.size()));
return length;
return static_cast<int>(length);
}

View File

@@ -1,7 +1,7 @@
//
// HTTPClientSessionTest.cpp
//
// $Id: //poco/Main/Net/testsuite/src/HTTPClientSessionTest.cpp#6 $
// $Id: //poco/Main/Net/testsuite/src/HTTPClientSessionTest.cpp#7 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
@@ -245,7 +245,7 @@ void HTTPClientSessionTest::testKeepAlive()
assert (response.getChunkedTransferEncoding());
assert (response.getKeepAlive());
std::ostringstream ostr3;
int n = StreamCopier::copyStream(rs3, ostr3);
std::streamsize n = StreamCopier::copyStream(rs3, ostr3);
assert (ostr3.str() == HTTPTestServer::LARGE_BODY);
request.setMethod(HTTPRequest::HTTP_HEAD);

View File

@@ -1,7 +1,7 @@
//
// HTTPServerTest.cpp
//
// $Id: //poco/Main/Net/testsuite/src/HTTPServerTest.cpp#13 $
// $Id: //poco/Main/Net/testsuite/src/HTTPServerTest.cpp#14 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
@@ -78,7 +78,7 @@ namespace
std::istream& istr = request.stream();
std::ostream& ostr = response.send();
int n = StreamCopier::copyStream(istr, ostr);
std::streamsize n = StreamCopier::copyStream(istr, ostr);
}
};