onSocketDidDisconnect in CocoaAsyncSocket
onSocketDidDisconnect in CocoaAsyncSocket
- Subject: onSocketDidDisconnect in CocoaAsyncSocket
- From: Bing Li <email@hidden>
- Date: Fri, 29 Apr 2011 04:12:17 +0800
Dear all,
I started to use CocoaAsyncSocket to establish TCP connections among iPads.
I got a problem. According to the references (
http://code.google.com/p/cocoaasyncsocket/wiki/Reference_AsyncSocket),
onSocketDidDisconnect would be invoked immediately if the connection is not
already disconnected. I felt confused. What does "not already disconnected"
mean? I think onSocketDidDisconnect should be called when a connection is
disconnected. The description in the reference is wrong?
I implemented a server and a client using CocoaAsyncSocket. When closing the
client disgracefully, I noticed that onSocketDidDisconnect was NOT called.
Anything wrong with it?
Thanks so much!
Bing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden