readme
来自「this gives details of the network progra」· 代码 · 共 26 行
TXT
26 行
Example of using a linked list (simply linked). Although this exampleis pretty simple, it shows how XDR handles pointers. The most interestingpart of this example is probably the generated code in ll_xdr - the xdr filter that encodes/decodes linked lists (uses xdr_pointer)The linked list is based on record defined as follows (in ll.x):struct foo { int x; foo *next;};Each record holds an int and a pointer to the next node.There is a single remote procedure that returns the sum ofthe integers in a linked list.FILES:ll.x: this is the RPC protocol definition file. llclient.c : client code, creates a linked list from the command line arguments and passed to the remote procedurellservice.c : server code, does the summation of ints in the linked list. rpcgen -C -Ss generated most of this.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?