• 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: Repost: OpenTransport problems under X [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repost: OpenTransport problems under X [solved]


  • Subject: Re: Repost: OpenTransport problems under X [solved]
  • From: Quinn <email@hidden>
  • Date: Thu, 27 Nov 2003 16:32:55 +0000

At 10:01 -0600 27/11/03, Marc Epard wrote:
Shouldn't the first argument be skt+1?

Yes. The first argument to select is not the number of sockets in the select set, it's the size of the select set. In the general case you derive this by calculating the maximum file descriptor number of the sockets that you put in the set. You can see this in my SocketCancel sample code.

<http://developer.apple.com/samplecode/Sample_Code/Networking/SocketCancel/SocketCancel.c.htm>

In the simple case, where there's only one socket, you can just pass skt+1.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Repost: OpenTransport problems under X [solved] (From: Marc Epard <email@hidden>)

  • Prev by Date: Re: Repost: OpenTransport problems under X [solved]
  • Next by Date: Re: Repost: OpenTransport problems under X [solved]
  • Previous by thread: Re: Repost: OpenTransport problems under X [solved]
  • Next by thread: Re: Repost: OpenTransport problems under X [solved]
  • Index(es):
    • Date
    • Thread