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 int filedescriptor)
 
void messageCallback (const int filedescriptor, char *buffer, size_t nbytesrecv)
 
void SetUp ()
 
void Teardown ()
 
bool waitForConnectionCallback (int milliseconds=100)
 
bool waitForMessageCallback (int milliseconds=100)
 

Protected Attributes

int 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 41 of file test_stream.cpp.

Member Function Documentation

◆ connectionCallback()

void StreamTest::connectionCallback ( const int  filedescriptor)
inlineprotected

Definition at line 69 of file test_stream.cpp.

◆ messageCallback()

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

Definition at line 60 of file test_stream.cpp.

◆ SetUp()

void StreamTest::SetUp ( )
inlineprotected

Definition at line 44 of file test_stream.cpp.

◆ Teardown()

void StreamTest::Teardown ( )
inlineprotected

Definition at line 53 of file test_stream.cpp.

◆ waitForConnectionCallback()

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

Definition at line 89 of file test_stream.cpp.

◆ waitForMessageCallback()

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

Definition at line 77 of file test_stream.cpp.

Member Data Documentation

◆ client_fd_

int StreamTest::client_fd_
protected

Definition at line 102 of file test_stream.cpp.

◆ connect_cv_

std::condition_variable StreamTest::connect_cv_
private

Definition at line 110 of file test_stream.cpp.

◆ connect_mutex_

std::mutex StreamTest::connect_mutex_
private

Definition at line 111 of file test_stream.cpp.

◆ connection_callback_

bool StreamTest::connection_callback_ = false
private

Definition at line 113 of file test_stream.cpp.

◆ message_callback_

bool StreamTest::message_callback_ = false
private

Definition at line 114 of file test_stream.cpp.

◆ message_cv_

std::condition_variable StreamTest::message_cv_
private

Definition at line 107 of file test_stream.cpp.

◆ message_mutex_

std::mutex StreamTest::message_mutex_
private

Definition at line 108 of file test_stream.cpp.

◆ read_

size_t StreamTest::read_
protected

Definition at line 104 of file test_stream.cpp.

◆ received_message_

std::string StreamTest::received_message_
protected

Definition at line 103 of file test_stream.cpp.

◆ server_

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

Definition at line 101 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 Tue Jul 4 2023 02:09:47