Re: OpenTransport behaviour under X
Re: OpenTransport behaviour under X
- Subject: Re: OpenTransport behaviour under X
- From: "Philip D. Wasson" <email@hidden>
- Date: Fri, 7 Nov 2003 14:02:26 -0500
On Friday, Nov 7, 2003, at 03:33 US/Eastern, Marc Stibane wrote:
I agree. We have networking code that's shared between Mac OS 9 (on
top
of GUSI), Mac OS X (native BSD Sockets), and Windows (WinSock). There
are a few #ifdefs, but mostly it's all the same and seems to work
pretty well.
Sure. I would love to. That was my first attempt when starting the
port.
However I couldn't get it to compile (Pro 9, PP 2.2, Jaguar):
Ahh, well, that WAS a bit of a pain. It took me a couple days of trying
different things to get it to compile. First, you need to use Mac OS
X's C library instead of MSL C (but you can still use MSL C++). There
is allegedly a sample project that is configured that way, but I must
have missed it. There were some conflicts, as far as I could tell,
between some of the necessary CodeWarrior precompiled headers, and
getting that to work was what took me so long. Again, the sample is
supposed to show you how to do it right, and maybe they made it easier
with CodeWarrior 9 (I still have 8.3). Also, you have to link to the
System framework, which I don't believe is part of a stock
Carbon/PowerPlant project. 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). But write
back if you can't find it and I'll see what I can scrape together.
----------------------------------------
Philip D. Wasson
email@hidden
_______________________________________________
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.