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
Post a Comment