Class UwConnector allows to specify an interface between the UwDriver object and the device.
virtual const int getErrno()
Function that retrieves the last saved errno code: to be implemented.
virtual void setUDP()
Method that should set, for a socket connector, the UDP transport protocol.
virtual int writeToDevice(const std::string &msg)=0
Function that writes some command to the connected interface.
virtual void setTCP()
Method that should set, for a socket connector, the TCP transport protocol.
virtual bool closeConnection()=0
Method that closes an active connection to a device interface.
virtual ~UwConnector()
UwConnector destructor.
UwConnector()
UwConnector constructor.
virtual void setServer()
Method required in client-server connection (e.g.
virtual bool openConnection(const std::string &path)=0
Method that opens up a connection to a device.
virtual const bool isConnected()=0
Returns true if connection is up.
virtual int readFromDevice(void *wpos, int maxlen)=0
Function that dumps data from the device's memory to data char array.