示例#1
0
        public void TestEnquireLinkEncode()
        {
            var pdu = new EnquireLink();

            pdu.sequence_number = 1;

            Assert.AreEqual(rawPdu, pdu.Encode(), "enquire_link should be properly encoded");
        }
示例#2
0
        private void SendEnquireLink()
        {
            string pdu;
            var    enquire_link = new EnquireLink();

            enquire_link.sequence_number = sequence_number;
            commands_queue.Add(sequence_number, DateTime.Now);

            pdu = enquire_link.Encode();
            Events.LogChannelEvent(channel_name, "Sending [enquire_link]", debug ? pdu : "");
            SendPDU(pdu);
        }