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
initializing network (including binding to socket) moved out from network thread, enabling catching of exceptions
ConnectionReset on reading handled properly (by disconnecting) when only one connection readonly added to various members
This commit is contained in:
@@ -26,9 +26,9 @@ namespace Lidgren.Network
|
||||
{
|
||||
internal int m_storedBytes;
|
||||
private int m_maxStoredBytes;
|
||||
private List<byte[]> m_storagePool = new List<byte[]>();
|
||||
private NetQueue<NetIncomingMessage> m_incomingMessagesPool = new NetQueue<NetIncomingMessage>(16);
|
||||
private NetQueue<NetOutgoingMessage> m_outgoingMessagesPool = new NetQueue<NetOutgoingMessage>(16);
|
||||
private readonly List<byte[]> m_storagePool = new List<byte[]>();
|
||||
private readonly NetQueue<NetIncomingMessage> m_incomingMessagesPool = new NetQueue<NetIncomingMessage>(16);
|
||||
private readonly NetQueue<NetOutgoingMessage> m_outgoingMessagesPool = new NetQueue<NetOutgoingMessage>(16);
|
||||
|
||||
private void InitializeRecycling()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user