A simple RPC package consisting of user-stub and server-stub. The rpc function should:
-create a socket
-request connetction from server
-pack funtion name and input argument into a message body
-set and unpack reply
-return result and error code
The server-stub receives the message sent by the user-stub, unpacks it and calls the appropriate procedure with all the specified arguments. When it's completed, server-stub will send a reply to the user-stub containing the results.
Do I have to use "winsock library" here? I'm very unfamiliar with all this, but examples I found online used it. I suppose you do for the socket?
Related Article:C++ recursive function (very simple one)
is a C++ discussion thread by codeyy that has 13 replies, was last updated 5 months ago and has been tagged with the keywords: c++, function, recursion, recursive.