#include <pesnetworkadapter.h>
Public Methods | |
| void | receivePing () |
| void | sendString (char *str) |
| void | sendPingReply (int condition) |
| void | sendResult (float result) |
| void | receiveTask (PESTask *tsk) |
| void | sendTask (PESSlaveInfo *slv, PESTask *tsk) |
| void | ping (int tid, int timeout) |
| void | recievePing (int *slave, int *status) |
| void | recieveString (int *slave, int *len, char *str) |
| void | Init () |
| void | InitAsSlave () |
| int | checkMessage () |
| int | getMessageType () |
| void | closeNetwork () |
Public Attributes | |
| int | me |
| int | mytid |
| int | tids [200] |
| int | nproc |
This class provides required functionality to use PES network functions. Both slave and master classes should use this class to communicate.
|
|
Checks for a new message
|
|
|
Close PES connection |
|
|
Used to learn the type of PES message recieved. When there's no message in the buffer this function blocks the execution of program until a message arrives. To check for a message use checkMessage which immidiately returns.
|
|
|
Connects to PVM service. |
|
|
This function initiates PES system as slave. This function also recieves initial broadcast data. This initial broadcast data contains information about other slaves in the system. |
|
||||||||||||
|
Sends a ping packet with timeout 'timeout' seconds to slave with TaskID 'tid'
|
|
|
Recieves ping packet |
|
|
Recieves a task from master
|
|
||||||||||||
|
Recieves ping reply.
|
|
||||||||||||||||
|
Recieves a string
|
|
|
Sends ping reply to the master
|
|
|
Sends result to the master
|
|
|
Sends 'str' to the master
|
|
||||||||||||
|
Sends Task 'tsk' to Slave 'slv'
|
|
|
Used to denote which slave this machine is in the tids table.
|
|
|
The TaskID of process given by PVM system. |
|
|
actual number processes in the system |
|
|
TaskID's of other processes |
1.2.18