Problems with Rendzvous waking from sleep
Problems with Rendzvous waking from sleep
- Subject: Problems with Rendzvous waking from sleep
- From: Francisco Tolmasky <email@hidden>
- Date: Sun, 30 May 2004 02:15:40 -0700
I am having quite the headache with Rendezvous and waking from sleep.
For background info, my application announces services using
Rendezvous, and then takes over with distributed objects to establish
the actual connection/communication. Now, I put two buttons on my
application, open and close, to open and close the connection. If I
press close on one end, then open, things work fine, on the other
computers i see the service disappear the reappear. BUT, if I register
for the willsleep and didwake notifications, the program appropriately
closes the connection before sleep, but something strange happens when
it awakes. It starts announcing the services again, but on the other
end I keep getting port timeouts when trying to create the
NSConnection, specifically on the [connection rootProxy] call. Now, I
would like to not put an explicit timer to wait 5 seconds or whatever
before announcing the service but this seems to be the only solution.
Does someone know whats going on?
Thank you in advance,
Francisco Tolmasky
email@hidden
http://www-scf.usc.edu/~tolmasky/
_______________________________________________
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.