Hello mates,
I think I understood the following:
- the tag is just used locally, which means we deal with it ourself.
- we write data in the socket queue then, when data has actually been written, the didWriteDataWithTag delegate methods is called. So the tag is the one we initially set at first.
But what about the tag that is in the didReadData delegate method ? Since data comes from some other remote peer, what does this tag refer to ?
Thanks a lot!
Flo
The tag you get in didReadData is the one you set when you write data.
That way you can differentiate between different ways of handling the
incomming data.
Per
> --
> You received this message because you are subscribed to the Google
> Groups "CocoaAsyncSocket" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cocoaasyncsocket/-/O7TN-Y-0cF0J.
> To post to this group, send email to cocoaasy...@googlegroups.com.
> To unsubscribe from this group, send email to
> cocoaasyncsock...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cocoaasyncsocket?hl=en.
Simeon