[Mono-bugs] [Bug 333723] New: System.Net.NetworkInformation. Ping work only in asynchrone mode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 14 08:13:26 EDT 2007


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: mono-bugs at ximian.com
        ReportedBy: surfzoid2002 at yahoo.fr
         QAContact: mono-bugs at ximian.com
          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 :
[root at surfzoidPC 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]
[root at surfzoidPC 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.


More information about the mono-bugs mailing list