Exemple #1
0
 internal void Enqueue(PduBase pdu)
 {
     _sendQueue.Add(pdu);
 }
Exemple #2
0
        internal void WritePduHeader(PduBase pdu)
        {
            if (pdu == null)
                throw new ArgumentNullException("pdu");

            WriteInteger(0);
            WriteInteger((int)pdu.Command);

            var responsePdu = pdu as ResponsePduBase;
            if (responsePdu != null)
                WriteInteger((int)responsePdu.Status);
            else
                WriteInteger(0);
            WriteInteger((int)pdu.SequenceNumber);
        }