Problems with NSConnection over NSSocketPort
Problems with NSConnection over NSSocketPort
- Subject: Problems with NSConnection over NSSocketPort
- From: Kent Sutherland <email@hidden>
- Date: Sat, 29 Nov 2003 07:12:48 -0500
I've been using NSConnection over TCP/IP using NSSocketPort fairly
successfully, until now. I can make a connection and communicate fine,
but when I try to turn off the connection on the server end by doing:
[serverConnection registerName:nil];
[serverConnection release];
[rootObject release];
The connection dies, but the root object sticks around, and continues
to talk to the other end of the connection. Is there a way to have the
other end of the connection notice when the connection has died, or
make the root object disconnect after the server connection has shut
down? I know I could send messages through the root object saying the
server shut down, but I was trying to make it work this way first.
Thanks,
Kent Sutherland
_______________________________________________
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.