File Information
Library: OSP/Web
Package: Web
Header: Poco/OSP/Web/WebServerService.h
Description
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.
Inheritance
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
Constructors
WebServerService
Creates a WebServerService.
Destructor
~WebServerService
~WebServerService();
Destroys the WebServerService.
Member Functions
currentConnections
virtual int currentConnections() const = 0;
Returns the number of currently handled connections.
currentThreads
virtual int currentThreads() const = 0;
Returns the number of currently used connection threads.
host
virtual std::string host() const = 0;
Returns the host name (interface) the server listens on.
isA
bool isA(
const std::type_info & otherType
) const;
See also: Poco::OSP::Service::isA()
maxConcurrentConnections
virtual int maxConcurrentConnections() const = 0;
Returns the maximum number of concurrently handled connections.
params
virtual Poco::Net::HTTPServerParams::Ptr params() const = 0;
Returns the Poco::Net::HTTPServerParams object for the server instance.
port
virtual Poco::UInt16 port() const = 0;
Returns the port the server socket listens on.
queuedConnections
virtual int queuedConnections() const = 0;
Returns the number of queued connections.
refusedConnections
virtual int refusedConnections() const = 0;
Returns the number of refused connections.
secure
virtual bool secure() const = 0;
Returns true if and only if the web server supports HTTPS.
totalConnections
virtual int totalConnections() const = 0;
Returns the total number of handled connections.
type
const std::type_info & type() const;
See also: Poco::OSP::Service::type()