#include <socket.h>
Public Member Functions | |
void | Send (Data &send, int timeout=-1) |
Sends 'send' data to device, no receive. | |
void | Send (Data &send, Data &receive, int timeout=-1) |
Sends 'send' data to device, and waits for response. |
By default, provides raw send/receive access, as well as packet writing on socket 0, which is always open.
There are Open and Close members to open data sockets which are used to transfer data to and from the device.
The destructor will close any non-0 open sockets automatically.
Requires an active Usb::Device object to work on.
Definition at line 119 of file socket.h.
void Barry::Socket::Send | ( | Data & | send, | |
Data & | receive, | |||
int | timeout = -1 | |||
) |
Sends 'send' data to device, and waits for response.
Usb::Error | on underlying bus errors. |
Definition at line 652 of file socket.cc.
References Send().
void Barry::Socket::Send | ( | Data & | send, | |
int | timeout = -1 | |||
) |
Sends 'send' data to device, no receive.
Usb::Error | on underlying bus errors. |
Definition at line 633 of file socket.cc.
Referenced by Send().