Reads the header, then dispatches on command_id to parse the body, returning a
DecodedPdu discriminated on command. The buffer must hold exactly one PDU whose
command_length matches its size. Commands an ESME never has to parse the body of are
rejected with a ProtocolError so the session can answer them with a generic_nack.
Decodes one complete, already-framed SMPP PDU.
Reads the header, then dispatches on
command_idto parse the body, returning a DecodedPdu discriminated oncommand. The buffer must hold exactly one PDU whosecommand_lengthmatches its size. Commands an ESME never has to parse the body of are rejected with a ProtocolError so the session can answer them with ageneric_nack.