• 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: Marc Stibane <email@hidden>
  • Date: Fri, 7 Nov 2003 09:33:08 +0100

>>> The problem is that the application was written for WinSocks, and
>>> calls
>>> "select". The glue code uses OTLook to simulate the behaviour of
>>> "select"
>>> - which doesn't want to read data, but only to find out whether new
>>> data
>>> arrived.
>>> Later the application calls "recv" to read that data.

>> The select call is available natively in OSX, plus the standard unix
>> socket calls are very similar to Winsock. Could you have it use the
>> native socket layer? I'm sure the results would be a lot better than
>> using yet another layer on top of OT, which itself is a layer on top
>> of native sockets.

>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):

>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?


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.

  • Follow-Ups:
    • Re: OpenTransport behaviour under X
      • From: "Philip D. Wasson" <email@hidden>
    • Re: OpenTransport behaviour under X
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: Re: ARP cache entry for router
  • Next by Date: Re: ARP cache entry for router
  • Previous by thread: Re: OpenTransport behaviour under X
  • Next by thread: Re: OpenTransport behaviour under X
  • Index(es):
    • Date
    • Thread