Poco::Net

class HTTPServerSession

File Information

Library: Net
Package: HTTPServer
Header: Poco/Net/HTTPServerSession.h

Description

This class handles the server side of a HTTP session. It is used internally by HTTPServer.

Inheritance

Direct Base Classes: HTTPSession

All Base Classes: HTTPSession

Member Summary

Member Functions: canKeepAlive, clientAddress, hasMoreRequests, serverAddress

Inherited Functions: abort, attachSessionData, attachSocket, buffered, clearException, close, connect, connected, detachSocket, drainBuffer, get, getKeepAlive, getTimeout, networkException, peek, read, receive, refill, sessionData, setException, setKeepAlive, setTimeout, socket, write

Constructors

HTTPServerSession

HTTPServerSession(
    const StreamSocket & socket,
    HTTPServerParams::Ptr pParams
);

Creates the HTTPServerSession.

Destructor

~HTTPServerSession virtual

virtual ~HTTPServerSession();

Destroys the HTTPServerSession.

Member Functions

canKeepAlive inline

bool canKeepAlive() const;

Returns true if the session can be kept alive.

clientAddress

SocketAddress clientAddress();

Returns the client's address.

hasMoreRequests

bool hasMoreRequests();

Returns true if there are requests available.

serverAddress

SocketAddress serverAddress();

Returns the server's address.

Securely control IoT edge devices from anywhere   Connect a Device