nWaitForAckSync Class Reference

Inheritance diagram for nWaitForAckSync:

Inheritance graph
[legend]
Collaboration diagram for nWaitForAckSync:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 nWaitForAckSync (nMessage *m, int rec, unsigned short obj)
virtual ~nWaitForAckSync ()
virtual void AckExtraAction ()

Private Attributes

unsigned short netobj


Detailed Description

Definition at line 1415 of file nNetObject.cpp.


Constructor & Destructor Documentation

nWaitForAckSync::nWaitForAckSync ( nMessage m,
int  rec,
unsigned short  obj 
) [inline]

Definition at line 1418 of file nNetObject.cpp.

References nNetObject::knowsAbout, sn_netObjects, and st_Breakpoint().

01419             :nWaitForAck(m,rec),netobj(obj){
01420         if (sn_netObjects(obj)->knowsAbout[rec].acksPending<15)
01421         {
01422             sn_netObjects(obj)->knowsAbout[rec].acksPending++;
01423         }
01424         else
01425         {
01426             st_Breakpoint();
01427         }
01428     }

Here is the call graph for this function:

virtual nWaitForAckSync::~nWaitForAckSync (  )  [inline, virtual]

Definition at line 1429 of file nNetObject.cpp.

References tCHECK_DEST.

01429                               {
01430         tCHECK_DEST;
01431     }


Member Function Documentation

virtual void nWaitForAckSync::AckExtraAction (  )  [inline, virtual]

Reimplemented from nWaitForAck.

Definition at line 1433 of file nNetObject.cpp.

References nNetObject::knowsAbout, and sn_netObjects.

01434     {
01435         nNetObject* obj = sn_netObjects[netobj];
01436         if ( obj )
01437         {
01438             if ( obj->knowsAbout[receiver].acksPending)
01439             {
01440                 obj->knowsAbout[receiver].acksPending--;
01441             }
01442             else
01443             {
01444                 //                      st_Breakpoint();
01445             }
01446 
01447 #ifdef DEBUG
01448             /*
01449             if ( !obj->knowsAbout[receiver].knowsAboutExistence )
01450               {
01451                 tString str;
01452                 obj->PrintName( str );
01453                 con << "Received ack for object " << str << "\n";
01454               }
01455             */
01456 #endif
01457 
01458             obj->knowsAbout[receiver].knowsAboutExistence=true;
01459         }
01460         else
01461         {
01462             //          st_Breakpoint();
01463         }
01464     }


Member Data Documentation

unsigned short nWaitForAckSync::netobj [private]

Definition at line 1416 of file nNetObject.cpp.


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