I have a class ‘MyClass’ and would like to use a private UDPSocket object in in.
So in added a private property of type UDPSocket to my ‘MyClass’ and named it uSock. Addidionaly I added a method ‘newData’, which I would like to call with the Datagram. In MyClass->Constructor I added:
self.uSock = New UDPSocket
Now how can I get informed when packets available? I’ve I add it to the UI I can add a Handler with right click.
Thanks. Helped a lot, so I knew that I’m on the right track. I missed always the part that I need to add ‘sender As UDPSocket’ to the parameter of the method I would like to call.