1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

XML comments added to remove all warnings; Documentation.chm updated

This commit is contained in:
lidgren
2011-04-25 15:13:36 +00:00
parent 650c91fea5
commit 19000f8036
23 changed files with 359 additions and 48 deletions

View File

@@ -118,6 +118,9 @@ namespace Lidgren.Network
return best;
}
/// <summary>
/// Returns the physical (MAC) address for the first usable network interface
/// </summary>
public static PhysicalAddress GetMacAddress()
{
NetworkInterface ni = GetNetworkInterface();
@@ -126,11 +129,17 @@ namespace Lidgren.Network
return ni.GetPhysicalAddress();
}
/// <summary>
/// Create a hex string from an Int64 value
/// </summary>
public static string ToHexString(long data)
{
return ToHexString(BitConverter.GetBytes(data));
}
/// <summary>
/// Create a hex string from an array of bytes
/// </summary>
public static string ToHexString(byte[] data)
{
char[] c = new char[data.Length * 2];
@@ -283,6 +292,9 @@ namespace Lidgren.Network
return retval;
}
/// <summary>
/// Gets the window size used internally in the library for a certain delivery method
/// </summary>
public static int GetWindowSize(NetDeliveryMethod method)
{
switch (method)