Re: BSD socket oddity with SO_REUSEADDR
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.