Squeak Socket Primitives

Henrik Gedenryd Henrik.Gedenryd at lucs.lu.se
Wed Nov 10 13:06:28 UTC 1999


on 99-11-10 02.23, John.Maloney at disney.com at John.Maloney at disney.com wrote:

> As far as I can make out, Apple will support
> the Open Transport API to sockets, which I believe is quite similar,
> if not identical, to BSD sockets in functionality. Apple will no longer
> support MacTCP, which is what the current Mac socket implementation is
> based on. Thus, we will need to re-implement the Mac socket primitives
> to the Open Transport API. In the process, we will also add support for
> Andreas's BSD-style "accept()" primitive, and the Mac will finally be
> able to handle back-to-back connection requests the way it should.

> All I can say at this point is that (a) we know it has to be done and
> (b) it has to be done by the time OS X comes to desktop Macs.

Note that OS X will also support BSD sockets directly, as in fact all of
(Free?)BSD is included and available in OS X. The Open Transport support is
in fact realized by mapping the API to BSD sockets instead of the Mentat
streams implementation used in the regular MacOS up to and including the new
9. Of course, BSD access is only available in OSX, and isn't part of Carbon,
so if you want this code to work also on the regular MacOS, then you'll use
the Carbon APIs. 

However, if you want speed, it would probably be smarter to keep the current
Mac code, and adapt Squeak's Unix networking code for OS X, since this is
what Open Transport calls on OS X anyway. If you need networking speed on a
Mac Squeak, you'll probably be running OS X on it anyway, so it'll be OK to
keep the current Mac networking code for OS =< 9. It'll probably be less
work too to get OS X networking from the Unix code, than by porting the Mac
code to Open Transport/Carbon.

In general, other than Apple, I recommend that you look for OS X info on
www.stepwise.com and by searching the archives of macweek and macworld; also
possibly appleinsider and macintouch (the latter has a nice info "resources"
collection page). What I know I got from these places when Rhapsody and OS X
were announced, not from Apple.

By the way, Apple is to release DR/2 of OS X any day now to developers with
the right credentials. (DR/1 was released at WWDC.) I suggest a Squeak port
to OS X is begun as soon as possible :-)

Henrik





More information about the Squeak-dev mailing list