📄 client.c
字号:
#include "unpipc.h" /* our header */#include "square.h" /* generated by rpcgen */intmain(int argc, char **argv){ CLIENT *cl; struct timeval tv; if (argc != 3) err_quit("usage: client <hostname> <protocol>"); cl = Clnt_create(argv[1], SQUARE_PROG, SQUARE_VERS, argv[2]); tv.tv_sec = 10; tv.tv_usec = 0; if (clnt_call(cl, NULLPROC, xdr_void, NULL, xdr_void, NULL, tv) != RPC_SUCCESS) err_quit("%s", clnt_sperror(cl, argv[1])); exit(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -