• 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: OSX & CFM & IPv6 ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSX & CFM & IPv6 ?


  • Subject: Re: OSX & CFM & IPv6 ?
  • From: Quinn <email@hidden>
  • Date: Mon, 14 Apr 2003 10:34:56 +0100

At 23:45 +0200 13/4/03, Sebastian Mecklenburg wrote:
i want to write a plugin that does some basic networking. i must fulfill the following requirements:

- run on mac os x
- support ipv6
- be in pef, for the host only supports cfm

[...]

first i tried bsd sockets. they doesn't seem to difficult and there are quite some tutorials on the net, also they support ipv6, but unfortunately they are implemented in the kernel framework which is mach-o. there is some sample code that shows how to call a macho-o library from cfm, but that is something i'd like to avoid.

No Mac OS X API supports CFM and IPv6. You will have to shim to Mach-O to make this work. My general advice for you is not to shim each API in the target framework, but to shim the interface between the app and plug-in.

then i tried open transport. i have lots of problems getting apple's sample code to compile, let alone to run without crashing (OTLookupNameTest) or producing only errors (OTPingSample). is it my fault, or is open transport becoming obsolete?

The Open Transport compatibility library does work, but there are slight differences between the two platforms. Many of the samples on our web site were written for Mac OS 9, so may not work as you'd expect on Mac OS X. In the case of the two specific samples you refer to, OTLookupNameTest is being bitten by a known bug in the OT compatibility library, and the OTPingSample is probably erroring because you need to run it as root. Regardless...

also i dont know wether it supports ipv6. i found an old press release (1995 or so) where they claim that it does, but haven't found anything in the current docs about it.

Mac OS X's Open Transport compatibility library does not support IPv6, nor is it even likely to. The OT compatibility library was designed to help people move code between Mac OS 9 and Mac OS X (and to allow a single binary story between those platforms). If you're writing Mac OS X-only code, you should not be using it.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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: OSX & CFM & IPv6 ?
      • From: email@hidden (Sebastian Mecklenburg)
References: 
 >OSX & CFM & IPv6 ? (From: email@hidden (Sebastian Mecklenburg))

  • Prev by Date: A question of UrlAccess, https and proxy
  • Next by Date: Re: OSX & CFM & IPv6 ?
  • Previous by thread: OSX & CFM & IPv6 ?
  • Next by thread: Re: OSX & CFM & IPv6 ?
  • Index(es):
    • Date
    • Thread