These programs exchange UDP datagrams. The user types a message with the client and the server replies with an acknowledgement (“OK!”). If the user sends a number, then the server shows the logic state of the corresponding GPIO on the RPi.
Dealing with the GPIO requires the WiringPi library. It provides a C library and a shell utility named