Re: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport
Re: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport
- Subject: Re: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport
- From: Larry Gerndt <email@hidden>
- Date: Sat, 08 Nov 2003 23:51:49 -0800
>
However, there are some OpenTransport calls in the code which I need to
>
replace with corresponding socket calls:
>
>
// First get my own IP address
>
InetInterfaceInfo OTInetInfo;
>
>
if (OTInetGetInterfaceInfo(&OTInetInfo,kDefaultInetInterface)==noErr)
>
host.sin_addr.s_addr = OTInetInfo.fAddress;
>
else
>
return -1;
>
>
What would be the corresponding socket call?
I don't know what the socket equivalent is, but if it helps, I just continue
to use that OT function, since it gives the right answer (and using OT
headers don't conflict with BSD headers).
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
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.