• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: solisten()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: solisten()


  • Subject: Re: solisten()
  • From: Michael Smith <email@hidden>
  • Date: Fri, 9 Nov 2007 12:56:28 -0800


On Nov 9, 2007, at 12:13 PM, Michael Tuexen wrote:

why does solisten() in Leopard contain

	if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0) {
		error = EOPNOTSUPP;
		goto out;
	}

This was not there in Tiger.

I do understand that you can not use listen() for UDP sockets, but
this should be handled in UDP specific code.

Without actually knowing why the change was made, I would point out that saying "this is a UDP thing" specifically fails to notice that the code in question basically says "if the protocol does not require connections, you cannot listen for a connection".


That seems perfectly reasonable to me.

 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: solisten()
      • From: Michael Tuexen <email@hidden>
References: 
 >solisten() (From: Michael Tuexen <email@hidden>)

  • Prev by Date: solisten()
  • Next by Date: Re: solisten()
  • Previous by thread: solisten()
  • Next by thread: Re: solisten()
  • Index(es):
    • Date
    • Thread