#include <PsnPvmUnicastMessage.h>
Inheritance diagram for PsnPvmUnicastMessage:


Public Methods | |
| virtual | ~PsnPvmUnicastMessage () |
| destructor | |
| PsnPvmUnicastMessage (int distantSiteId) | |
| constructor specifying the distant site ID to which message is sent | |
| virtual void | send (PsnPvmMessage::MessageTag tag) |
| send all previously packed data to destination and reinitiliases the send buffer | |
| virtual void | setDistantSiteId (int distantSiteId) |
| change the distant site id | |
Protected Attributes | |
| int | _distantSiteId |
Definition at line 10 of file PsnPvmUnicastMessage.h.
|
|
destructor
Definition at line 13 of file PsnPvmUnicastMessage.cxx.
00014 {
00015
00016 }
|
|
|
constructor specifying the distant site ID to which message is sent
Definition at line 6 of file PsnPvmUnicastMessage.cxx.
00006 : 00007 _distantSiteId ( distantSiteId ) 00008 { 00009 00010 } |
|
|
send all previously packed data to destination and reinitiliases the send buffer
Implements PsnPvmOutgoingMessage. Definition at line 25 of file PsnPvmUnicastMessage.cxx. References PsnPvmMessage::_currentBuffer, _distantSiteId, PsnPvmOutgoingMessage::_timeStamped, PsnPvmOutgoingMessage::checkForChangedBuffer(), PsnPvmOutgoingMessage::checkForSendErrors(), PsnPvmMessage::MessageTag, and PsnPvmOutgoingMessage::reinitAndRevertPvmContext(). Referenced by PsnSvm::disconnectFromDistributedSimulation(), PsnMirrorObjectHandle::registerToReferenceObject(), and PsnPvmSvmLink::sendOutgoingBuffer().
00026 {
00027 assert ( _timeStamped ) ;
00028
00029 assert ( _currentBuffer != 0 ) ;
00030
00031 assert ( _distantSiteId != 0 ) ;
00032
00033 #ifdef _DEBUGPVMMESS
00034 cerr<<"PsnPvmUnicastMessage:"<<this<<":send ("<<tag<<") to "<< _distantSiteId << " buffer "<<_currentBuffer<<endl;
00035 #endif
00036
00037 int oldbuf = pvm_setsbuf ( _currentBuffer ) ;
00038
00039 checkForChangedBuffer ( oldbuf, __LINE__, __FILE__ ) ;
00040
00041 int info = pvm_send ( _distantSiteId, tag ) ;
00042
00043 checkForSendErrors ( info ) ;
00044
00045 reinitAndRevertPvmContext ( oldbuf ) ;
00046 }
|
|
|
change the distant site id
Definition at line 19 of file PsnPvmUnicastMessage.cxx. References _distantSiteId. Referenced by PsnPvmSvmLink::unpack().
00020 {
00021 _distantSiteId = distantSiteId ;
00022 }
|
|
|
Definition at line 25 of file PsnPvmUnicastMessage.h. Referenced by send(), and setDistantSiteId(). |
| Documentation generated on Mon Nov 25 15:26:23 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |