Torf 0 Newbie Poster

Ok, what I am trying to do:

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
-send message
-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?