Switchboard SDK
|
Networking client to make HTTP requests. More...
#include <CURLNetworkClient.hpp>
Public Member Functions | |
CURLNetworkClient () | |
~CURLNetworkClient () | |
int | post (const std::string &url, const std::vector< std::string > &headers, const std::string &body) override |
NetworkResponse * | process () override |
unsigned int | getNumberOfPendingRequests () override |
Networking client to make HTTP requests.
CURLNetworkClient class.
switchboard::CURLNetworkClient::CURLNetworkClient | ( | ) |
Initializes the network client.
switchboard::CURLNetworkClient::~CURLNetworkClient | ( | ) |
Deinitializes the network client.
|
overridevirtual |
Returns the number of pending requests.
Implements switchboard::NetworkClient.
|
overridevirtual |
Adds a post request to the queue.
url | The request url. |
headers | The headers of the request. |
body | The body of the request. |
Implements switchboard::NetworkClient.
|
overridevirtual |
Processes currently active network requests in the queue. Should be periodically called from a single thread.
Implements switchboard::NetworkClient.