Exemplo n.º 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;
        }
Exemplo n.º 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;
		}
Exemplo n.º 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);
        }
Exemplo n.º 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);

		}