[Mono-bugs] [Bug 661437] 2.8.1: Connect/Send logic on UDP sockets is throwing inappropriately

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 25 12:33:38 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=661437

https://bugzilla.novell.com/show_bug.cgi?id=661437#c1


Iraklij Kuznetsov <carga at mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carga at mail.ru

--- Comment #1 from Iraklij Kuznetsov <carga at mail.ru> 2011-02-25 17:33:37 UTC ---
I experience another(?) UDP bug with mono v2.8 (compiled from official src) in
Ubuntu 9.10 64 bit.

For me it is VERY urgent, so if you point me to some fast solution that will be
GREAT.

Basically I'd like to send small UDP packet to broadcast address
192.168.168.255 in my LAN which is 192.168.168.0/255.255.255.0

The code works pretty well in Windows, but with mono I get "Access Denied"...
=((( This is very sad, because I just tried to write small UDP benchmark to
show that mono+linux is much better then Ms CLR+windows.

My stack trace:

Unhandled Exception: System.Net.Sockets.SocketException: Access denied
  at System.Net.Sockets.Socket.SendTo_nochecks (System.Byte[] buffer, Int32
offset, Int32 size, SocketFlags flags, System.Net.EndPoint remote_end)
[0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.SendTo (System.Byte[] buffer, Int32 offset,
Int32 size, SocketFlags flags, System.Net.EndPoint remote_end) [0x00000] in
<filename unknown>:0 
  at UdpBug.MainClass.Main (System.String[] args) [0x00000] in <filename
unknown>:0 




I'll attach UdpBug.cs to show what I do.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list