SMPPEX.Pdu.as_reply_to

You're seeing just the function as_reply_to, go back to SMPPEX.Pdu module for more information.
Link to this function

as_reply_to(pdu, reply_to_pdu)

View Source

Specs

as_reply_to(pdu :: t(), reply_to_pdu :: t()) :: t()

Makes pdu be reply to the reply_to_pdu, i.e. assigns reply_to_pdu's sequence_number to pdu.

Examples

iex(1)> pdu1 = SMPPEX.Pdu.new({0x00000004, 0, 123})
iex(2)> pdu2 = SMPPEX.Pdu.new(0x80000004) |> SMPPEX.Pdu.as_reply_to(pdu1)
iex(3)> SMPPEX.Pdu.sequence_number(pdu2)
123