juney1110 / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

loopback broadcast socket permissions #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. send an unconnected message to IP address 127.255.255.255

What is the expected output? What do you see instead?
No errors if sending on ANY broadcast address (sets socket_opt to allow 
broadcast and sends). Socket access permission error due to broadcast 
socket_opt not being set.

What version of the product are you using? On what operating system?
r340; Windows 8

Please provide any additional information below.
Workaround: Added string compare to check for 127.255.255.255 to if statement 
in ActuallySendPacket.

if (target.Address == IPAddress.Broadcast || 
target.Address.ToString().Equals("127.255.255.255"))

Original issue reported on code.google.com by Sag...@gmail.com on 7 Sep 2013 at 3:30