/*----------------------------------------------------------------------------- Filename: mywho.x Author: Anonymous This file is used by RPCGEN to automatically generate the needed client and server code for SUN's implementation of remote procedures. -----------------------------------------------------------------------------*/ /* Define constants */ const MAXSTRLEN = 1024; typedef struct whonode *wholist; /* Define a who node struct for who information */ struct whonode { char whoname[MAXSTRLEN]; wholist next; }; /* union used as a return structure for who listing */ union readwho_result switch (int error) { case 0: wholist thelist; default: void; }; /* Set up RPC client server program details */ program MYWHO_PROG { version MYWHO_VERS { readwho_result WHOLIST(string) = 1; /*procedure number = 1 */ } = 1; } = 0x2f398452;