GCDAsyncUdpSocket don't receive any data

530 Views Asked by At

I'm working on UDP transmission of audio data. I'm using the CocoaAsyncSocket-GCDAsyncUdpSocket. When my project runs on the iPhone 6 I can just receive part of the data. A few seconds later the app can't receive data anymore, but it can still send data. I tried to run on the iPhone 4 and there is no such problem. Can anyone explain what could be going wrong?

1

There are 1 best solutions below

1
Kid Lee On

Be sure of that you use singleton.I just have the same problem with you,in my case,I do not use singleton that cause there have many objects,and I can't receive data every time.