Do not forget that you communicate to a plug-n-play device. The user might disconnect without notice. Another application might access the device, too. Thus open the link for each exchange and close it after the exchange. The _acquire() and _release() method of the driver implementation shoud be a good place to use open() and close().
Public Member Functions
|virtual void||close ()=0|
|virtual void||open ()=0|
|virtual int||read (Packet_t &data)=0|
|virtual void||write (const Packet_t &data)=0|