This state of source code was originally taken by stgatilov from:
  https://github.com/stgatilov/clsocket
From commit 8340c07802078d905e60e294211a1807ec6f0161 of 2020-02-24.
