C# Class AnimatGuiCtrls.Network.Ping

Performs a network ping similar to the 'ping' command.
Based on the code found at http://msdn.microsoft.com/msdnmag/issues/01/02/netpeers/default.aspx by Lance Olson
Inheritance: System.ComponentModel.Component
Show file Open project: NeuroRoboticTech/AnimatLabPublicSource

Private Properties

Property Type Description
InitializeComponent void
OnPingCompleted void
OnPingError void
OnPingResponse void
OnPingStarted void
SendPackets PingResponse

Public Methods

Method Description
BeginPingHost ( AsyncCallback callback, IPAddress serverAddress ) : IAsyncResult
BeginPingHost ( AsyncCallback callback, IPAddress serverAddress, int pingCount ) : IAsyncResult
BeginPingHost ( AsyncCallback callback, IPEndPoint serverEndPoint ) : IAsyncResult
BeginPingHost ( AsyncCallback callback, IPEndPoint serverEndPoint, int pingCount ) : IAsyncResult
BeginPingHost ( AsyncCallback callback, string hostname ) : IAsyncResult
BeginPingHost ( AsyncCallback callback, string hostname, int pingCount ) : IAsyncResult
EndPingHost ( IAsyncResult result ) : PingResponse
Ping ( ) : System
Ping ( System container ) : System
PingHost ( IPAddress serverAddress ) : PingResponse

Attempts to ping a host.

PingHost ( IPAddress serverAddress, int pingCount ) : PingResponse

Attempts to ping a host.

PingHost ( IPEndPoint serverEndPoint ) : PingResponse

Attempts to ping a host.

PingHost ( IPEndPoint serverEndPoint, int pingCount ) : PingResponse

Attempts to ping a host.

PingHost ( string hostname ) : PingResponse

Attempts to ping a host.

PingHost ( string hostname, int pingCount ) : PingResponse

Attempts to ping a host.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnPingCompleted ( PingResponse response ) : void
OnPingError ( PingResponseType errorType, string message ) : void
OnPingResponse ( IPAddress serverAddress, PingResponseType result, int responseTime, int byteCount, bool &cancel ) : void
OnPingStarted ( IPEndPoint serverEndPoint, int byteCount ) : void
SendPackets ( Socket socket, EndPoint client, EndPoint server, byte sendBuffer, int pingCount ) : PingResponse

Method Details

BeginPingHost() public method

public BeginPingHost ( AsyncCallback callback, IPAddress serverAddress ) : IAsyncResult
callback AsyncCallback
serverAddress System.Net.IPAddress
return IAsyncResult

BeginPingHost() public method

public BeginPingHost ( AsyncCallback callback, IPAddress serverAddress, int pingCount ) : IAsyncResult
callback AsyncCallback
serverAddress System.Net.IPAddress
pingCount int
return IAsyncResult

BeginPingHost() public method

public BeginPingHost ( AsyncCallback callback, IPEndPoint serverEndPoint ) : IAsyncResult
callback AsyncCallback
serverEndPoint System.Net.IPEndPoint
return IAsyncResult

BeginPingHost() public method

public BeginPingHost ( AsyncCallback callback, IPEndPoint serverEndPoint, int pingCount ) : IAsyncResult
callback AsyncCallback
serverEndPoint System.Net.IPEndPoint
pingCount int
return IAsyncResult

BeginPingHost() public method

public BeginPingHost ( AsyncCallback callback, string hostname ) : IAsyncResult
callback AsyncCallback
hostname string
return IAsyncResult

BeginPingHost() public method

public BeginPingHost ( AsyncCallback callback, string hostname, int pingCount ) : IAsyncResult
callback AsyncCallback
hostname string
pingCount int
return IAsyncResult

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

EndPingHost() public method

public EndPingHost ( IAsyncResult result ) : PingResponse
result IAsyncResult
return PingResponse

Ping() public method

public Ping ( ) : System
return System

Ping() public method

public Ping ( System container ) : System
container System
return System

PingHost() public method

Attempts to ping a host.
public PingHost ( IPAddress serverAddress ) : PingResponse
serverAddress System.Net.IPAddress IPAddress to ping
return PingResponse

PingHost() public method

Attempts to ping a host.
public PingHost ( IPAddress serverAddress, int pingCount ) : PingResponse
serverAddress System.Net.IPAddress IPAddress to ping
pingCount int Ping count
return PingResponse

PingHost() public method

Attempts to ping a host.
public PingHost ( IPEndPoint serverEndPoint ) : PingResponse
serverEndPoint System.Net.IPEndPoint EndPoint to ping
return PingResponse

PingHost() public method

Attempts to ping a host.
public PingHost ( IPEndPoint serverEndPoint, int pingCount ) : PingResponse
serverEndPoint System.Net.IPEndPoint EndPoint to ping
pingCount int Ping count
return PingResponse

PingHost() public method

Attempts to ping a host.
public PingHost ( string hostname ) : PingResponse
hostname string Host to ping
return PingResponse

PingHost() public method

Attempts to ping a host.
public PingHost ( string hostname, int pingCount ) : PingResponse
hostname string Host to ping
pingCount int Ping count
return PingResponse