readme
来自「this gives details of the network progra」· 代码 · 共 22 行
TXT
22 行
This is a better implementation of the RPC bases username and uid lookup system.Here we include a request status indicator to the return type of eachremote procedure so we can really find out if the lookup worked.For looking up usernames (given a uid), the remote procedure returnsa struct that contains a flag indicating whether or not the lookupsucceeded (whether the uid exists on the server system), and the actualusername as an RPC string.The byname procedure returns a similar structure, this one contains aflag indicating found/notfound and the resulting UID (when the lookup was successful).Files:userlookup.x: the protocol definition file. userlookup_services.c: the code for the remote procedures.userlookup_client.c: the client main().The other files are generated by rpcgen (_svc.c, _clnt.c, _xdr.c & .h).
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?