John Harris wrote: > Thing is, binding a port and expecting it to be open to every network > interface you've got are two very different things. Once again John Harris is completely wrong. The bind system call is precisely how a program specifies which network interfaces it wants to open a socket to. A program that calls bind with IN6ADDR_ANY_INIT or INADDR_ANY and a specific port number expects that port to be open to every network interface the computer has. A program that doesn't intend to listen on every network interface will bind to an IP address assigned to one interface to listen only on that network, or maybe a localhost address to listen only on the loopback interface. The port and the network interface are specified together in a single sockaddr object passed to a single system call, so it's very much the same thing. Björn Persson
Attachment:
pgpkCuthVlI5M.pgp
Description: OpenPGP digital signatur
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx