Re: KPI replacement for sodisconnect?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -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----- _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com 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. smime.p7s
participants (1)
-
Josh Graessley