class WebServerService

File Information

Library: OSP/Web
Package: Web
Header: Poco/OSP/Web/WebServerService.h


The WebServerService is a service that is used by HTTP server implementations to register the HTTP server instance in the service registry.

By looking up instances of this service, bundles can find out which web servers are available, and what port numbers they are running on.

Also, some statistics about the server may be obtained.


Direct Base Classes: Poco::OSP::Service

All Base Classes: Poco::OSP::Service, Poco::RefCountedObject

Member Summary

Member Functions: currentConnections, currentThreads, host, isA, maxConcurrentConnections, params, port, queuedConnections, refusedConnections, secure, totalConnections, type

Inherited Functions: duplicate, isA, referenceCount, release, type


WebServerService protected


Creates a WebServerService.


~WebServerService protected virtual


Destroys the WebServerService.

Member Functions

currentConnections virtual

virtual int currentConnections() const = 0;

Returns the number of currently handled connections.

currentThreads virtual

virtual int currentThreads() const = 0;

Returns the number of currently used connection threads.

host virtual

virtual std::string host() const = 0;

Returns the host name (interface) the server listens on.

isA virtual

bool isA(
    const std::type_info & otherType
) const;

maxConcurrentConnections virtual

virtual int maxConcurrentConnections() const = 0;

Returns the maximum number of concurrently handled connections.

params virtual

virtual Poco::Net::HTTPServerParams::Ptr params() const = 0;

Returns the Poco::Net::HTTPServerParams object for the server instance.

port virtual

virtual Poco::UInt16 port() const = 0;

Returns the port the server socket listens on.

queuedConnections virtual

virtual int queuedConnections() const = 0;

Returns the number of queued connections.

refusedConnections virtual

virtual int refusedConnections() const = 0;

Returns the number of refused connections.

secure virtual

virtual bool secure() const = 0;

Returns true if and only if the web server supports HTTPS.

totalConnections virtual

virtual int totalConnections() const = 0;

Returns the total number of handled connections.

type virtual

const std::type_info & type() const;