search

Home  >  Q&A  >  body text

objective-c - Check it out if you’re passing by! ! ! GCDAsyncSocket sends data to Java server? ? ? ?

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!

天蓬老师天蓬老师2844 days ago475

reply all(0)I'll reply

No reply
  • Cancelreply