BindArchiver< Archiver > Class Template Reference

List of all members.

Static Public Member Functions

static void Archive (Archiver &archiver, nAddress &trueAddress)
static bool Archive (int &ret, nAddress &trueAddress)


Detailed Description

template<class Archiver>
class BindArchiver< Archiver >

Definition at line 1559 of file nSocket.cpp.


Member Function Documentation

template<class Archiver>
static void BindArchiver< Archiver >::Archive ( Archiver &  archiver,
nAddress trueAddress 
) [inline, static]

Definition at line 1562 of file nSocket.cpp.

Referenced by nSocket::Bind().

01562 {
01563 public:
01564     static void Archive( Archiver & archiver, nAddress & trueAddress  )
01565     {
01566         // byte-archive the address
01567         struct sockaddr * addr = static_cast< struct sockaddr * >( trueAddress );
01568         unsigned char * addr_char = reinterpret_cast< unsigned char *>( addr );
01569         for( int i = sizeof( sockaddr )-1; i>=0; --i )
01570             archiver.Archive( addr_char[i] ).DontSeparate();
01571 

Here is the caller graph for this function:

template<class Archiver>
static bool BindArchiver< Archiver >::Archive ( int &  ret,
nAddress trueAddress 
) [inline, static]

Definition at line 1573 of file nSocket.cpp.

01576     {
01577         // start archive block if archiving is active
01578         Archiver archive;
01579         if ( archive.Initialize( recordingSection ) )
01580         {
01581             archive.Archive( ret );
01582             archive.Archive( trueAddress );
01583             //Archive( archive, trueAddress );
01584 
01585             return true;
01586         }
01587 


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