Public Member Functions | Protected Member Functions | List of all members
TCPServerTest::Client Class Reference
Inheritance diagram for TCPServerTest::Client:
Inheritance graph
[legend]

Public Member Functions

 Client (const int &port)
 
std::string recv ()
 
void send (const std::string &text)
 
- Public Member Functions inherited from urcl::comm::TCPSocket
void close ()
 Closes the connection to the socket. More...
 
std::string getIP () const
 Determines the local IP address of the currently configured socket. More...
 
int getSocketFD ()
 Getter for the file descriptor of the socket. More...
 
SocketState getState ()
 Getter for the state of the socket. More...
 
bool read (char *character)
 Reads one byte from the socket. More...
 
bool read (uint8_t *buf, const size_t buf_len, size_t &read)
 Reads data from the socket. More...
 
void setReceiveTimeout (const timeval &timeout)
 Setup Receive timeout used for this socket. More...
 
 TCPSocket ()
 Creates a TCPSocket object. More...
 
bool write (const uint8_t *buf, const size_t buf_len, size_t &written)
 Writes to the socket. More...
 
virtual ~TCPSocket ()
 

Protected Member Functions

virtual bool open (int socket_fd, struct sockaddr *address, size_t address_len)
 
- Protected Member Functions inherited from urcl::comm::TCPSocket
virtual void setOptions (int socket_fd)
 
bool setup (std::string &host, int port)
 

Additional Inherited Members

- Protected Attributes inherited from urcl::comm::TCPSocket
std::unique_ptr< timeval > recv_timeout_
 

Detailed Description

Definition at line 43 of file test_tcp_server.cpp.

Constructor & Destructor Documentation

TCPServerTest::Client::Client ( const int &  port)
inline

Definition at line 46 of file test_tcp_server.cpp.

Member Function Documentation

virtual bool TCPServerTest::Client::open ( int  socket_fd,
struct sockaddr *  address,
size_t  address_len 
)
inlineprotectedvirtual

Reimplemented from urcl::comm::TCPSocket.

Definition at line 78 of file test_tcp_server.cpp.

std::string TCPServerTest::Client::recv ( )
inline

Definition at line 60 of file test_tcp_server.cpp.

void TCPServerTest::Client::send ( const std::string &  text)
inline

Definition at line 52 of file test_tcp_server.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 Sun May 9 2021 02:16:26