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

Clarifications in code on new status enum ReceivedInitiation

This commit is contained in:
lidgren
2012-07-06 18:36:36 +00:00
parent d11dcbe257
commit b49392182b

View File

@@ -76,6 +76,7 @@ namespace Lidgren.Network
SendConnectResponse(now, true); SendConnectResponse(now, true);
break; break;
case NetConnectionStatus.None: case NetConnectionStatus.None:
case NetConnectionStatus.ReceivedInitiation:
m_peer.LogWarning("Time to resend handshake, but status is " + m_status); m_peer.LogWarning("Time to resend handshake, but status is " + m_status);
break; break;
case NetConnectionStatus.RespondedAwaitingApproval: case NetConnectionStatus.RespondedAwaitingApproval:
@@ -345,6 +346,7 @@ namespace Lidgren.Network
break; break;
case NetConnectionStatus.Disconnecting: case NetConnectionStatus.Disconnecting:
case NetConnectionStatus.Disconnected: case NetConnectionStatus.Disconnected:
case NetConnectionStatus.ReceivedInitiation:
case NetConnectionStatus.None: case NetConnectionStatus.None:
// wtf? anyway, bye! // wtf? anyway, bye!
break; break;
@@ -365,8 +367,11 @@ namespace Lidgren.Network
case NetConnectionStatus.None: case NetConnectionStatus.None:
// too bad, almost made it // too bad, almost made it
break; break;
case NetConnectionStatus.ReceivedInitiation:
// uh, a little premature... ignore
break;
case NetConnectionStatus.InitiatedConnect: case NetConnectionStatus.InitiatedConnect:
// weird, should have been ConnectResponse... // weird, should have been RespondedConnect...
break; break;
case NetConnectionStatus.RespondedConnect: case NetConnectionStatus.RespondedConnect:
// awesome // awesome