Re: onSocketDidDisconnect in CocoaAsyncSocket

2011-05-04 Thread Bing Li
Dear Patrick, Thanks so much for your reply! I ever believed that TCP protocols handle everything on the connection. Only UDP needs a lot of work to manage the connection. According to your description, it is not like that? I have not worked on a so low level network programming. Your email help

Re: onSocketDidDisconnect in CocoaAsyncSocket

2011-05-03 Thread Bing Li
Dear Patrick, Thanks so much for your answer! I don't know the details of TCP. However, TCP should be a reliable protocol. Developers are not required to keep its connection state since TCP does that. That's one of the important differences between TCP and UDP, right? When using UDP, it is mandat

Re: onSocketDidDisconnect in CocoaAsyncSocket

2011-05-02 Thread Bing Li
Dear all, Can anyone answer this question? Thanks so much! Bing On Fri, Apr 29, 2011 at 7:21 PM, Bing Li wrote: > Dear Michael, > > "Disgracefully" means the client does not close normally. It might be > crashed or closed by killing the relevant thread or process. I did that by > clicking the

Re: onSocketDidDisconnect in CocoaAsyncSocket

2011-04-29 Thread Bing Li
Dear Michael, "Disgracefully" means the client does not close normally. It might be crashed or closed by killing the relevant thread or process. I did that by clicking the red Tasks button in XCode. In this situation, the connection must not be closed properly with the socket methods. According t

Re: onSocketDidDisconnect in CocoaAsyncSocket

2011-04-28 Thread Michael Dautermann
> > 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 disco

onSocketDidDisconnect in CocoaAsyncSocket

2011-04-28 Thread Bing Li
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 disconnec