#include <ICP.h>

Collaboration diagram for _icp_common_t:

Public Member Functions

 _icp_common_t ()
 _icp_common_t (char *buf, unsigned int len)
void handleReply (char *buf, Ip::Address &from)
icp_opcode getOpCode () const

Static Public Member Functions

static _icp_common_tcreateMessage (icp_opcode opcode, int flags, const char *url, int reqnum, int pad)

Public Attributes

unsigned char opcode
unsigned char version
unsigned short length
uint32_t reqnum
uint32_t flags
uint32_t pad
uint32_t shostid

Detailed Description

This struct is the wire-level header. DO NOT add more move fields on pain of breakage. DO NOT add virtual methods.

Definition at line 33 of file ICP.h.

Constructor & Destructor Documentation

_icp_common_t::_icp_common_t ( )
I don't believe this header is included in non-c++ code anywhere the struct should become a public POD class and kill these ifdef.

Definition at line 76 of file icp_v2.cc.

_icp_common_t::_icp_common_t ( char *  buf,
unsigned int  len 

Definition at line 81 of file icp_v2.cc.

References flags, length, pad, and reqnum.

Member Function Documentation

_icp_common_t * _icp_common_t::createMessage ( icp_opcode  opcode,
int  flags,
const char *  url,
int  reqnum,
int  pad 
icp_opcode _icp_common_t::getOpCode ( ) const

Definition at line 101 of file icp_v2.cc.

References ICP_END, ICP_INVALID, and opcode.

Referenced by peerHandleIcpReply().

void _icp_common_t::handleReply ( char *  buf,
Ip::Address from 

Member Data Documentation

uint32_t _icp_common_t::flags

Definition at line 42 of file ICP.h.

Referenced by _icp_common_t(), createMessage(), doV2Query(), and peerIcpParentMiss().

unsigned short _icp_common_t::length

total length (bytes)

Definition at line 39 of file ICP.h.

Referenced by _icp_common_t(), createMessage(), icpHandleIcpV2(), icpHandleIcpV3(), and icpUdpSend().

uint32_t _icp_common_t::pad

Definition at line 43 of file ICP.h.

Referenced by _icp_common_t(), createMessage(), and peerIcpParentMiss().

uint32_t _icp_common_t::reqnum

req number (req'd for UDP)

Definition at line 41 of file ICP.h.

Referenced by _icp_common_t(), ICP3State::created(), ICP2State::created(), createMessage(), doV2Query(), doV3Query(), and handleReply().

uint32_t _icp_common_t::shostid

sender host id

Definition at line 45 of file ICP.h.

Referenced by createMessage().

unsigned char _icp_common_t::version

version number

Definition at line 37 of file ICP.h.

Referenced by createMessage(), and neighborAlive().

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






Web Site Translations