Пример #1
0
        public PDataTFStream(NetworkBase networkBase, byte pcid, uint max, bool combineCommandData)
        {
            _command = true;
            _pcid    = pcid;
            _max     = max;
            _pdu     = new PDataTFWrite(max);
            _pdu.CreatePDV(pcid);

            _networkBase        = networkBase;
            _combineCommandData = combineCommandData;
            BytesWritten        = 0;
        }
Пример #2
0
		public PDataTFStream(NetworkBase networkBase, byte pcid, uint max, bool combineCommandData)
		{
			_command = true;
			_pcid = pcid;
			_max = max;
			_pdu = new PDataTFWrite(max);
			_pdu.CreatePDV(pcid);

			_networkBase = networkBase;
			_combineCommandData = combineCommandData;
			BytesWritten = 0;
		}
Пример #3
0
        private void WritePDU(bool last)
        {
            _pdu.CompletePDV(last, _command);

            RawPDU raw = _pdu.Write();

            _networkBase.EnqueuePdu(raw);
            if (OnTick != null)
            {
                OnTick();
            }

            _pdu = new PDataTFWrite(_max);
        }
Пример #4
0
		private void WritePDU(bool last)
		{
			_pdu.CompletePDV(last, _command);

			RawPDU raw = _pdu.Write();

			_networkBase.EnqueuePdu(raw);
			if (OnTick != null)
				OnTick();

			_pdu = new PDataTFWrite(_max);

		}