public ReceiveThread(String name, IConnectedDatagramTransmitter receiveTransmitter, Int32 timeoutMillis, byte[] receiveBuffer)
        {
            this.name               = name;
            this.timeoutMillis      = timeoutMillis;
            this.receiveBuffer      = receiveBuffer;
            this.receiveTransmitter = receiveTransmitter;

            this.stopwatchStartTicks = 0;
        }
Beispiel #2
0
        public ClumsyTransmitter(IConnectedDatagramTransmitter underlyingTransmitter, TextWriter debugLog)
        {
            this.underlyingTransmitter = underlyingTransmitter;
            this.debugLog = debugLog;

            this.dropSentDatagramsUntil     = 0;
            this.dropReceivedDatagramsUntil = 0;

            this.receiveBuffer = new Byte[underlyingTransmitter.MaximumDatagramSize];
        }
Beispiel #3
0
        public CdpTransmitter(IConnectedDatagramTransmitter connectedDatagramTransmitter)
        {
            this.connectedDatagramTransmitter = connectedDatagramTransmitter;

            this.lastSendBufferRequested = null;

            this.nextPayloadID = 0;

            this.datagramQueue = new DatagramQueue(QueueInitialCapacity, QueueExtendLength);

            this.headerBuffer = new Byte[Cdp.HeaderLengthWithPayloadID];

            this.latencyMeasurementsInAverage = 0;
        }