https://bugzilla.novell.com/show_bug.cgi?id=333723
Summary: System.Net.NetworkInformation.Ping work only in
asynchrone mode
Product: Mono: Runtime
Version: 1.2
Platform: i686
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: interop
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: DeveloperNet
I follow the two examples given in Ms Vs Express Msdn, the goal is to have a
ping tool on Linux, i would like to use synchrone mode but only asynchrone
work, i put two test case in the archive attached below(simply copy/paste from
MSDN).
the exception in synchrone mode is :
[EMAIL PROTECTED] Debug]# mono ./PingExample.exe google.com
Unhandled Exception: System.NotSupportedException: Unexpected socket error
during ping request: WouldBlock
at System.Net.NetworkInformation.Ping.Send (System.Net.IPAddress address,
Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions
options) [0x00000]
at System.Net.NetworkInformation.Ping.Send (System.String hostNameOrAddress,
Int32 timeout, System.Byte[] buffer, System.Net.NetworkInformation.PingOptions
options) [0x00000]
at (wrapper remoting-invoke-with-check)
System.Net.NetworkInformation.Ping:Send
(string,int,byte[],System.Net.NetworkInformation.PingOptions)
at Examples.System.Net.NetworkInformation.PingTest.PingExample.Main
(System.String[] args) [0x00000]
[EMAIL PROTECTED] Debug]#
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs