Re: KPI replacement for sodisconnect?
Re: KPI replacement for sodisconnect?
- Subject: Re: KPI replacement for sodisconnect?
- From: Josh Graessley <email@hidden>
- Date: Tue, 17 May 2005 21:37:46 -0700
TCP sockets aren't meant to be reused liked that. Just close the
socket and open a new one for a new connection. sendto won't work
with a TCP socket either.
-josh
On May 17, 2005, at 9:32 PM, Brian Bergstrand wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks Josh. Does this also work for TCP sockets or will it return an
error since there's an actual connection state?
On May 17, 2005, at 6:42 PM, Josh Graessley wrote:
You do this the same way in the kernel you would in user space.
Connect again but specify the INADDR_ANY address (0.0.0.0). Yeah,
it's sorta weird, but that's just the way it is. You can also
connect directly to a different address.
-josh
On May 17, 2005, at 3:32 PM, Brian Bergstrand wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am I missing something, or is there no KPI replacement for
sodisconnect()? We were using this on UDP sockets to disassociate an
address set with soconnect().
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.1 (Build 2130)
iQA/AwUBQorFV3nR2Fu2x7aiEQJQcwCgnls3/rEqoMOvccDGZdPm+++8Qh0AoL5n
zbTB85CC9Le7a73zdziSXPGs
=zlt7
-----END PGP SIGNATURE-----
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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