Protected Member Functions | Protected Attributes | Private Attributes | List of all members
StreamTest Class Reference
Inheritance diagram for StreamTest:
Inheritance graph
[legend]

Protected Member Functions

void connectionCallback (const socket_t filedescriptor)
 
void messageCallback (const socket_t filedescriptor, char *buffer, size_t nbytesrecv)
 
void SetUp ()
 
void teardown ()
 
bool waitForConnectionCallback (int milliseconds=100)
 
bool waitForMessageCallback (int milliseconds=100)
 

Protected Attributes

socket_t client_fd_
 
size_t read_
 
std::string received_message_
 
std::unique_ptr< comm::TCPServerserver_
 

Private Attributes

std::condition_variable connect_cv_
 
std::mutex connect_mutex_
 
bool connection_callback_ = false
 
bool message_callback_ = false
 
std::condition_variable message_cv_
 
std::mutex message_mutex_
 

Detailed Description

Definition at line 42 of file test_stream.cpp.

Member Function Documentation

◆ connectionCallback()

void StreamTest::connectionCallback ( const socket_t  filedescriptor)
inlineprotected

Definition at line 70 of file test_stream.cpp.

◆ messageCallback()

void StreamTest::messageCallback ( const socket_t  filedescriptor,
char *  buffer,
size_t  nbytesrecv 
)
inlineprotected

Definition at line 61 of file test_stream.cpp.

◆ SetUp()

void StreamTest::SetUp ( )
inlineprotected

Definition at line 45 of file test_stream.cpp.

◆ teardown()

void StreamTest::teardown ( )
inlineprotected

Definition at line 54 of file test_stream.cpp.

◆ waitForConnectionCallback()

bool StreamTest::waitForConnectionCallback ( int  milliseconds = 100)
inlineprotected

Definition at line 90 of file test_stream.cpp.

◆ waitForMessageCallback()

bool StreamTest::waitForMessageCallback ( int  milliseconds = 100)
inlineprotected

Definition at line 78 of file test_stream.cpp.

Member Data Documentation

◆ client_fd_

socket_t StreamTest::client_fd_
protected

Definition at line 103 of file test_stream.cpp.

◆ connect_cv_

std::condition_variable StreamTest::connect_cv_
private

Definition at line 111 of file test_stream.cpp.

◆ connect_mutex_

std::mutex StreamTest::connect_mutex_
private

Definition at line 112 of file test_stream.cpp.

◆ connection_callback_

bool StreamTest::connection_callback_ = false
private

Definition at line 114 of file test_stream.cpp.

◆ message_callback_

bool StreamTest::message_callback_ = false
private

Definition at line 115 of file test_stream.cpp.

◆ message_cv_

std::condition_variable StreamTest::message_cv_
private

Definition at line 108 of file test_stream.cpp.

◆ message_mutex_

std::mutex StreamTest::message_mutex_
private

Definition at line 109 of file test_stream.cpp.

◆ read_

size_t StreamTest::read_
protected

Definition at line 105 of file test_stream.cpp.

◆ received_message_

std::string StreamTest::received_message_
protected

Definition at line 104 of file test_stream.cpp.

◆ server_

std::unique_ptr<comm::TCPServer> StreamTest::server_
protected

Definition at line 102 of file test_stream.cpp.


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


ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Mon May 26 2025 02:35:58