You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-19 00:26:30 +09:00
WaitMessage readded (again)
This commit is contained in:
@@ -129,6 +129,16 @@ namespace Lidgren.Network
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Read a pending message from any connection, blocking up to maxMillis if needed
|
||||||
|
/// </summary>
|
||||||
|
public NetIncomingMessage WaitMessage(int maxMillis)
|
||||||
|
{
|
||||||
|
if (m_messageReceivedEvent != null)
|
||||||
|
m_messageReceivedEvent.WaitOne(maxMillis);
|
||||||
|
return ReadMessage();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Read a pending message from any connection, if any
|
/// Read a pending message from any connection, if any
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user