Hi

If we look into
https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.Sockets/Socket.cs

method:
public int IOControl (IOControlCode ioControlCode, byte[] optionInValue, byte[] optionOutValue) is on line 1448 not 1446. So it means Socket.cs is a little bit changed by Xamarin guys...

This function above calls method on line 1430
public int IOControl (int ioctl_code, byte [] in_value, byte [] out_value)
and this method has no NotImplementedException... Odd.
Only

 * ObjectDisposedException
 * SocketException and
 * InvalidOperationException


No we can wonder if that is because MA is superset of Silverlight/Moonlight and Silverlight introduced sockets in v 4 as far as I can remember and probably has some restrictions. So the mono team
decided to follow those restrictions what if hard to believe...

Another question: to bypass this method somehow?
probably not?!?

Another thought: how much work is to extract that code to desktop profile and then test?

Yeah this reminds me of my darkest nightmares when I'm descending through .net types, knowing that possibility to hit the bug (or some other kind of problem) is proportional with:

             int i = typeof(fully-qualified-classname).FullName.Length;

I guess  Jon and Atsushi will have to answer this one...

cheers

mel

On 2012.08.24 03:19, Александр wrote:
When i use the Net.Socket.IOControl(IOControlCode.KeepAliveValues,
tcpKeepAlive.ToArray(), null) , i'm getting an exception. Like this:
http://mono-for-android.1047100.n5.nabble.com/file/n5711520/Error.png




--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Unsafe-code-support-tp5711421p5711520.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


--
Miljenko Cvjetko dipl.ing. ET
        Direktor/CEO
        Projektant rješenja/Solution Architect  
        Razvojni programer/Senior developer
        Voditelj projekta/Project Manager

IX južna obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvje...@holisticware.net
w: http://www.holisticware.net

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to