4thline/cling — pull request #59 by gubatron (2013-03-28 20:50:47+00:00)
Title: make 'socket' protected on MulticastReceiverImpl.java

For overriding convenience of the run() method it'd be great if this field was protected, otherwise you also have to override the init() method and re-declare socket, leaving you also open to having two socket instances (if socket is used elsewher in the class)

I ask because on DatagramIOImpl.java the socket field is protected and it's straightforward to override the run() method.

In case you're wondering why we're overriding datagram receivers, that while (true) is quite aggresive for android devices, we're throttling execution to see if we can reduce cpu consumption and battery usage.

there's also a lot of garbage collection going on on each iteration, we're still investigating if there's a way to make datagram parsing any leaner.