Lidgren Network Library documentation |
NetUtility Members |
NetUtility Class Methods See Also Send Feedback |
The NetUtility type exposes the following members.
Methods
Name | Description | |
---|---|---|
BitsToHoldUInt |
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
| |
GetMacAddress |
Returns the physical (MAC) address for the first usable network interface
| |
GetMyAddress |
Gets my local IP address (not necessarily external) and subnet mask
| |
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 IPEndPoint supplied is on the same subnet as this host
| |
Resolve(String) |
Get IPv4 address from notation (xxx.xxx.xxx.xxx) or hostname
| |
Resolve(String, Int32) |
Get IPv4 endpoint from notation (xxx.xxx.xxx.xxx) or hostname and port number
| |
ResolveAsync(String, NetUtility..::..ResolveAddressCallback) |
Get IPv4 address from notation (xxx.xxx.xxx.xxx) or hostname (asynchronous version)
| |
ResolveAsync(String, Int32, NetUtility..::..ResolveEndPointCallback) |
Get IPv4 endpoint from notation (xxx.xxx.xxx.xxx) or hostname and port number (asynchronous version)
| |
ToByteArray |
Convert a hexadecimal string to a byte array
| |
ToHexString(array<Byte>[]()[][]) |
Create a hex string from an array of bytes
| |
ToHexString(Int64) |
Create a hex string from an Int64 value
| |
ToHumanReadable |
Converts a number of bytes to a shorter, more readable string representation
|