ios - How to get the latest TCP package using GCDAsyncSocket -


i'm working on app uses sockets. use gcdasyncsocket purpose. problem receiving latest packet less number of bytes asked for. way ask packet:

tcpsocket.readdata(tolength: length, withtimeout: -1, tag: 0) 

after that, appropriate delegate method called "length" number of bytes. problem when ask number of bytes larger number of available bytes - delegate method never called. , question is: how remaining bytes?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -