• 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
getpeername()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getpeername()


  • Subject: getpeername()
  • From: email@hidden
  • Date: Tue, 14 May 2002 16:04:00 -0700

is there a bug in mac os x's getpeername()?

i have a socket connected to a server... the client is reading asynchronously in the runloop...

when i kill the server, the read returns with 0 bytes, errno is EAGAIN, and if i do a getpeername() which was suggested as a way to test to see if the remote side was gone, it doesn't return -1!!!

anyone else run into this? how do you detect when your server has disconnected from you?
_______________________________________________
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.
  • Follow-Ups:
    • Re: getpeername()
      • From: Cryx <email@hidden>
  • Prev by Date: Re: Resizing Windows
  • Next by Date: Re: Problems with NSBrowser
  • Previous by thread: Collision problem solved (sorta...)
  • Next by thread: Re: getpeername()
  • Index(es):
    • Date
    • Thread