C# Class System.Net.NetworkInformation.Ping

Inheritance: System.ComponentModel.Component, IDisposable
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Ping ( )
Send ( System address ) : PingReply
Send ( System address, int timeout ) : PingReply
Send ( System address, int timeout, byte buffer ) : PingReply
Send ( System address, int timeout, byte buffer, System options ) : PingReply
Send ( string hostNameOrAddress ) : PingReply
Send ( string hostNameOrAddress, int timeout ) : PingReply
Send ( string hostNameOrAddress, int timeout, byte buffer ) : PingReply
Send ( string hostNameOrAddress, int timeout, byte buffer, System options ) : PingReply
SendAsync ( System address, int timeout, byte buffer, System options, object userToken ) : void
SendAsync ( System address, int timeout, byte buffer, object userToken ) : void
SendAsync ( System address, int timeout, object userToken ) : void
SendAsync ( System address, object userToken ) : void
SendAsync ( string hostNameOrAddress, int timeout, byte buffer, System options, object userToken ) : void
SendAsync ( string hostNameOrAddress, int timeout, byte buffer, object userToken ) : void
SendAsync ( string hostNameOrAddress, int timeout, object userToken ) : void
SendAsync ( string hostNameOrAddress, object userToken ) : void
SendAsyncCancel ( ) : void
SendPingAsync ( System address ) : System.Threading.Tasks.Task
SendPingAsync ( System address, int timeout ) : System.Threading.Tasks.Task
SendPingAsync ( System address, int timeout, byte buffer ) : System.Threading.Tasks.Task
SendPingAsync ( System address, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress, int timeout ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnPingCompleted ( System e ) : void

Private Methods

Method Description
ComputeBufferChecksum ( byte buffer ) : ushort
CreateSendMessageBuffer ( IcmpHeader header, byte payload ) : byte[]
CreateTimedOutPingReply ( ) : PingReply
Ping ( ) : System.ComponentModel
SendIcmpEchoRequestOverRawSocket ( IPAddress address, byte buffer, int timeout, PingOptions options ) : Task
SendPingAsyncCore ( IPAddress address, byte buffer, int timeout, PingOptions options ) : Task
SendWithPingUtility ( IPAddress address, byte buffer, int timeout, PingOptions options ) : Task

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnPingCompleted() protected method

protected OnPingCompleted ( System e ) : void
e System
return void

Ping() public method

public Ping ( )

Send() public method

public Send ( System address ) : PingReply
address System
return PingReply

Send() public method

public Send ( System address, int timeout ) : PingReply
address System
timeout int
return PingReply

Send() public method

public Send ( System address, int timeout, byte buffer ) : PingReply
address System
timeout int
buffer byte
return PingReply

Send() public method

public Send ( System address, int timeout, byte buffer, System options ) : PingReply
address System
timeout int
buffer byte
options System
return PingReply

Send() public method

public Send ( string hostNameOrAddress ) : PingReply
hostNameOrAddress string
return PingReply

Send() public method

public Send ( string hostNameOrAddress, int timeout ) : PingReply
hostNameOrAddress string
timeout int
return PingReply

Send() public method

public Send ( string hostNameOrAddress, int timeout, byte buffer ) : PingReply
hostNameOrAddress string
timeout int
buffer byte
return PingReply

Send() public method

public Send ( string hostNameOrAddress, int timeout, byte buffer, System options ) : PingReply
hostNameOrAddress string
timeout int
buffer byte
options System
return PingReply

SendAsync() public method

public SendAsync ( System address, int timeout, byte buffer, System options, object userToken ) : void
address System
timeout int
buffer byte
options System
userToken object
return void

SendAsync() public method

public SendAsync ( System address, int timeout, byte buffer, object userToken ) : void
address System
timeout int
buffer byte
userToken object
return void

SendAsync() public method

public SendAsync ( System address, int timeout, object userToken ) : void
address System
timeout int
userToken object
return void

SendAsync() public method

public SendAsync ( System address, object userToken ) : void
address System
userToken object
return void

SendAsync() public method

public SendAsync ( string hostNameOrAddress, int timeout, byte buffer, System options, object userToken ) : void
hostNameOrAddress string
timeout int
buffer byte
options System
userToken object
return void

SendAsync() public method

public SendAsync ( string hostNameOrAddress, int timeout, byte buffer, object userToken ) : void
hostNameOrAddress string
timeout int
buffer byte
userToken object
return void

SendAsync() public method

public SendAsync ( string hostNameOrAddress, int timeout, object userToken ) : void
hostNameOrAddress string
timeout int
userToken object
return void

SendAsync() public method

public SendAsync ( string hostNameOrAddress, object userToken ) : void
hostNameOrAddress string
userToken object
return void

SendAsyncCancel() public method

public SendAsyncCancel ( ) : void
return void

SendPingAsync() public method

public SendPingAsync ( System address ) : System.Threading.Tasks.Task
address System
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( System address, int timeout ) : System.Threading.Tasks.Task
address System
timeout int
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( System address, int timeout, byte buffer ) : System.Threading.Tasks.Task
address System
timeout int
buffer byte
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( System address, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
address System
timeout int
buffer byte
options System
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( string hostNameOrAddress ) : System.Threading.Tasks.Task
hostNameOrAddress string
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( string hostNameOrAddress, int timeout ) : System.Threading.Tasks.Task
hostNameOrAddress string
timeout int
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer ) : System.Threading.Tasks.Task
hostNameOrAddress string
timeout int
buffer byte
return System.Threading.Tasks.Task

SendPingAsync() public method

public SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
hostNameOrAddress string
timeout int
buffer byte
options System
return System.Threading.Tasks.Task