A pool of HttpConnection that can be active or inactive.
More...
#include <HttpConnection.h>
A pool of HttpConnection that can be active or inactive.
◆ activateNew()
Finds an available connection (if any), activates it and returns its ID to use with getConnection(id)
◆ close()
| Result SC::HttpConnectionsPool::close |
( |
| ) |
|
Closes the server, removing references to the memory buffers passed during init.
◆ deactivate()
De-activates a connection previously returned by activateNew.
◆ getConnection()
Returns a connection by ID.
◆ getConnectionAt()
Returns a connection in the [0, getNumTotalConnections] range.
◆ getNumActiveConnections()
| size_t SC::HttpConnectionsPool::getNumActiveConnections |
( |
| ) |
const |
|
inlinenodiscard |
Returns only the number of active connections.
◆ getNumTotalConnections()
| size_t SC::HttpConnectionsPool::getNumTotalConnections |
( |
| ) |
const |
|
inlinenodiscard |
Returns the total number of connections (active + inactive)
◆ init()
Initializes the server with memory buffers for connections and headers.
The documentation for this struct was generated from the following file: