Library: Net
Package: HTTPServer
Header: Poco/Net/HTTPServerSession.h
This class handles the server side of a HTTP session. It is used internally by HTTPServer.
Direct Base Classes: HTTPSession
All Base Classes: HTTPSession
Member Functions: canKeepAlive, clientAddress, hasMoreRequests, serverAddress
Inherited Functions: abort, attachSessionData, attachSocket, buffered, close, connect, connected, detachSocket, get, getKeepAlive, getTimeout, networkException, peek, read, receive, refill, sessionData, setException, setKeepAlive, setTimeout, socket, write
HTTPServerSession(
const StreamSocket & socket,
HTTPServerParams::Ptr pParams
);
Creates the HTTPServerSession.
virtual ~HTTPServerSession();
Destroys the HTTPServerSession.
bool canKeepAlive() const;
Returns true if the session can be kept alive.
SocketAddress clientAddress();
Returns the client's address.
bool hasMoreRequests();
Returns true if there are requests available.
SocketAddress serverAddress();
Returns the server's address.