ReadArchiver< Archiver > Class Template Reference

Read or write network read data. More...

List of all members.

Static Public Member Functions

static bool Archive (int8 *buf, int &len, nAddress &addr)


Detailed Description

template<class Archiver>
class ReadArchiver< Archiver >

Read or write network read data.

Definition at line 1949 of file nSocket.cpp.


Member Function Documentation

template<class Archiver>
static bool ReadArchiver< Archiver >::Archive ( int8 buf,
int &  len,
nAddress addr 
) [inline, static]

Definition at line 1952 of file nSocket.cpp.

Referenced by nSocket::Read().

01952 {
01953 public:
01954     static bool Archive( int8 * buf, int & len, nAddress & addr )
01955     {
01956         // start archive block if archiving is active
01957         Archiver archive;
01958         if( archive.Initialize( recordingSectionRead ) )
01959         {
01960             // archive length of message
01961             archive.Archive( len );
01962             if ( len < 0 )
01963                 return true;
01964 
01965             // archive source address
01966             // BindArchiver< Archiver >::Archive( archive, addr );
01967             archive.Archive( addr );
01968 
01969             // archive data
01970             for( int i = 0; i < len; ++i )
01971                 archive.Archive( buf[ i ] );
01972 
01973             archive.Separator();
01974 
01975             return true;
01976         }
01977 

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:52:28 2008 for Armagetron Advanced by  doxygen 1.5.4