예제 #1
0
 public SequencedTeleportChannel(BaseTeleportChannel internalChannel, bool sendAcks) : base(internalChannel)
 {
     _sendAcks                  = sendAcks;
     _outgoingSequence          = 0;
     _lastReceiveIndex          = -1;
     _lastProcessedReceiveIndex = -1;
     _inbox            = new Dictionary <ushort, InboxItem>();
     _outbox           = new Dictionary <ushort, OutboxItem>();
     _outboxLock       = new object();
     _pendingAcksQueue = new ArrayQueue <ushort>(8096);
 }
예제 #2
0
 public SimpleTeleportChannel(int maxReceiveBuffer = 8096, int maxSendBuffer = 8096)
 {
     _receiveQueue = new ArrayQueue <byte[]>(maxReceiveBuffer);
     _sendQueue    = new ArrayQueue <byte[]>(maxSendBuffer);
 }