internal Message(EndPoint source, WireProtocol.Commands.Debugging_Messaging_Address addr, byte[] payload)
 {
     m_source = source;
     m_addr = addr;
     m_payload = payload;
 }
        private WireProtocol.Commands.Debugging_Messaging_Address InitializeAddressForTransmission(EndPoint epTo)
        {
            WireProtocol.Commands.Debugging_Messaging_Address addr = new WireProtocol.Commands.Debugging_Messaging_Address();

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

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

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

            return addr;
        }
        internal WireProtocol.Commands.Debugging_Messaging_Address InitializeAddressForReception()
        {
            WireProtocol.Commands.Debugging_Messaging_Address addr = new WireProtocol.Commands.Debugging_Messaging_Address();

            addr.m_seq = 0;

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

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

            return addr;
        }
Exemplo n.º 4
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;
        }