Public Member Functions

Barry::SocketZero Class Reference

Collaboration diagram for Barry::SocketZero:
Collaboration graph

List of all members.

Public Member Functions

SocketHandle Open (uint16_t socket, const char *password=0)
 Open a logical socket on the device.
void Close (Socket &socket)
 Closes a non-default socket (i.e.

Detailed Description

Definition at line 47 of file socket.h.

Member Function Documentation

void Barry::SocketZero::Close ( Socket socket  ) 

Closes a non-default socket (i.e.

non-zero socket number)

The packet sequence is just like Open(), except the command is CLOSE_SOCKET.


Definition at line 566 of file

SocketHandle Barry::SocketZero::Open ( uint16_t  socket,
const char *  password = 0 

Open a logical socket on the device.

Both the socket number and the flag are based on the response to the SELECT_MODE command. See Controller::SelectMode() for more info on this.

The packet sequence is normal for most socket operations.

  • Down: command packet with OPEN_SOCKET
  • Up: optional sequence handshake packet
  • Up: command response, which repeats the socket and flag data as confirmation
Barry::Error Thrown on protocol error.
Barry::BadPassword Thrown on invalid password, or not enough retries left on device.

Definition at line 419 of file

References Barry::Packet::Command().

Here is the call graph for this function:

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