sockets-for-pcl
sockets-for-pcl copied to clipboard
UDP receiver not receiving some packets
I am using the library on a Xamarin Android project. For no obvious reason the UdpReceiver is not receiving some Udp BroadCast packages. No exception no nothing it just does not fire the Receive handler code. Any thoughts???
Axanth i am also facing similar problem, were you able to find a solution for this
Hi abhishekstl, From test I have done there seems to be some problem in the implementation of the UdpSocketMulticastClient or The UdpReceiver. When I changed my implementation and my udpSender sends Udp packets to the list of connected clients (to specific ip's) it works fine. No packet loss. I dont have the time to investigate the source code (and maybe find the bug) because my app is a comercial app so I had to find a solution fast. Should you need any further info email me at [email protected]
If this is on wi-fi then UDP Multicast packets are generally NOT forwarded by wi-fi routers. UDP packets to specific wi-fi IP-addresses will be sent as the router has a known connection.
No exceptions or breakpoints as quite simply the device never recieves the packet. Wireshark will show that multicast packets never reach a wi-fi device but will be sent to wired devices. Don't rely on multicast in a wi-fi environment or assume it will be enabled on the router. (It probably won't be as home routers rarely even have an option to enable it).