Source: https://doc.lagout.org/network/inetdoc/socket-c-4and6.pdf