• 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: BSD socket oddity with SO_REUSEADDR
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BSD socket oddity with SO_REUSEADDR


  • Subject: Re: BSD socket oddity with SO_REUSEADDR
  • From: Aaron Ballman <email@hidden>
  • Date: Tue, 15 Jul 2003 14:16:20 -0500

Now I'm not certain if these is even a valid thing to be looking at.. but I have been putting in a ton of DebugStr's to exactly what's going on with the listening code. While doing this I noticed something that didn't make much sense to me.

I'm tracking the socket by it's file descriptor (mSocket) and I noticed that the file descriptor I create and the file descriptor I close are two different integers. For instance, when I create the socket, it reports 18 as the descriptor, and when I go to close the socket it reports that it's closing the descriptor 20.

Is that normal? I've never logged by descriptors before (so I don't know if it's legit to use them as a tracking ID), but this caught my eye as something out of the ordinary.

~Aaron
--
Handy UNIX Commands:

sudo grep -e "My mind" -H -r /
mv /mnt/fuji /mnt/everest
mv "Ignorance" /dev/null
_______________________________________________
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: BSD socket oddity with SO_REUSEADDR (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Re: BSD socket oddity with SO_REUSEADDR
  • Next by Date: Re: BSD socket oddity with SO_REUSEADDR
  • Previous by thread: Re: BSD socket oddity with SO_REUSEADDR
  • Next by thread: Re: BSD socket oddity with SO_REUSEADDR
  • Index(es):
    • Date
    • Thread