[FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport behaviour under X)
[FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport behaviour under X)
- Subject: [FOUND] Mac OS X Mach-O BSD C PowerPlant (was Re: OpenTransport behaviour under X)
- From: Marc Stibane <email@hidden>
- Date: Sat, 8 Nov 2003 09:36:13 +0100
>
So if there is a sample that shows how to
>
use the BSD C library with Carbon and MSL C++ in CodeWarrior, finding
>
that should take a lot less time (for both of us) than me trying to
>
extract a working sample (which might not even work on CW9).
Larry Gerndt pointed me to:
Metrowerks CodeWarrior 9.0/
(CodeWarrior Examples)/
MacOS X Examples/
Mach-O BSD C Stationery/
Mac OS X Mach-O BSD C PowerPlant/
Now it compiles. Finally.
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?
(Please don't point me to the "Living in a dynamic environment" technote
- I just want the main (first) address to get it up and running).
Marc Stibane
Fesh! email@hidden
Kurf|rstenstr. 154 tel +49-30-3990 2690
10785 Berlin, Germany mobil +49-173-6522 422
In a world without walls and fences,
who needs windows and gates?
_______________________________________________
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.