• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OpenTransport behaviour under X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: OpenTransport behaviour under X (From: Marc Stibane <email@hidden>)

  • Prev by Date: Re(2): Proxy Tunneling (via the HTTP CONNECT method)
  • Next by Date: Re: OS X and URLAccess
  • Previous by thread: Re: OpenTransport behaviour under X
  • Next by thread: Re: OpenTransport behaviour under X
  • Index(es):
    • Date
    • Thread