Re: TCPIP PortRef?
Re: TCPIP PortRef?
- Subject: Re: TCPIP PortRef?
- From: "Duane Murphy" <email@hidden>
- Date: Tue, 26 Nov 2002 15:52:20 -0800
--- At Tue, 26 Nov 2002 22:49:30 +0000, Quinn wrote:
>
At 10:43 -0800 26/11/02, Duane Murphy wrote:
>
>Calling OTGetProviderPortRef() on a UDP port and on a InetSvcRef both
>
>yielded 0 (kOTInvalidPortRef).
>
>
That's a known limitation of OTGetProviderPortRef.
>
>
>Am I overlooking an API that might provide this information? Is there
>
>some other technique to use?
>
>
Typically this is done using Network Setup. The current TCP/IP
>
configuration will give you the name of the port that TCP/IP is using.
Thanks Quinn, I was afraid of that.
Just as an FYI, I solved the problem by comparing hardware addresses. The
hardware address of the TCP/IP port is available and that can be compared
to the hardware address of the Ethernet port I am using.
...Duane
_______________________________________________
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.