22 #ifdef MPI_DIST_SERVER
32 #ifdef MPI_DIST_SERVER
33 class MPIStreamBuf :
public std::streambuf
36 MPIStreamBuf (
int other_rank, MPI_Comm comm = MPI_COMM_WORLD);
40 virtual int underflow ();
41 virtual int overflow (
int c = EOF);
42 virtual std::streamsize xsputn (
const char * s, std::streamsize n);
56 BufferInfo (
char * addr, dbsize_t size) : addr(addr), size(size) {}
61 typedef std::vector<BufferInfo> BufferList;
69 void add_inbuffer (
char * addr, dbsize_t size);
70 void add_outbuffer (
char * addr, dbsize_t size);
72 virtual std::streamsize showmanyc ();
73 virtual int underflow ();
75 virtual int overflow (
int c = EOF);
82 BufferList outbuffers;
83 std::streamsize inbufferindex;
84 std::streamsize outbufferindex;
86 dbsize_t outcharindex;
This header contains typedefs for seamless switching between 32- and 64-bit builds of Percy++...
Defines the basic structure of protocol parameters (PercyParams), client parameters (PercyClientParam...