internal void Enqueue(PduBase pdu) { _sendQueue.Add(pdu); }
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); }