Re: OpenTransport behaviour under X
Re: OpenTransport behaviour under X
- Subject: Re: OpenTransport behaviour under X
- From: Eric Schlegel <email@hidden>
- Date: Fri, 7 Nov 2003 07:49:42 -0800
On Nov 7, 2003, at 12:33 AM, Marc Stibane wrote:
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):
Subject: Re: sockets in Powerplant?
Date: 17.10.2003 23:22 Uhr
Received: 17.10.2003 23:40 Uhr
From: Marc Stibane, email@hidden
To: email@hidden
Since nobody answered my question yet, I describe what I've tried
already:
I ran into a heap of (compiler and linker) probs when I tried to
eliminate the glue code which bridges the "socket" application
routines
to OpenTransport and use native sockets instead.
I made a new Mach-O target, and a new "glue" file to native sockets,
which would include <sys/socket.h>. Turned out, I needed to include
<netdb.h>, which then gave duplicate definitions errors with MSL. OK,
tried to get rid of MSL - bummer.
PowerPlant needs the MSL <exceptions>.
Does anyone have a (patched) PowerPlant which doesn't need MSL
anymore?
Or how can a PowerPlant app use sockets?
Any hints appreciated.
Does anyone have a sample PP app using sockets?
This is kind of a hack idea, but maybe you could do this in a common
header file:
#define select( nfds, readfds, writefds, exceptfds, timeout) my_select(
nfds, readfds, writefds, exceptfds, timeout )
..etc for other socket APIs...
and then you could have a single source file that implements my_select,
etc by just calling the native APIs, and that only includes the native
header files, and doesn't include any PowerPlant or MSL header files.
That might help you avoid the compilation issues.
-eric
_______________________________________________
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.