Presumably you won't hit any of them
Did you put breakpoints at all the places where CocoaAsyncSocket invokes the delegate?
--
You received this message because you are subscribed to the Google Groups "CocoaAsyncSocket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoaasyncsock...@googlegroups.com.
To post to this group, send email to cocoaasy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoaasyncsocket/889c4373-ddfa-4243-bbc1-e56369639e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think your issue is, that when you create the listener, it listens on a arbitrary port (because you set its port to 0) and the remote end sends the values back to the original port.
Why don’t you just use one instance to send and receive and bind that to the port of your liking?
I think your issue is, that when you create the listener, it listens on a arbitrary port (because you set its port to 0) and the remote end sends the values back to the original port.
And when you tried to set it to the same port as the sender, you probably couldn’t bind to it, because it was already in use?
Why don’t you just use one instance to send and receive and bind that to the port of your liking?
Am 11.06.2019 um 13:49 schrieb Tim A. <nms....@gmail.com>:
Presumably you won't hit any of themIMHO I get no events in this delegate.Did you put breakpoints at all the places where CocoaAsyncSocket invokes the delegate?Did it and checked the results for socket.bind() and socket.beginReceiving().Both methods returned a YES as result. So I would say all things are fine.
Am Dienstag, 11. Juni 2019 10:16:53 UTC+2 schrieb Tim A.:Okay ... I will try it.
Am Freitag, 7. Juni 2019 23:22:44 UTC+2 schrieb seanm:On Wed, 5 Jun 2019 07:28:58 -0700, Tim A. said:
>The delegate method udpsocket(didReceiveData) is never triggered and I get
>no result.
Did you put breakpoints at all the places where CocoaAsyncSocket invokes the delegate? Presumably you won't hit any of them. Then move each breakpoint up a few lines and see if you get that far. You have all the code, you should be able to debug more to find the condition that results in the delegate not being invoked.
--
You received this message because you are subscribed to the Google Groups "CocoaAsyncSocket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoaasy...@googlegroups.com.
And the new code here
To unsubscribe from this group and stop receiving emails from it, send an email to cocoaasyncsock...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoaasyncsocket/b4932c90-45a8-459c-b57a-e1c71989036e%40googlegroups.com.
Best would be to send your whole project.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoaasyncsocket+unsub...@googlegroups.com.