Class NetworkUtility
Inheritance
NetworkUtility
Assembly: Glitch9.IO.dll
Syntax
public static class NetworkUtility
Methods
|
Edit this page
View Source
CheckNetworkAsync(int, int)
Declaration
public static UniTask CheckNetworkAsync(int checkIntervalInMillis, int timeoutInMillis)
Parameters
| Type |
Name |
Description |
| int |
checkIntervalInMillis |
|
| int |
timeoutInMillis |
|
Returns
|
Edit this page
View Source
CheckUrlAsync(string)
Declaration
public static UniTask<bool> CheckUrlAsync(string url)
Parameters
| Type |
Name |
Description |
| string |
url |
|
Returns
| Type |
Description |
| UniTask<bool> |
|
|
Edit this page
View Source
FindFreePort(int, int)
Declaration
public static int FindFreePort(int start = 57123, int count = 16)
Parameters
| Type |
Name |
Description |
| int |
start |
|
| int |
count |
|
Returns
|
Edit this page
View Source
Formats a cancellation stack trace for logging purposes.
Declaration
public static string FormatCancellationStackTrace(int skipFrames = 1, int maxFrames = 5)
Parameters
| Type |
Name |
Description |
| int |
skipFrames |
Number of stack frames to skip (default 1 to skip this method)
|
| int |
maxFrames |
Maximum number of frames to include (default 5, 0 for first frame only)
|
Returns
| Type |
Description |
| string |
Formatted stack trace string
|