⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rdict.x

📁 这是用c++编写的代码,用tcp,udp形式进行网络编程,代码很好.
💻 X
字号:
/* dict.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -