• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems with NSConnection over NSSocketPort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: unique ids
  • Next by Date: Re: Comparing two images
  • Previous by thread: Re: NSURLs and timeouts
  • Next by thread: Getting NSTextField from NSWindow firstResponder
  • Index(es):
    • Date
    • Thread