# Poco::Net

# class HTTPReactorServerSession

Library:
Package:
Header: Poco/Net/HTTPReactorServerSession.h

## Description

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

## Inheritance

Direct Base Classes: HTTPSession

All Base Classes: HTTPSession

## Member Summary

Member Functions: checkRequestComplete, clientAddress, popCompletedRequest, serverAddress

Inherited Functions: abort, attachSessionData, attachSocket, buffered, clearException, clientAddress, close, connect, connected, detachSocket, drainBuffer, get, getConnectTimeout, getKeepAlive, getReceiveTimeout, getSendTimeout, getTimeout, networkException, peek, read, receive, refill, requestTrailer, responseTrailer, serverAddress, sessionData, setConnectTimeout, setException, setKeepAlive, setReceiveTimeout, setSendTimeout, setTimeout, socket, write

## Constructors

### HTTPReactorServerSession

HTTPReactorServerSession(
const StreamSocket & socket,
std::string & buf,
HTTPServerParams::Ptr pParams
);

Creates the HTTPReactorServerSession.

## Destructor

### ~HTTPReactorServerSession

virtual ~HTTPReactorServerSession();

Destroys the HTTPReactorServerSession.

## Member Functions

### checkRequestComplete

bool checkRequestComplete();

### clientAddress

SocketAddress clientAddress() override;

Returns the client's address.

See also: Poco::Net::HTTPSession::clientAddress()

### popCompletedRequest

void popCompletedRequest();

### serverAddress

SocketAddress serverAddress() override;

Returns the server's address.

See also: Poco::Net::HTTPSession::serverAddress()