📄 readme
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -