On Thursday, August 16, 2001, at 09:19 PM, Aurelien wrote:
First ... you can do GNUstep coding in Java if you want ... we have a
Java interface which works
very well and lets you use ObjC classes from Java code and vice versa.
Tried that on Mac OS X. Never again !
Ok ... but it works well for me with GNUstep. Our company uses Java
servlets as a front end to an ObjC system.
I was trying to compile your program right into Apple's Project
Builder, which is supposed to be possible, or not ?
No ... you asked for GNUstep code, and I wrote GNUstep specific
stuff ... in MacOS-X you must use standard C socket
code to create the listening socket, than turn that into a file handle,
in GNUstep there is a method that does that
all for you.
Why the RELEASE(self) type macros ? - which do not compile - instead
of the standard [self release]
Under GNUstep you have the option of building the system with garbage
collection ... in which case the macros stop
the reference counting code from being compiled at all.
The [NSFileHandle fileHandleAsServerAtAddress: nil service: @"6401"
protocol: @"tcp"] doesn't exist in Mac OS world. Is there a
Cocoa-savvy replacement you know about ? (I'm not sure I understand
the API docs sufficiently)
No ... they use the C socket() and listen() calls instead.
Hem, I also have a further concern: this fileHandle thing doesn't
sound very network oriented... Mmh, now how do you do datagram
networking. :-) (yerk! yerk! -> that was my coming second question to
this mailing-list !)
No ... it's a class cluster so you can create your own concrete
subclasses for special purposes. I kind of meant to add
UDP support to GNUstep (that's what the 'protocol' argument is for),
but haven't got round to it. It would be pretty
easy for a C programmer to do though.