smppex v2.2.9 SMPPEX.Pdu.NetworkErrorCode View Source
Module for operating with deliver_sm
network_error_code parameter.
Link to this section Summary
Functions
Converts octet_string from network_error_code tag to type_code and error_value
Converts network_error_code type and error to octet string
Link to this section Types
Link to this section Functions
Link to this function
decode(arg)
View Source
decode(network_error_code()) :: {type_code(), error_code()}
Converts octet_string from network_error_code tag to type_code and error_value
Example
iex(1)> SMPPEX.Pdu.NetworkErrorCode.decode(<<08,00,01>>)
{8, 1}
Link to this function
encode(type_code, error_code)
View Source
encode(type_code(), error_code()) :: network_error_code()
Converts network_error_code type and error to octet string
Example
iex(1)> SMPPEX.Pdu.NetworkErrorCode.encode(8,1)
<<08,00,01>>