b>port</b> variables are strings, e.g. &quot;www.example.com&quot; and &quot;443&quot;. Note also the use of the family variable, which can take the values of AF_INET or AF_INET6 based on the command line -6 option, to allow specific connections to an ipv4 or ipv6 enabled host.</p>

<p>Sockets created using the methods described above will automatically be blocking sockets - which is exactly what we want for this example.</p>

<p>Once the socket has been created and connected we need to associate it with a 