Пример #1
0
        } // Init

        private void ReceiverBos(LBMMessage msg)
        {
            _timeOfDay.NewTimeStamp();

            _reportBuffer.Clear();
            _reportBuffer.Append('B'); _reportBuffer.Append(',');
            _reportBuffer.Append(_parentTmonContext.GetMessageHeader());
            _reportBuffer.Append(','); _reportBuffer.Append(_timeOfDay.GetSec());
            _reportBuffer.Append(','); _reportBuffer.Append(_timeOfDay.GetUsec());
            _reportBuffer.Append(','); _reportBuffer.Append(_objectId);
            _reportBuffer.Append(','); _reportBuffer.Append(msg.topicName().Replace("\\", "\\1").Replace(",", "\\2"));

            _tmonUmSource.send(Encoding.ASCII.GetBytes(_reportBuffer.ToString()), _reportBuffer.Length, 0);
        } // ReceiverBos
Пример #2
0
        } // ConnectionCreate

        public void Close()
        {
            _timeOfDay.NewTimeStamp();

            _messageBuffer.Clear();
            if (_rcvType == ReceiverType.Regular)
            {
                _messageBuffer.Append('r');
            }
            else if (_rcvType == ReceiverType.Wildcard)
            {
                _messageBuffer.Append('w');
            }
            else
            {
                throw new TmonException("invalid rcvType " + (int)_rcvType);
            }
            _messageBuffer.Append(',');
            _messageBuffer.Append(_parentTmonContext.GetMessageHeader());
            _messageBuffer.Append(','); _messageBuffer.Append(_timeOfDay.GetSec());
            _messageBuffer.Append(','); _messageBuffer.Append(_timeOfDay.GetUsec());
            _messageBuffer.Append(','); _messageBuffer.Append(_objectId);

            _tmonUmSource.send(Encoding.ASCII.GetBytes(_messageBuffer.ToString()), _messageBuffer.Length, 0);
        } // Close
Пример #3
0
        } // Init

        public void Close()
        {
            _timeOfDay.NewTimeStamp();

            _messageBuffer.Clear();
            _messageBuffer.Append('s'); _messageBuffer.Append(',');
            _messageBuffer.Append(_parentTmonContext.GetMessageHeader());
            _messageBuffer.Append(','); _messageBuffer.Append(_timeOfDay.GetSec());
            _messageBuffer.Append(','); _messageBuffer.Append(_timeOfDay.GetUsec());
            _messageBuffer.Append(','); _messageBuffer.Append(_objectId);

            _tmonUmSource.send(Encoding.ASCII.GetBytes(_messageBuffer.ToString()), _messageBuffer.Length, 0);
        } // Close
Пример #4
0
        } // TmonContext

        public void Close()
        {
            _timeOfDay.NewTimeStamp();

            _messageBuffer.Clear();
            _messageBuffer.Append('t'); _messageBuffer.Append(',');
            _messageBuffer.Append(GetMessageHeader());
            _messageBuffer.Append(','); _messageBuffer.Append(_timeOfDay.GetSec());
            _messageBuffer.Append(','); _messageBuffer.Append(_timeOfDay.GetUsec());

            _tmonUmSource.send(Encoding.ASCII.GetBytes(_messageBuffer.ToString()), _messageBuffer.Length, 0);

            Dispose();
        } // close