Class TCPClient
Inherits the following classes: BaseClient
Public Functions
| Type | Name |
|---|---|
| virtual bool | Connect () override |
| bool | FlushQueu () |
| virtual int | GetWaitTime () override |
| virtual bool | ReadReply (std::string * str, size_t min_size=3) override |
| virtual void | SetDefaultWaitTime (int value) override |
| TCPClient (std::string IP, int port, int=2000) |
|
| TCPClient (std::string IP, int port, int to=2000, std::string hostname="") |
|
| virtual bool | Write (std::string str) override |
| ~TCPClient () |
Public Functions inherited from BaseClient
See BaseClient
| Type | Name |
|---|---|
| BaseClient (int to) |
|
| virtual bool | Connect () |
| virtual int | GetWaitTime () |
| virtual bool | ReadReply (std::string * str, size_t=3) |
| virtual void | SetDefaultWaitTime (int value) |
| virtual bool | Write (std::string str) |
| virtual | ~BaseClient () |
Protected Attributes inherited from BaseClient
See BaseClient
| Type | Name |
|---|---|
| int | default_wait |
| std::string | read_stop |
| int | read_time_out |
Public Functions Documentation
function Connect
virtual bool TCPClient::Connect () override
Implements BaseClient::Connect
function FlushQueu
bool TCPClient::FlushQueu ()
function GetWaitTime
inline virtual int TCPClient::GetWaitTime () override
Implements BaseClient::GetWaitTime
function ReadReply
virtual bool TCPClient::ReadReply (
std::string * str,
size_t min_size=3
) override
Implements BaseClient::ReadReply
function SetDefaultWaitTime
inline virtual void TCPClient::SetDefaultWaitTime (
int value
) override
Implements BaseClient::SetDefaultWaitTime
function TCPClient [1/2]
TCPClient::TCPClient (
std::string IP,
int port,
int=2000
)
function TCPClient [2/2]
TCPClient::TCPClient (
std::string IP,
int port,
int to=2000,
std::string hostname=""
)
function Write
virtual bool TCPClient::Write (
std::string str
) override
Implements BaseClient::Write
function ~TCPClient
TCPClient::~TCPClient ()
The documentation for this class was generated from the following file midas_fe/power/TCPClient.h