March 12th, 2013, 02:44 PM
Winsock Math Operations client \ server
I have an assignment that takes existing client and server code, that is fully able to make a TCP connection with arguments and share data and add to it.
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?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!