Hi, I recently compiled mono 2.8.2 on both Linux and Solaris 10 and am in the process of testing a small UDP client program out (written on Windows).
The linux install works without issue and reports no errors. However, Solaris throws some exceptions when you try to set the SendTimeout and ReceiveTimeout socket options: Unhandled Exception: System.Net.Sockets.SocketException: Protocol option not supported at System.Net.Sockets.Socket.SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue) [0x00000] in <filename unknown>:0 at System.Net.Sockets.Socket.set_SendTimeout (Int32 value) [0x00000] in <filename unknown>:0 at dhcp_check.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 The code used is fairly straight-forward and both compilers (mcs or MSVC) don't report any errors. Socket udpc = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); udpc.SendTimeout = 5000; udpc.ReceiveTimeout = 5000; As mentioned, this runs fine under mono on Linux. If I don't set these values, the udp send/receive calls wait forever. Is there a reason these might be causing an exception on Solaris only? If I am unable to set them, what other means would be available to do something similar? Thanks, Randy -- View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-8-2-Solaris-10-Sparc-UDP-Socket-Send-Receive-Timeout-Exceptions-tp3300082p3300082.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
