/* * memcp.x - Specification of remote copy service * based on : UNIX Network Programming by Stevens, pp. 702 */ /* * Define one procedures: * memcopy(int) returns int bytes of information */ /*const MAXNAMELEN = 8000000; */ typedef string bufType<>; struct memPass { int bytes; bufType contents; int flag; }; program MEM_PROG { version MEM_VERS { memPass MEM_COPY(memPass) = 1; /* procedure number = 1 */ /* memPass MEM_COPY(int) = 1;*/ /* procedure number = 1 */ } = 1; /* version number = 1 */ } = 0x31234567; /* program number which can be * anything between * 0x20000000 to 0x3fffffff */