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 Functions: currentConnections, currentThreads, isA, maxConcurrentConnections, params, port, queuedConnections, refusedConnections, secure, totalConnections, type
Inherited Functions: duplicate, isA, referenceCount, release, type
Creates a WebServerService.
~WebServerService();
Destroys the WebServerService.
virtual int currentConnections() const = 0;
Returns the number of currently handled connections.
virtual int currentThreads() const = 0;
Returns the number of currently used connection threads.
bool isA(
const std::type_info & otherType
) const;
See also: Poco::OSP::Service::isA()
virtual int maxConcurrentConnections() const = 0;
Returns the maximum number of concurrently handled connections.
virtual Poco::Net::HTTPServerParams::Ptr params() const = 0;
Returns the Poco::Net::HTTPServerParams object for the server instance.
virtual Poco::UInt16 port() const = 0;
Returns the port the server socket listens on.
virtual int queuedConnections() const = 0;
Returns the number of queued connections.
virtual int refusedConnections() const = 0;
Returns the number of refused connections.
virtual bool secure() const = 0;
Returns true if and only if the web server supports HTTPS.
virtual int totalConnections() const = 0;
Returns the total number of handled connections.
const std::type_info & type() const;
See also: Poco::OSP::Service::type()