#include <OMKPvmMessage.h>
Inheritance diagram for OMK::PvmMessage:
Public Types | |
enum | MessageTag { ProcessTable, EndOfSimulation, EnterBarrier, SiteName, LocalInitSuccessfull, ExitBarrier, SynchronisationMessage, MirrorNeedsInitialValues, InitialValuesForMirror, NameServiceGetId, NameServiceGetString, NameServiceReturnId, NameServiceReturnString, NameServiceVerifyLocalNameServer, NameServiceVerifyResult, updateProcessTable, addNewSite, pingMessage } |
Public Member Functions | |
PvmMessage (int bufid) | |
constructor | |
virtual | ~PvmMessage () |
destructor | |
virtual int | getSize () const |
getSize find out the number of bytes used by the buffer | |
Protected Attributes | |
int | _currentBuffer |
Definition at line 30 of file OMKPvmMessage.h.
Definition at line 34 of file OMKPvmMessage.h.
00034 {ProcessTable, 00035 EndOfSimulation, // signal 00036 EnterBarrier, // signal 00037 SiteName, 00038 LocalInitSuccessfull, //help debugging value = 4 00039 ExitBarrier, // signal 00040 SynchronisationMessage,//help debugging value = 6 00041 MirrorNeedsInitialValues,//help debugging value = 7 00042 InitialValuesForMirror, 00043 NameServiceGetId, 00044 NameServiceGetString, 00045 NameServiceReturnId, 00046 NameServiceReturnString, 00047 NameServiceVerifyLocalNameServer, 00048 NameServiceVerifyResult, 00050 updateProcessTable, //added by Chadi to notify already 00051 addNewSite, //turning processes to consider 00052 // the new added process 00053 pingMessage 00055 };
PvmMessage::PvmMessage | ( | int | bufid | ) |
constructor
Definition at line 34 of file OMKPvmMessage.cxx.
00034 : 00035 _currentBuffer ( bufid ) 00036 { 00037 00038 }
PvmMessage::~PvmMessage | ( | ) | [virtual] |
int PvmMessage::getSize | ( | ) | const [virtual] |
getSize find out the number of bytes used by the buffer
Definition at line 45 of file OMKPvmMessage.cxx.
References _currentBuffer.
Referenced by OMK::PvmOutgoingMessage::insertTimeStamp(), and OMK::Svm::processReceivedMessages().
00046 { 00047 int bytes( 0 ) ; 00048 int info, msgtag, tid ; 00049 info = pvm_bufinfo ( _currentBuffer, &bytes, &msgtag, &tid ) ; 00050 #ifdef _DEBUGPVMMESS 00051 std::cerr <<"PvmMessage::getSize() of message of tag "<<msgtag<<", of sender"<<tid<<". I'm "<<pvm_mytid()<<std::endl; 00052 #endif 00053 assert ( info == 0 ); 00054 return bytes ; 00055 }
int OMK::PvmMessage::_currentBuffer [protected] |
Definition at line 69 of file OMKPvmMessage.h.
Referenced by OMK::PvmIncomingMessage::deleteCurrentBuffer(), OMK::PvmIncomingMessage::get(), getSize(), OMK::PvmIncomingMessage::hasMessage(), OMK::PvmIncomingMessage::initialise(), OMK::PvmOutgoingMessage::insertTimeStamp(), OMK::PvmOutgoingMessage::pack(), OMK::PvmOutgoingMessage::PvmOutgoingMessage(), OMK::PvmOutgoingMessage::reinitAndRevertPvmContext(), OMK::PvmUnicastMessage::send(), OMK::PvmMulticastMessage::send(), and OMK::PvmOutgoingMessage::~PvmOutgoingMessage().
Documentation generated on Mon Jun 9 11:46:03 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |