File: PVM.h

package info (click to toggle)
netpipe 2.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 160 kB
  • ctags: 109
  • sloc: ansic: 979; makefile: 113
file content (35 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
  Define the protocol structure to be used by NetPIPE for PVM.

  $Id: PVM.h,v 1.3 1998/09/28 15:13:37 ghelmer Exp $
  */

typedef struct protocolstruct ProtocolStruct;

struct protocolstruct
{
    /* Keep track of our task id */
    int     mytid;

    /* Keep track of the other's task id */
    int     othertid;
};


/*
  Undefine one of the following to determine the type of data
  encoding for the PVM message passing.

  DataDefault means that PVM uses XDR encoding which ensures that
  the data can be packed / unpacked across non-homogeneous machines.

  If you know that the machines are the same, then you can use DataRaw
  and save some time.

  DataInPlace means that the data is not copied at pack time, but is
  copied directly from memory at send time.
  */

#define PVMDATA     PvmDataDefault
/* #define PVMDATA     PvmDataRaw */
/* #define PVMDATA     PvmDataInPlace */