CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::TestWebSocketRequestClient Class Reference

Load-test client driving a RequestGateway over WebSocket connections. More...

#include <RequestClient.h>

Collaboration diagram for cmlabs::TestWebSocketRequestClient:
[legend]

Public Member Functions

 TestWebSocketRequestClient (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 TestWebSocketRequestClientRun (THREAD_ARG arg)

Detailed Description

Load-test client driving a RequestGateway over WebSocket connections.

Definition at line 557 of file RequestClient.h.

Constructor & Destructor Documentation

◆ TestWebSocketRequestClient()

cmlabs::TestWebSocketRequestClient::TestWebSocketRequestClient ( uint32 id)

Member Function Documentation

◆ finishUp()

bool cmlabs::TestWebSocketRequestClient::finishUp ( )

Definition at line 1299 of file RequestClient.cpp.

References LOG_SYSTEM, LogPrint, and shouldFinishUp.

◆ init()

bool cmlabs::TestWebSocketRequestClient::init ( uint16 port,
uint32 gatewayCount,
double sendfreq,
int32 reconnectMS,
uint32 payload,
const char * longTestName )

◆ isStillRunning()

bool cmlabs::TestWebSocketRequestClient::isStillRunning ( )
inline

Definition at line 563 of file RequestClient.h.

References isRunning.

◆ run()

◆ TestWebSocketRequestClientRun

THREAD_RET THREAD_FUNCTION_CALL TestWebSocketRequestClientRun ( THREAD_ARG arg)
friend

Member Data Documentation

◆ gatewayCount

uint32 cmlabs::TestWebSocketRequestClient::gatewayCount
protected

Definition at line 569 of file RequestClient.h.

Referenced by init(), and TestWebSocketRequestClient().

◆ id

uint32 cmlabs::TestWebSocketRequestClient::id
protected

Definition at line 567 of file RequestClient.h.

◆ isRunning

bool cmlabs::TestWebSocketRequestClient::isRunning
protected

Definition at line 576 of file RequestClient.h.

Referenced by isStillRunning(), run(), and TestWebSocketRequestClient().

◆ longTestName

std::string cmlabs::TestWebSocketRequestClient::longTestName
protected

Definition at line 573 of file RequestClient.h.

Referenced by init().

◆ payload

uint32 cmlabs::TestWebSocketRequestClient::payload
protected

Definition at line 572 of file RequestClient.h.

Referenced by init(), run(), and TestWebSocketRequestClient().

◆ port

uint16 cmlabs::TestWebSocketRequestClient::port
protected

Definition at line 568 of file RequestClient.h.

Referenced by init(), run(), and TestWebSocketRequestClient().

◆ reconnectMS

int32 cmlabs::TestWebSocketRequestClient::reconnectMS
protected

Definition at line 571 of file RequestClient.h.

Referenced by init(), and TestWebSocketRequestClient().

◆ sendfreq

double cmlabs::TestWebSocketRequestClient::sendfreq
protected

Definition at line 570 of file RequestClient.h.

Referenced by init(), run(), and TestWebSocketRequestClient().

◆ shouldContinue

bool cmlabs::TestWebSocketRequestClient::shouldContinue
protected

Definition at line 574 of file RequestClient.h.

Referenced by run(), and TestWebSocketRequestClient().

◆ shouldFinishUp

bool cmlabs::TestWebSocketRequestClient::shouldFinishUp
protected

Definition at line 575 of file RequestClient.h.

Referenced by finishUp(), run(), and TestWebSocketRequestClient().


The documentation for this class was generated from the following files: