Exemplo n.º 1
0
 public NetReliableOrderedReceiver(NetConnection connection, int windowSize)
     : base(connection)
 {
     m_windowSize       = windowSize;
     m_withheldMessages = new NetIncomingMessage[windowSize];
     m_earlyReceived    = new NetBitVector(windowSize);
 }
 internal NetUnreliableSenderChannel(NetConnection connection, int windowSize)
 {
     m_connection   = connection;
     m_windowSize   = windowSize;
     m_windowStart  = 0;
     m_sendStart    = 0;
     m_receivedAcks = new NetBitVector(NetConstants.NumSequenceNumbers);
     m_queuedSends  = new NetQueue <NetOutgoingMessage>(8);
 }
Exemplo n.º 3
0
 internal NetReliableSenderChannel(NetConnection connection, int windowSize)
 {
     m_connection     = connection;
     m_windowSize     = windowSize;
     m_windowStart    = 0;
     m_sendStart      = 0;
     m_receivedAcks   = new NetBitVector(NetConstants.NumSequenceNumbers);
     m_storedMessages = new NetStoredReliableMessage[m_windowSize];
     m_queuedSends    = new NetQueue <NetOutgoingMessage>(8);
     m_resendDelay    = m_connection.GetResendDelay();
 }
Exemplo n.º 4
0
 public NetReliableUnorderedReceiver(NetConnection connection, int windowSize)
     : base(connection)
 {
     m_windowSize    = windowSize;
     m_earlyReceived = new NetBitVector(windowSize);
 }