Reads the four header words of a framed PDU without decoding its body.
Useful when the body will be discarded (an unsupported command) but the sequence_number is still needed to answer with a generic_nack.
sequence_number
generic_nack
A buffer beginning with a complete PDU at offset 0.
The decoded header.
If the buffer is shorter than the 16-byte header.
1.0.3
import { decodeHeader } from 'edgeport/smpp';const header = decodeHeader(pduBytes);console.log(header.command, header.sequence); Copy
import { decodeHeader } from 'edgeport/smpp';const header = decodeHeader(pduBytes);console.log(header.command, header.sequence);
Reads the four header words of a framed PDU without decoding its body.
Useful when the body will be discarded (an unsupported command) but the
sequence_numberis still needed to answer with ageneric_nack.