SMPPEX.ESME.Sync.request
You're seeing just the function
request
, go back to SMPPEX.ESME.Sync module for more information.
Specs
request(esme :: pid(), pdu :: SMPPEX.Pdu.t(), timeout :: non_neg_integer()) :: {:ok, resp :: SMPPEX.Pdu.t()} | :timeout | :stop | {:error, reason :: term()}
Syncronously sends a PDU and wait for at most timeout
ms for a response PDU.
The default timeout is 5000 ms.
The result value is one of:
{:ok, resp}
, whereresp
is a successfully received response PDU;:timeout
if the response PDU was not received withintimeout
;:stop
if the ESME stopped while a response was awaited;{:error, reason}
if the request failed.