Пример #1
0
        private Commands.Debugging_Messaging_Address InitializeAddressForTransmission(EndPoint epTo)
        {
            Commands.Debugging_Messaging_Address addr = new Commands.Debugging_Messaging_Address();

            addr.m_seq = (uint)Interlocked.Increment(ref m_seq);

            addr.m_from_Type = m_type;
            addr.m_from_Id   = m_id;

            addr.m_to_Type = epTo.m_type;
            addr.m_to_Id   = epTo.m_id;

            return(addr);
        }
Пример #2
0
        internal Commands.Debugging_Messaging_Address InitializeAddressForReception()
        {
            Commands.Debugging_Messaging_Address addr = new Commands.Debugging_Messaging_Address();

            addr.m_seq = 0;

            addr.m_from_Type = 0;
            addr.m_from_Id   = 0;

            addr.m_to_Type = m_type;
            addr.m_to_Id   = m_id;

            return(addr);
        }
Пример #3
0
        internal Commands.Debugging_Messaging_Address InitializeAddressForReception()
        {
            Commands.Debugging_Messaging_Address addr = new Commands.Debugging_Messaging_Address
            {
                m_seq = 0,

                m_from_Type = 0,
                m_from_Id   = 0,

                m_to_Type = _type,
                m_to_Id   = _id
            };

            return(addr);
        }
Пример #4
0
        private Commands.Debugging_Messaging_Address InitializeAddressForTransmission(EndPoint epTo)
        {
            Commands.Debugging_Messaging_Address addr = new Commands.Debugging_Messaging_Address
            {
                m_seq = (uint)Interlocked.Increment(ref _sequence),

                m_from_Type = _type,
                m_from_Id   = _id,

                m_to_Type = epTo._type,
                m_to_Id   = epTo._id
            };

            return(addr);
        }
Пример #5
0
 internal Message(EndPoint source, Commands.Debugging_Messaging_Address addr, byte[] payload)
 {
     m_source  = source;
     m_addr    = addr;
     m_payload = payload;
 }