I modified slightly the Echo Server code sample from Apple with the following results. One, I couldn't stream a large file from a polling routine. More than likely it would cancel because of a Sigterm 15.

It appears from reading the docs that the user cannot detect the end of a stream and that the NSStreamEventEndEncountered only detects a close. Two, when unarchiving a file in a client input stream delegate method, if the stream terminated from the server because it was too large, the client terminates on an unarchiver error because it didn't get the whole stream. Third, the output stream methods shown in Echo Server are polling methods, not delegate methods.

So:

1. How do I stream a large file between connections or is NSStream the wrong tool? Can the stream size be modified?

2. What is the largest stream size?

3. Is it possible to detect a valid archive before I unarchive it, or do I simply have to intercept the exception?

4. How does one trigger and make available a file an output stream so that the delegate methods can be used?

Thank,

John MacMullin
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to