sync to internal repository

This commit is contained in:
Guenter Obiltschnig
2007-02-23 14:41:53 +00:00
parent 488b63fb0d
commit 5a2a425002
298 changed files with 559 additions and 353 deletions

View File

@@ -1,7 +1,7 @@
//
// HTTPServerSession.h
//
// $Id: //poco/1.3/Net/include/Poco/Net/HTTPServerSession.h#1 $
// $Id: //poco/Main/Net/include/Poco/Net/HTTPServerSession.h#4 $
//
// Library: Net
// Package: HTTPServer
@@ -67,7 +67,10 @@ public:
bool hasMoreRequests();
/// Returns true if there are requests available.
bool canKeepAlive() const;
/// Returns true if the session can be kept alive.
SocketAddress clientAddress();
/// Returns the client's address.
@@ -81,6 +84,15 @@ private:
};
//
// inlines
//
inline bool HTTPServerSession::canKeepAlive() const
{
return _maxKeepAliveRequests != 0;
}
} } // namespace Poco::Net