|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Load-test client driving a RequestGateway over plain HTTP web requests. More...
#include <RequestClient.h>
Public Member Functions | |
| TestWebRequestClient (uint32 id) | |
| bool | init (uint16 port, uint32 gatewayCount, double sendfreq, int32 reconnectMS, uint32 payload, const char *longTestName) |
| bool | finishUp () |
| bool | isStillRunning () |
Protected Member Functions | |
| bool | run () |
Protected Attributes | |
| uint32 | id |
| uint16 | port |
| uint32 | gatewayCount |
| double | sendfreq |
| int32 | reconnectMS |
| uint32 | payload |
| std::string | longTestName |
| bool | shouldContinue |
| bool | shouldFinishUp |
| bool | isRunning |
Friends | |
| THREAD_RET THREAD_FUNCTION_CALL | TestWebRequestClientRun (THREAD_ARG arg) |
Load-test client driving a RequestGateway over plain HTTP web requests.
Definition at line 529 of file RequestClient.h.
| cmlabs::TestWebRequestClient::TestWebRequestClient | ( | uint32 | id | ) |
Definition at line 1129 of file RequestClient.cpp.
References gatewayCount, isRunning, payload, port, reconnectMS, sendfreq, shouldContinue, and shouldFinishUp.
Referenced by TestWebRequestClientRun.
| bool cmlabs::TestWebRequestClient::finishUp | ( | ) |
Definition at line 1155 of file RequestClient.cpp.
References LOG_SYSTEM, LogPrint, and shouldFinishUp.
| bool cmlabs::TestWebRequestClient::init | ( | uint16 | port, |
| uint32 | gatewayCount, | ||
| double | sendfreq, | ||
| int32 | reconnectMS, | ||
| uint32 | payload, | ||
| const char * | longTestName ) |
Definition at line 1141 of file RequestClient.cpp.
References cmlabs::ThreadManager::CreateThread(), gatewayCount, longTestName, payload, port, reconnectMS, sendfreq, and TestWebRequestClientRun.
Referenced by cmlabs::RequestGateway::UnitTest().
|
inline |
Definition at line 535 of file RequestClient.h.
References isRunning.
|
protected |
Definition at line 1161 of file RequestClient.cpp.
References cmlabs::HTTPRequest::createRequest(), cmlabs::GetTimeAgeMS(), cmlabs::GetTimeNow(), HTTP_ACCESS_DENIED, HTTP_FILE_NOT_FOUND, HTTP_GATEWAY_TIMEOUT, HTTP_INTERNAL_ERROR, HTTP_MALFORMED_URL, HTTP_MOVED_PERMANENTLY, HTTP_NOT_IMPLEMENTED, HTTP_OK, HTTP_POST, HTTP_SERVER_MALFORMED_REPLY, HTTP_SERVER_NOREPLY, HTTP_SERVER_UNAVAILABLE, HTTP_SERVICE_NOT_AVAILABLE, HTTP_UNAUTHORIZED, HTTP_USE_LOCAL_COPY, isRunning, LOG_SYSTEM, LogPrint, cmlabs::NetworkManager::makeHTTPRequest(), NOENC, payload, port, sendfreq, shouldContinue, shouldFinishUp, cmlabs::utils::Sleep(), cmlabs::utils::StringFormat(), and cmlabs::HTTPReply::type.
Referenced by TestWebRequestClientRun.
|
friend |
Definition at line 1256 of file RequestClient.cpp.
References run(), TestWebRequestClient(), THREAD_ARG, THREAD_FUNCTION_CALL, THREAD_RET, and thread_ret_val.
Referenced by init().
|
protected |
Definition at line 541 of file RequestClient.h.
Referenced by init(), and TestWebRequestClient().
|
protected |
Definition at line 539 of file RequestClient.h.
|
protected |
Definition at line 548 of file RequestClient.h.
Referenced by isStillRunning(), run(), and TestWebRequestClient().
|
protected |
Definition at line 545 of file RequestClient.h.
Referenced by init().
|
protected |
Definition at line 544 of file RequestClient.h.
Referenced by init(), run(), and TestWebRequestClient().
|
protected |
Definition at line 540 of file RequestClient.h.
Referenced by init(), run(), and TestWebRequestClient().
|
protected |
Definition at line 543 of file RequestClient.h.
Referenced by init(), and TestWebRequestClient().
|
protected |
Definition at line 542 of file RequestClient.h.
Referenced by init(), run(), and TestWebRequestClient().
|
protected |
Definition at line 546 of file RequestClient.h.
Referenced by run(), and TestWebRequestClient().
|
protected |
Definition at line 547 of file RequestClient.h.
Referenced by finishUp(), run(), and TestWebRequestClient().