fileHandleForReadingFromURL:error: vs. fileHandleAsServerAtAddress: ?

2012-03-09 Thread Pirmin Braun
Hi, while porting GSWeb to OSX I came across fileHandleAsServerAtAddress:... which is a GNUstep extension to NSFileHandle with low level socket stuff; but meanwhile there is fileHandleForReadingFromURL:error: in OSX. Could this be used instead? -- mit freundlichen Gruessen/best regards Pirm

Re: fileHandleForReadingFromURL:error: vs. fileHandleAsServerAtAddress: ?

2012-03-10 Thread Ivan Vučica
If you're using HTTP or other URL-based protocol, it does seem that way. Probably works for accessing devices, probably with something like file:///dev/disk0. You could probably also manually create a file handle using socket(), connect() et al, and then use - (id)initWithFileDescriptor:(int)* fil