Barry::ZeroPacket Class Reference

#include <packet.h>

Inheritance diagram for Barry::ZeroPacket:

Barry::Packet List of all members.

Detailed Description

Provides an API for building and analyzing socket-0 protocol packets.

This class relies on 2 external objects: a send and receive Data buffer.

Note that the receive buffer may be modified during a packet send, and this DBPacket class provides API helpers to analyze the results.

Definition at line 75 of file packet.h.

Public Member Functions

 ZeroPacket (Data &send, Data &receive)
 ~ZeroPacket ()
void GetAttribute (unsigned int object, unsigned int attribute)
 Builds a command packet for the initial socket-0 handshakes that fetch certain (some unknown) attributes.
unsigned int ObjectID () const
unsigned int AttributeID () const
uint32_t ChallengeSeed () const
unsigned int RemainingTries () const
unsigned int SocketResponse () const
unsigned char SocketSequence () const

Friends

class Socket


Member Function Documentation

void Barry::ZeroPacket::GetAttribute ( unsigned int  object,
unsigned int  attribute 
)

Builds a command packet for the initial socket-0 handshakes that fetch certain (some unknown) attributes.

The attributes appear to exist in an object/attribute sequence, so that's how we address them here.

Definition at line 78 of file packet.cc.

References ATTRIBUTE_FETCH_COMMAND_SIZE, Barry::Data::GetBuffer(), htobs, Barry::Packet::m_send, MAKE_PACKETPTR_BUF, Barry::Data::ReleaseBuffer(), SB_COMMAND_FETCH_ATTRIBUTE, and SB_SOCKET_PACKET_HEADER_SIZE.

Referenced by Barry::Probe::ProbePair().


The documentation for this class was generated from the following files:
Generated on Wed Sep 24 21:27:32 2008 for Barry by  doxygen 1.5.1