You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 15:46:33 +09:00
GetConnection() added
This commit is contained in:
@@ -104,6 +104,17 @@ namespace Lidgren.Network
|
|||||||
m_statistics = new NetPeerStatistics(this);
|
m_statistics = new NetPeerStatistics(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the connection to a remote endpoint; if it exists
|
||||||
|
/// </summary>
|
||||||
|
public NetConnection GetConnection(IPEndPoint remoteEndPoint)
|
||||||
|
{
|
||||||
|
NetConnection retval;
|
||||||
|
if (m_connectionLookup.TryGetValue(remoteEndPoint, out retval))
|
||||||
|
return retval;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Binds to socket
|
/// Binds to socket
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user