rdict.x

来自「tcp/ip原理的第三卷」· X 代码 · 共 28 行

X
28
字号
/* rdict.x */

/* RPC declarations for dictionary program */

const	MAXWORD = 50;		/* maximum length of a command or word	*/
const	DICTSIZ = 100;		/* number of entries in dictionary	*/


struct example {		/* unused structure declared here to	*/
	int	exfield1;	/* illustrate how rpcgen builds XDR	*/
	char	exfield2;	/* routines to convert structures.	*/
};


/*------------------------------------------------------------------------
 * RDICTPROG - remote program that provides insert, delete, and lookup
 *------------------------------------------------------------------------
 */
program RDICTPROG {		/* name of remote program (not used)	*/
    version RDICTVERS {		/* declaration of version (see below)	*/
	int INITW(void)     = 1;/* first procedure in this program	*/ 
	int INSERTW(string) = 2;/* second procedure in this program	*/
	int DELETEW(string) = 3;/* third procedure in this program	*/
	int LOOKUPW(string) = 4;/* fourth procedure in this program	*/
    } = 1;			/* definition of the program version	*/
} = 0x30090949;			/* remote program number (must be	*/
				/*  unique)				*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?