GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
smpp_operation(1) FreeBSD General Commands Manual smpp_operation(1)
Authors: Enrique Marcote (enrique.marcote@erlang-consulting.com) Miguel Rodriguez (miguel@erlang-consulting.com)

smpp_operation

Functions to manipulate PDU params.

Types
Name = atom()
Pdu = pdu()
Val = term()
Default = term()
Gets the value of a parameter from a PDU dictionary given the parameter name. If the parameter is not defined on the PDU Default is returned if defined, if not, the atom undefined is returned.

Types
Params1 = [{Name, Val}]
Params2 = [{Name, Val}]
NewParams = [{Name, Val}]
Name = atom()
Val = term()
Merge two parameter lists. If an parameter appears on both lists, the value from the first list will be taken.

Types
Name = atom()
Val = term()
Pdu = pdu()
NewPdu = pdu()
Sets the value of a parameter on a PDU dictionary given the parameter name, the new PDU dictionary is returned.

PDU creation and conversion.

Types
CmdId = int()
SeqNum = int()
InitParams = [{Name, Val}]
Name = atom()
Val = term()
Pdu = pdu()
Creates a new PDU dictionary of type PdyType with the given InitParams and the default values defined for this PDU.
The command_status is set to ESME_ROK.

Types
CmdId = int()
CmdStatus = int()
SeqNum = int()
InitParams = [{Name, Val}]
Name = atom()
Val = term()
Pdu = pdu()
Creates a new PDU dictionary of type PdyType with the given InitParams and the default values defined for this PDU.
The command_status is set to CmdStatus.

Types
CmdId = int()
CmdStatus = int()
Returns the error status code associated to a request failure (Most of the requests have a generic failure code, otherwise ?ESME_RUNKNOWNERR is returned).

Types
Pdu = pdu()
List = [{Name, Val}]
Name = atom()
Val = term()
Converts the Pdu to a list representation.
Notice that command_length won't be included on the resulting List.

Packing and unpacking functions.

Types
Pdu = pdu()
Result = {ok, BinPdu} | {error, CmdId, CmdStatus, SeqNum}
BinPdu = bin()
Error = int()
CmdId = undefined | int()
CmdStatus = int()
SeqNum = int()
Packs any SMPP PDU dictionary into the corresponding byte stream. This function handles any operation.
Before using this function consider pack_esme/1 or pack_mc/1. This generic packing function should only be used on special occasions (implementing a Routing Entity).

Types
BinPdu = bin()
Result = {ok, Pdu} | {error, CmdId, CmdStatus, SeqNum}
Pdu = pdu()
CmdId = undefined | int()
CmdStatus = int()
SeqNum = int()
Unpacks a binary SMPP PDU into the corresponding PDU dictionary. This function handles any operation.
Before using this function consider unpack_esme/1 or unpack_mc/1. This generic unpacking function should only be used on very special occasions (such us implementing a Routing Entity).

oserl(1)
Version: oserl

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.