WINSOCK PROGRAM TO PERFORM A BASIC MATH FUNCTION

I have an assignment that takes existing client and server code that's currently able to connect over an address and port and share data.

We're asked to add some code to it so that the following happens:
1. Client asks for two floating point numbers
2. Client asks for which Math operation to use (+,-,/,*)..

Then sends those variables to the server for processing.
The server in turn, needs to send back the result to the client.

I've got the client prompting the user for the numbers and operator and storing the input in 3 variables, but from there, I'm lost. While the remaining code continues on to make a connection with the server, I've no idea how to actually tell the server to execute the operation.

Can anyone point out a code example of this type of thing that I might be able to study?
Topic archived. No new replies allowed.