Re: SCTP. V4 v. V6 addresses...
Re: SCTP. V4 v. V6 addresses...
- Subject: Re: SCTP. V4 v. V6 addresses...
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 2 Aug 2010 10:18:56 +0100
On 1 Aug 2010, at 10:19, J P May wrote:
> IN WHAT SITUATIONS would you get to "point A" in the code above?
On my Mac, which is a relatively stock setup, I get this pretty much every time. I downloaded the latest UDPEcho from the web site, modified it to log "Point A" when it hits point A, and then ran it as follows:
1. In one Terminal window, start UPDEcho in listen mode:
> $ build/Debug/UDPEcho -l 12345
2. In another Terminal window on the same Mac, start it in send mode:
> $ build/Debug/UDPEcho localhost 12345
Both the listener and the sender log point A.
This happens because the listen listens on IPv4 and IPv6 simultaneously. I verify this with netstat:
> $ netstat -an | grep 12345
> udp46 0 0 *.12345 *.*
Note that it says "udp46", not "udp4" or "udp6".
You don't, perchance, have IPv6 disabled on your machine?
> {Of course, iPhones have no IP6 if I understand the situation correctly.}
iOS 4 supports IPv6 in much the same way as Mac OS X does.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden