-
-
Notifications
You must be signed in to change notification settings - Fork 5
Ping
Taiizor edited this page Mar 1, 2023
·
11 revisions
The PingExtension
class provides extension methods for sending ping requests and receiving ping replies.
Sends a ping request to the specified address and returns a PingSendStruct
object containing the results.
-
Address
: Optional. The IP address or hostname of the destination. Default isPingManage.Address
. -
Timeout
: Optional. The maximum time, in milliseconds, to wait for a reply. Default isPingManage.Timeout
. -
Ttl
: Optional. The Time-to-Live value for the ping request. Default isPingManage.Ttl
. -
Fragment
: Optional. Specifies whether the ping packet should be fragmented. Default isPingManage.Fragment
.
A PingSendStruct
object containing the results of the ping request.
If an error occurs, an Exception
is thrown.
using Skylark.Standard.Extension.Ping;
SPPSS result = PingExtension.Send("www.google.com");
Console.WriteLine("Result: {0}", result.Result);
Sends a ping request to the specified address asynchronously and returns a Task
object containing a PingSendStruct
object with the results.
-
Address
: Optional. The IP address or hostname of the destination. Default isPingManage.Address
. -
Timeout
: Optional. The maximum time, in milliseconds, to wait for a reply. Default isPingManage.Timeout
. -
Ttl
: Optional. The Time-to-Live value for the ping request. Default isPingManage.Ttl
. -
Fragment
: Optional. Specifies whether the ping packet should be fragmented. Default isPingManage.Fragment
.
A Task<PingSendStruct>
object containing the results of the ping request.
If an error occurs, an Exception
is thrown.
using Skylark.Standard.Extension.Ping;
Task<SPP> result = await PingExtension.SendAsync("www.google.com");
Console.WriteLine("Result: {0}", result.Result);
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language