Method | Description | |
---|---|---|
BytesToHoldBits ( int numBits ) : int |
Returns how many bytes are required to hold a certain number of bits
|
|
GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress |
Returns the physical (MAC) address for the first usable network interface
|
|
GetMyAddress ( |
Gets my local IP address (not necessarily external) and subnet mask
|
|
GetWindowSize ( NetDeliveryMethod method ) : int |
Gets the window size used internally in the library for a certain delivery method
|
|
IsLocal ( |
Returns true if the IPAddress supplied is on the same subnet as this host
|
|
IsLocal ( |
Returns true if the IPEndPoint supplied is on the same subnet as this host
|
|
Resolve ( string ipOrHost ) : |
Get IPv4 address from notation (xxx.xxx.xxx.xxx) or hostname
|
|
Resolve ( string ipOrHost, int port ) : |
Get IPv4 endpoint from notation (xxx.xxx.xxx.xxx) or hostname and port number
|
|
ToByteArray ( String hexString ) : byte[] |
Convert a hexadecimal string to a byte array
|
|
ToHexString ( byte data ) : string |
Create a hex string from an array of bytes
|
|
ToHexString ( long data ) : string |
Create a hex string from an Int64 value
|
|
ToHumanReadable ( long bytes ) : string |
Converts a number of bytes to a shorter, more readable string representation
|
Method | Description | |
---|---|---|
BitsToHoldUInt ( uint value ) : int | ||
CompareElements ( byte one, byte two ) : bool | ||
GetDeliveryMethod ( NetMessageType mtp ) : NetDeliveryMethod | ||
GetNetworkInterface ( ) : |
||
RelativeSequenceNumber ( int nr, int expected ) : int | ||
SortMembersList ( System list ) : void | ||
SwapByteOrder ( |
||
SwapByteOrder ( System.UInt64 value ) : System.UInt64 |
public static BytesToHoldBits ( int numBits ) : int | ||
numBits | int | |
return | int |
public static GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress | ||
return | System.Net.NetworkInformation.PhysicalAddress |
public static GetMyAddress ( |
||
mask | ||
return |
public static GetWindowSize ( NetDeliveryMethod method ) : int | ||
method | NetDeliveryMethod | |
return | int |
public static IsLocal ( |
||
remote | ||
return | bool |
public static IsLocal ( |
||
endpoint | ||
return | bool |
public static Resolve ( string ipOrHost ) : |
||
ipOrHost | string | |
return |
public static Resolve ( string ipOrHost, int port ) : |
||
ipOrHost | string | |
port | int | |
return |
public static ToByteArray ( String hexString ) : byte[] | ||
hexString | String | |
return | byte[] |
public static ToHexString ( byte data ) : string | ||
data | byte | |
return | string |
public static ToHexString ( long data ) : string | ||
data | long | |
return | string |
public static ToHumanReadable ( long bytes ) : string | ||
bytes | long | |
return | string |