client_main.c

来自「unix网络编程的源码」· C语言 代码 · 共 17 行

C
17
字号
#include	"svmsg.h"

void	client(int, int);

int
main(int argc, char **argv)
{
	int		msqid;

		/* 4server must create the queue */
	msqid = Msgget(MQ_KEY1, 0);

	client(msqid, msqid);	/* same queue for both directions */

	exit(0);
}

⌨️ 快捷键说明

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