Public Member Functions

Barry::Socket Class Reference

Encapsulates a "logical socket" in the Blackberry USB protocol. More...

#include <socket.h>

Inheritance diagram for Barry::Socket:
Inheritance graph
[legend]
Collaboration diagram for Barry::Socket:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void RawSend (Data &send, int timeout=-1)
 Sends 'send' data to device, no receive.

Detailed Description

Encapsulates a "logical socket" in the Blackberry USB protocol.

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 194 of file socket.h.


Member Function Documentation

void Barry::Socket::RawSend ( Data send,
int  timeout = -1 
) [virtual]

Sends 'send' data to device, no receive.

Returns:
void
Exceptions:
Usb::Error on underlying bus errors.

Implements Barry::SocketBase.

Definition at line 1058 of file socket.cc.


The documentation for this class was generated from the following files: