#include <packet.h>
Inheritance diagram for Barry::ZeroPacket:
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 |
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().