OpendTect-6_4  6.4
Classes | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
Network::RequestPacket Class Reference

Classes

union  Header
 

Public Member Functions

 RequestPacket (od_int32 payloadsize=0)
 
 ~RequestPacket ()
 
od_int32 requestID () const
 
bool isNewRequest () const
 
bool isRequestEnd () const
 
bool isError () const
 
od_int32 payloadSize () const
 
const void * payload () const
 
void getStringPayload (BufferString &) const
 
od_int32 totalSize () const
 
int setIsNewRequest ()
 conveniently returns reqID() More...
 
void setRequestID (od_int32)
 for multi-packet requests More...
 
void setIsError ()
 
void setIsLast ()
 
void * allocPayload (od_int32 size)
 
void setPayload (void *, od_int32 size)
 buf becomes mine More...
 
void setStringPayload (const char *)
 
void addErrMsg (BufferString &) const
 
bool isOK () const
 checks whether the header is reasonable More...
 
od_int16 subID () const
 
void setSubID (od_int16)
 
void * payload (bool takeover=false)
 
void * getRawHeader ()
 
const void * getRawHeader () const
 

Static Public Member Functions

static od_int32 systemSizeLimit ()
 
static void setSystemSizeLimit (od_int32)
 
static od_int32 headerSize ()
 
static od_int32 getPayloadSize (const void *)
 

Static Protected Member Functions

static od_int16 cBeginSubID ()
 
static od_int16 cMoreSubID ()
 
static od_int16 cEndSubID ()
 
static od_int16 cErrorSubID ()
 

Protected Attributes

Header header_
 
char * payload_
 

Friends

class PacketFiller
 
class PacketInterpreter
 

Detailed Description

Constructor & Destructor Documentation

Network::RequestPacket::RequestPacket ( od_int32  payloadsize = 0)
Network::RequestPacket::~RequestPacket ( )

Member Function Documentation

void Network::RequestPacket::addErrMsg ( BufferString ) const
void* Network::RequestPacket::allocPayload ( od_int32  size)
static od_int16 Network::RequestPacket::cBeginSubID ( )
inlinestaticprotected
static od_int16 Network::RequestPacket::cEndSubID ( )
inlinestaticprotected
static od_int16 Network::RequestPacket::cErrorSubID ( )
inlinestaticprotected
static od_int16 Network::RequestPacket::cMoreSubID ( )
inlinestaticprotected
static od_int32 Network::RequestPacket::getPayloadSize ( const void *  )
static
void* Network::RequestPacket::getRawHeader ( )
inline
const void* Network::RequestPacket::getRawHeader ( ) const
inline
void Network::RequestPacket::getStringPayload ( BufferString ) const
static od_int32 Network::RequestPacket::headerSize ( )
inlinestatic
bool Network::RequestPacket::isError ( ) const
inline
bool Network::RequestPacket::isNewRequest ( ) const
inline
bool Network::RequestPacket::isOK ( ) const

checks whether the header is reasonable

bool Network::RequestPacket::isRequestEnd ( ) const
inline
const void* Network::RequestPacket::payload ( ) const
void* Network::RequestPacket::payload ( bool  takeover = false)

takeover: delete char[]

od_int32 Network::RequestPacket::payloadSize ( ) const
od_int32 Network::RequestPacket::requestID ( ) const
void Network::RequestPacket::setIsError ( )
inline
void Network::RequestPacket::setIsLast ( )
inline
int Network::RequestPacket::setIsNewRequest ( )

conveniently returns reqID()

void Network::RequestPacket::setPayload ( void *  ,
od_int32  size 
)

buf becomes mine

void Network::RequestPacket::setRequestID ( od_int32  )

for multi-packet requests

void Network::RequestPacket::setStringPayload ( const char *  )
void Network::RequestPacket::setSubID ( od_int16  )
static void Network::RequestPacket::setSystemSizeLimit ( od_int32  )
static
od_int16 Network::RequestPacket::subID ( ) const
static od_int32 Network::RequestPacket::systemSizeLimit ( )
static
od_int32 Network::RequestPacket::totalSize ( ) const
inline

Friends And Related Function Documentation

friend class PacketFiller
friend
friend class PacketInterpreter
friend

Member Data Documentation

Header Network::RequestPacket::header_
protected
char* Network::RequestPacket::payload_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019