PixelLightAPI  .
Public Member Functions | Protected Member Functions
PLCore::HttpServer Class Reference

Http server. More...

#include <HttpServer.h>

Inheritance diagram for PLCore::HttpServer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PLCORE_API HttpServer ()
 Constructor.
virtual PLCORE_API ~HttpServer ()
 Destructor.

Protected Member Functions

virtual PLCORE_API void OnRequest (HttpServerConnection *pConnection, const HttpHeader *pHeader)
 A web server request has come in.
virtual PLCORE_API void OnGet (HttpServerConnection *pConnection, const HttpHeader *pHeader)
 A GET request has come in.
virtual PLCORE_API void OnError (HttpServerConnection *pConnection, EHttpStatus nStatus)
 An error occurred.
virtual PLCORE_API ConnectionCreateIncomingConnection () override
 Create a new incoming connection.
virtual PLCORE_API void OnConnect (Connection &cConnection) override
 Called when a connection is established.
virtual PLCORE_API void OnDisconnect (Connection &cConnection) override
 Called when a connection is closed.

Detailed Description

Http server.


Constructor & Destructor Documentation

virtual PLCORE_API PLCore::HttpServer::~HttpServer ( ) [virtual]

Destructor.


Member Function Documentation

virtual PLCORE_API void PLCore::HttpServer::OnRequest ( HttpServerConnection pConnection,
const HttpHeader pHeader 
) [protected, virtual]

A web server request has come in.

Parameters:
[in]pConnectionConnection
[in]pHeaderHTTP header
virtual PLCORE_API void PLCore::HttpServer::OnGet ( HttpServerConnection pConnection,
const HttpHeader pHeader 
) [protected, virtual]

A GET request has come in.

Parameters:
[in]pConnectionConnection
[in]pHeaderHTTP header
virtual PLCORE_API void PLCore::HttpServer::OnError ( HttpServerConnection pConnection,
EHttpStatus  nStatus 
) [protected, virtual]

An error occurred.

Parameters:
[in]pConnectionConnection
[in]nStatusHTTP status code
virtual PLCORE_API Connection* PLCore::HttpServer::CreateIncomingConnection ( ) [override, protected, virtual]

Create a new incoming connection.

Returns:
Connection

Reimplemented from PLCore::Server.

virtual PLCORE_API void PLCore::HttpServer::OnConnect ( Connection cConnection) [override, protected, virtual]

Called when a connection is established.

Parameters:
[in]cConnectionThe new connection

Reimplemented from PLCore::Host.

virtual PLCORE_API void PLCore::HttpServer::OnDisconnect ( Connection cConnection) [override, protected, virtual]

Called when a connection is closed.

Parameters:
[in]cConnectionThe closed connection

Reimplemented from PLCore::Host.


The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:26
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported