Click or drag to resize

NetUtility Methods

The NetUtility type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBitsToHoldUInt
Returns how many bits are necessary to hold a certain number
Public methodStatic memberBitsToHoldUInt64
Returns how many bits are necessary to hold a certain number
Public methodStatic memberBytesToHoldBits
Returns how many bytes are required to hold a certain number of bits
Public methodStatic memberComputeSHAHash(Byte)
Public methodStatic memberComputeSHAHash(Byte, Int32, Int32)
Public methodStatic memberCreateAddressFromBytes
Public methodStatic memberGetBroadcastAddress
Public methodStatic memberGetCachedBroadcastAddress
Public methodStatic memberGetMacAddressBytes
If available, returns the bytes of the physical (MAC) address for the first usable network interface
Public methodStatic memberGetMyAddress
Gets my local IPv4 address (not necessarily external) and subnet mask
Public methodStatic memberGetPlatformSeed
Public methodStatic memberGetWindowSize
Gets the window size used internally in the library for a certain delivery method
Public methodStatic memberIsLocal(IPAddress)
Returns true if the IPAddress supplied is on the same subnet as this host
Public methodStatic memberIsLocal(IPEndPoint)
Returns true if the endpoint supplied is on the same subnet as this host
Public methodStatic memberMakeCommaDelimitedListT
Creates a comma delimited string from a lite of items
Public methodStatic memberResolve(String)
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname
Public methodStatic memberResolve(String, Int32)
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname
Public methodStatic memberResolve(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.
Public methodStatic memberResolve(String, Int32, NullableAddressFamily)
Public methodStatic memberResolveAsync(String, NetUtilityResolveAddressCallback)
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname (asynchronous version)
Public methodStatic memberResolveAsync(String, Int32)
Public methodStatic memberResolveAsync(String, NullableAddressFamily)
Public methodStatic memberResolveAsync(String, Int32, NetUtilityResolveEndPointCallback)
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname (asynchronous version)
Public methodStatic memberResolveAsync(String, Int32, NullableAddressFamily)
Public methodStatic memberResolveAsync(String, NullableAddressFamily, NetUtilityResolveAddressCallback)
Get IPv4 or IPv6 address from notation (xxx.xxx.xxx.xxx or xxxx:xxxx:...:xxxx) or hostname (asynchronous version)
Public methodStatic memberResolveAsync(String, Int32, NullableAddressFamily, NetUtilityResolveEndPointCallback)
Public methodStatic memberSleep
Public methodStatic memberToByteArray
Convert a hexadecimal string to a byte array
Public methodStatic memberToHexString(Byte)
Create a hex string from an array of bytes
Public methodStatic memberToHexString(Int64)
Create a hex string from an Int64 value
Public methodStatic memberToHexString(ReadOnlySpan)
Public methodStatic memberToHexString(Byte, Int32, Int32)
Public methodStatic memberToHumanReadable
Converts a number of bytes to a shorter, more readable string representation
Top
See Also