00001
00007 #ifndef COMMUNICATE_H
00008 #define COMMUNICATE_H
00009
00010 class MIStream;
00011 class MOStream;
00012
00013 #define ALL -1
00014 #define ALLBUTME -2
00015 #define BUFSIZE 4096
00016 #define ANY -1
00017
00018 class Communicate {
00019
00020 private:
00021 int CsmHandlerIndex;
00022
00023 public:
00024 Communicate(void);
00025 ~Communicate();
00026 MIStream *newInputStream(int pe, int tag);
00027 MOStream *newOutputStream(int pe, int tag, unsigned int bufsize);
00028 void *getMessage(int PE, int tag);
00029 void sendMessage(int PE, void *msg, int size);
00030 };
00031
00032 #include "MStream.h"
00033
00034 #endif