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 16:42:45 -0700
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().
If you try to send data on a UDP socket to a diff address than the
one used in soconnect() you get back EISCONN. (Yes, this is expected
functionality in our product.)
We were also using this on TCP sockets to close the channel w/o
destroying the socket.
I though sock_shutdown() might work, but it looks to be doing more
than a disconnect.
TIA.
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.1 (Build 2130)
iQA/AwUBQopxC3nR2Fu2x7aiEQK/zQCglAPCHPPJFyxFgQnklW5J1a9KeXUAn2Hu
w6gOdzAbF21uBCkVCPNDUMmD
=fiCa
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
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