Class Interface

Class Documentation

class Interface

interface class is generic interfacing to something via sockets

Public Functions

inline bool is_initialized()

has the class been initialized?

inline std::string get_name()

what is the name of the device?

inline std::string get_host()
inline int get_port()
long open()

open a connection to LKS device

long close()

close the connection to the LKS device

long reconnect()
long send_command(std::string cmd)
long send_command(std::string cmd, std::string &retstring)
long send_command(std::string cmd, std::string &retstring, int timeout)
inline bool isopen()
Interface(std::string name, std::string host, uint16_t port, char term_write, char term_read)
Interface(std::string name, std::string host, uint16_t port)
Interface()
~Interface()

Public Members

TcpSocket sock

provides the network communication