简体   繁体   中英

GCDAsyncUdpSocket don't receive any data

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?

请确保您使用的是singleton。我只是遇到了同样的问题,在我的情况下,我不使用singleton导致很多对象,并且每次都无法接收数据。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM