Assignment for network's class. Communication protocol between server and client for math calculator system.
- So you don't have a calculator at home? We've got you!
- Ps. You need a computer with internet connection.
- Magic!!
- We don't have time to sleep.
- Nokhy
- Train
- Keyok
If for some weird reason you want to contact us, you can send an email to ribtwentythree@gmail.com
Technologies used:
You can use eclipse to import the project from a folder and run the main class.
Client request | Server response | Absolut server response | Client receive cost in bytes | Server receive cost in bytes |
---|---|---|---|---|
is available | returns a confirmation message if the server is available. | yes or nothing. | 16 | 16 |
solve [MATH OP] | solve the [MATH OP] and store the result in the server and return a token and a needed size to client get the message with result information. | [token];[necessary size to get token message] | 1k | 512k |
get [TOKEN] | returns a message with informed length containing the solution. | [solution] | is volatile | 1k |
Client Send | Client Receive |
---|---|
is available | yes |
solve 1+2 | token;2 |
get token | 3 |
Want to contribute? Great! Do it.
Do whatever you want!
Free Software, Hell Yeah!