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

Missing project added; various code cleanups

This commit is contained in:
lidgren
2010-05-14 17:12:26 +00:00
parent bf208b507a
commit 9577d4b4a6
31 changed files with 381 additions and 139 deletions

View File

@@ -28,8 +28,8 @@ namespace Lidgren.Network
[DebuggerDisplay("RemoteEndpoint={m_remoteEndpoint} Status={m_status}")]
public partial class NetConnection
{
private NetPeer m_owner;
internal IPEndPoint m_remoteEndpoint;
private readonly NetPeer m_owner;
internal readonly IPEndPoint m_remoteEndpoint;
internal double m_lastHeardFrom;
internal NetQueue<NetOutgoingMessage> m_unsentMessages;
internal NetConnectionStatus m_status;
@@ -523,7 +523,8 @@ namespace Lidgren.Network
HandleIncomingAcks(ptr, NetUtility.BytesToHoldBits(payloadLengthBits));
break;
default:
throw new NotImplementedException("Unhandled library type: " + libType);
m_owner.LogWarning("Unhandled library type in " + this + ": " + libType);
break;
}
return;
@@ -652,12 +653,6 @@ namespace Lidgren.Network
m_pendingDenialReason = reason;
}
internal void Dispose()
{
m_owner = null;
m_unsentMessages = null;
}
public override string ToString()
{
return "[NetConnection to " + m_remoteEndpoint + " Status: " + m_visibleStatus + "]";