My current idea is to press a button, sends a data, and then receives the different data, perform different command. Wanted to use the IF.
Make up a deal. But the teacher said he wrote in the program, such as sending AA, was shut down, send BB, will lock screen..
But want to know how to do it, written agreement is? Can an article or demo for your reference is the best. Thank you
CodePudding user response:
Winsock TCPselect
CodePudding user response:
Protocol:1, command format
2, integrity, self checking (if involved in network transmission, also need to consider credible checking)
3, execute the command