C# Класс 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
Наследование: System.ComponentModel.Component
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
InitializeComponent void
OnPingCompleted void
OnPingError void
OnPingResponse void
OnPingStarted void
SendPackets PingResponse

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

BeginPingHost() публичный Метод

public BeginPingHost ( AsyncCallback callback, IPAddress serverAddress ) : IAsyncResult
callback AsyncCallback
serverAddress System.Net.IPAddress
Результат IAsyncResult

BeginPingHost() публичный Метод

public BeginPingHost ( AsyncCallback callback, IPAddress serverAddress, int pingCount ) : IAsyncResult
callback AsyncCallback
serverAddress System.Net.IPAddress
pingCount int
Результат IAsyncResult

BeginPingHost() публичный Метод

public BeginPingHost ( AsyncCallback callback, IPEndPoint serverEndPoint ) : IAsyncResult
callback AsyncCallback
serverEndPoint System.Net.IPEndPoint
Результат IAsyncResult

BeginPingHost() публичный Метод

public BeginPingHost ( AsyncCallback callback, IPEndPoint serverEndPoint, int pingCount ) : IAsyncResult
callback AsyncCallback
serverEndPoint System.Net.IPEndPoint
pingCount int
Результат IAsyncResult

BeginPingHost() публичный Метод

public BeginPingHost ( AsyncCallback callback, string hostname ) : IAsyncResult
callback AsyncCallback
hostname string
Результат IAsyncResult

BeginPingHost() публичный Метод

public BeginPingHost ( AsyncCallback callback, string hostname, int pingCount ) : IAsyncResult
callback AsyncCallback
hostname string
pingCount int
Результат IAsyncResult

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndPingHost() публичный Метод

public EndPingHost ( IAsyncResult result ) : PingResponse
result IAsyncResult
Результат PingResponse

Ping() публичный Метод

public Ping ( ) : System
Результат System

Ping() публичный Метод

public Ping ( System container ) : System
container System
Результат System

PingHost() публичный Метод

Attempts to ping a host.
public PingHost ( IPAddress serverAddress ) : PingResponse
serverAddress System.Net.IPAddress IPAddress to ping
Результат PingResponse

PingHost() публичный Метод

Attempts to ping a host.
public PingHost ( IPAddress serverAddress, int pingCount ) : PingResponse
serverAddress System.Net.IPAddress IPAddress to ping
pingCount int Ping count
Результат PingResponse

PingHost() публичный Метод

Attempts to ping a host.
public PingHost ( IPEndPoint serverEndPoint ) : PingResponse
serverEndPoint System.Net.IPEndPoint EndPoint to ping
Результат PingResponse

PingHost() публичный Метод

Attempts to ping a host.
public PingHost ( IPEndPoint serverEndPoint, int pingCount ) : PingResponse
serverEndPoint System.Net.IPEndPoint EndPoint to ping
pingCount int Ping count
Результат PingResponse

PingHost() публичный Метод

Attempts to ping a host.
public PingHost ( string hostname ) : PingResponse
hostname string Host to ping
Результат PingResponse

PingHost() публичный Метод

Attempts to ping a host.
public PingHost ( string hostname, int pingCount ) : PingResponse
hostname string Host to ping
pingCount int Ping count
Результат PingResponse