Robust DO connections
Robust DO connections
- Subject: Robust DO connections
- From: Terry Smyth <email@hidden>
- Date: Thu, 3 Apr 2003 12:58:16 +0100
Hi,
I'm using DO to build a client server architecture into my application,
using Rendezvous to select my server, and NSSocketPort to connect. Most
aspects are now working really well (thanks to the many helpful posts
on this list), and it is reasonably robust in most circumstances,
provided that whichever end is closing down has a chance to notify the
other end, so that things can be tidied up cleanly.
My issue at the moment is that if one of my clients suffers a
catastrophic crash, the server is not notified. And worse still, the
connection seems to be broken for all other clients (not good). I tried
polling the clients to detect if they go "dead", but after one client
dies, the server can't talk to any of them. Is this behavior expected?
What is the latest recommended way to ensure DO works robustly. (I've
got exception handlers around connection attempts, and message sending)
Is is possible (and would it help) to talk to each client on a new
NSConnection (ie different from the listening connection) to reduce the
possibility of one client affecting others?
I'm interested to hear if others are fully satisfied with the
robustness of DO/NSConnection/NSSocketPort. ie does it survive client
apps, or client machines crashing, cables unplugging etc?
Thanks,
Terry Smyth
Software Generation Limited
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.