Referenced in https://gamehacking.academy/lesson/6/4.
An example chatbot that will connect to a local Wesnoth 1.14.9 server with the username ChatBot and respond to the \wave command.
The majority of the code is based on the Winsock example provided by Microsoft: https://docs.microsoft.com/en-us/windows/win32/winsock/complete-client-code