MOOS

CMOOSCommPkt Class Reference

#include <MOOSCommPkt.h>

List of all members.

Public Member Functions

bool Serialize (MOOSMSG_LIST &List, bool bToStream=true, bool bNoNULL=false, double *pdfPktTime=NULL)
int GetStreamLength ()
bool Fill (unsigned char *InData, int nData)
int GetBytesRequired ()

Public Attributes

unsigned char * m_pStream
unsigned char * m_pNextData
int m_nStreamSpace
unsigned char DefaultStream [MOOS_PKT_DEFAULT_SPACE]

Protected Member Functions

bool InflateTo (int nNewStreamSize)
bool CopyToStream (unsigned char *pData, int nBytes)

Protected Attributes

int m_nByteCount
int m_nMsgLen
bool m_bAllocated


Detailed Description

This class is part of MOOS's internal transport mechanism. It any number of CMOOSMsg's can be packed into a CMOOSCommPkt and sent in one lump between a CMOOSCommServer and CMOOSCommClient object. It is never used by a user of MOOSLib


Member Function Documentation

bool CMOOSCommPkt::Serialize MOOSMSG_LIST &  List,
bool  bToStream = true,
bool  bNoNULL = false,
double *  pdfPktTime = NULL
 

This function stuffs messages in/from a packet


Member Data Documentation

bool CMOOSCommPkt::m_bAllocated [protected]
 

true is the packet has been infated to increase capicity and m_pStream no longer points to DefaultStream but to heap space allocated with new


The documentation for this class was generated from the following files:
Generated on Fri Sep 28 20:14:20 2007 for MOOSLIB by  doxygen 1.4.6