Code
TODO
Reference
- https://stackoverflow.com/questions/4181784/how-to-set-socket-timeout-in-c-when-making-multiple-connections
- https://stackoverflow.com/questions/2876024/linux-is-there-a-read-or-recv-from-socket-with-timeout
- https://stackoverflow.com/questions/14370489/what-can-cause-a-resource-temporarily-unavailable-on-sock-send-command
- http://man7.org/linux/man-pages/man2/select.2.html
- https://linux.die.net/man/2/select_tut
- https://linux.die.net/man/2/connect
- https://linux.die.net/man/3/fd_set
- https://stackoverflow.com/questions/28508374/ssl-connect-for-non-blocking-socket
- https://stackoverflow.com/questions/7698488/turn-a-simple-socket-into-an-ssl-socket
- https://www.openssl.org/docs/man1.1.1/man3/SSL_read.html
- https://stackoverflow.com/questions/28481993/non-blocking-socket-how-to-check-if-a-connection-was-successful
- https://stackoverflow.com/questions/118945/best-c-c-network-library
- https://github.com/dermesser/libsocket
- https://github.com/fpagliughi/sockpp