From: Jim I. <ji...@ap...> - 2001-08-27 17:16:19
|
Daniel, On Sunday, August 26, 2001, at 09:41 PM, Daniel A. Steffen wrote: > At 12:05 +0200 on 25/8/01, Mats Bengtsson wrote: > >> I know several applications using the GUSI (at SourceForge) MacPython, >> and several more, and that seems to work ok. GUSI is like POSIX sockets >> on the mac using OT under the hood. Couldn't it be possible to just >> replace the mac specific socket code with the unix one, and use GUSI >> for all socket stuff? After all, the unix socket code is very well >> tested. >> Anyone knows something more about GUSI? > > I know GUSI quite well, I have worked with it in the past, but not on > MacTcl. > > AFAIK the socket code in MacTcl predates GUSI, which is why it wasn't > used :-) > Actually, Ray used GUSI for a while, but that was in its first incarnation - on top of MacTCP, IIRC - and going through the Tcl layer, through the GUSI layer, to the flakey Mac layer, was very unstable, so he hand-rolled the current code on top of MacTCP. > > Using GUSI in MacTcl would indeed essentially mean ripping all the > existing socket code out and replacing it with the UNIX codebase > adapted for GUSI. Gluing UNIX code into the Mac codebase for e.g. > channels may prove more challenging than you might think, it certainly > would not just be a drop in deal... > > While this may very well be possible, it would be no small job, I > certainly don't have time for it myself. > Yeah, I looked at this a while ago, and I decided I didn't have the time for it either. My guess is it would probably be just as easy to rewrite the MacTCP code using OT, but I can't say for sure. > > However, I'm happy to help somebody else getting started to look into > this. Yes, this would be great. It is also a pretty fun little lab for someone who wants to play around with socket programming a bit. Jim -- Jim Ingham ji...@ap... Developer Tools - gdb Apple Computer |