getpeername()
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.