NetUtility Class |
Namespace: Internal.Lidgren.Network
public static class NetUtility
The NetUtility type exposes the following members.
Name | Description | |
---|---|---|
BitsToHoldUInt |
Returns how many bits are necessary to hold a certain number
| |
BitsToHoldUInt64 |
Returns how many bits are necessary to hold a certain number
| |
BytesToHoldBits |
Returns how many bytes are required to hold a certain number of bits
| |
ComputeSHAHash(Byte) | ||
ComputeSHAHash(Byte, Int32, Int32) | ||
CreateAddressFromBytes | ||
GetBroadcastAddress | ||
GetCachedBroadcastAddress | ||
GetMacAddressBytes |
If available, returns the bytes of the physical (MAC) address for the first usable network interface
| |
GetMyAddress |
Gets my local IPv4 address (not necessarily external) and subnet mask
| |
GetPlatformSeed | ||
GetWindowSize |
Gets the window size used internally in the library for a certain delivery method
| |
IsLocal(IPAddress) |
Returns true if the IPAddress supplied is on the same subnet as this host
| |
IsLocal(IPEndPoint) |
Returns true if the endpoint supplied is on the same subnet as this host
| |
MakeCommaDelimitedListT |
Creates a comma delimited string from a lite of items
| |
Resolve(String) |
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname
| |
Resolve(String, Int32) |
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname
| |
Resolve(String, NullableAddressFamily) |
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname,
taking in an allowed address family to filter resolved addresses by.
| |
Resolve(String, Int32, NullableAddressFamily) | ||
ResolveAsync(String, NetUtilityResolveAddressCallback) |
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname (asynchronous version)
| |
ResolveAsync(String, Int32) | ||
ResolveAsync(String, NullableAddressFamily) | ||
ResolveAsync(String, Int32, NetUtilityResolveEndPointCallback) |
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname (asynchronous version)
| |
ResolveAsync(String, Int32, NullableAddressFamily) | ||
ResolveAsync(String, NullableAddressFamily, NetUtilityResolveAddressCallback) |
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname (asynchronous version)
| |
ResolveAsync(String, Int32, NullableAddressFamily, NetUtilityResolveEndPointCallback) | ||
Sleep | ||
ToByteArray |
Convert a hexadecimal string to a byte array
| |
ToHexString(Byte) |
Create a hex string from an array of bytes
| |
ToHexString(Int64) |
Create a hex string from an Int64 value
| |
ToHexString(ReadOnlySpan) | ||
ToHexString(Byte, Int32, Int32) | ||
ToHumanReadable |
Converts a number of bytes to a shorter, more readable string representation
|