|
ABS SCPI Driver 1.1.0
ABS SCPI driver library
|
TCP driver. More...
#include <TcpDriver.h>
Inheritance diagram for TcpDriver:
Collaboration diagram for TcpDriver:TCP driver.
Public Member Functions | |
| TcpDriver () | |
| CTOR. | |
| ~TcpDriver () | |
| DTOR. Closes any ongoing connection. | |
| ErrorCode | Connect (std::string_view ip, unsigned int timeout_ms) |
| Connect to the ABS. | |
| void | Close () noexcept |
| Close the connection to the ABS. | |
| ErrorCode | Write (std::string_view data, unsigned int timeout_ms) const |
| Send data over TCP. | |
| Result< std::string > | ReadLine (unsigned int timeout_ms) const |
| Read a line over TCP. | |
Public Member Functions inherited from CommDriver | |
| virtual void | SetDeviceID (unsigned int id) |
| Set the target device ID. | |
| virtual unsigned int | GetDeviceID () const |
| Get the target device ID. | |
| virtual bool | IsSendOnly () const |
| Determines whether a driver is send-only in the average case. | |
| ErrorCode Connect | ( | std::string_view | ip, |
| unsigned int | timeout_ms | ||
| ) |
Connect to the ABS.
| [in] | ip | device IP address |
| [in] | timeout_ms | connection timeout in milliseconds |
|
virtual |
Read a line over TCP.
| [in] | timeout_ms | read timeout in milliseconds |
Implements CommDriver.
|
virtual |
Send data over TCP.
| [in] | data | data to send |
| [in] | timeout_ms | send timeout in milliseconds |
Implements CommDriver.