GCDAsyncSocket sends data to the Java server,
asyncsocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue() socketQueue:nil];
The agent’s queue is the main queue. I found the button event while debugging After execution, my data proxy method is executed to collect data. But the method of collecting data in my button has been executed
The second time I clicked the button to receive the data, it was actually the data I received for the first time, because the second data has not been received yet and I have to wait for the second time. Button event ends
I hope someone who knows GCDAsyncSocket can help me with some pointers. Thank you very much!
欢迎选择我的课程,让我们一起见证您的进步~~