Table of Contents

Class SmppOutbindClient

Namespace
Inetlab.SMPP
Assembly
Inetlab.SMPP.dll

A SMPP session initiated by SMSC with Outbind command.

public class SmppOutbindClient : SmppClientBase, IDisposable
Inheritance
SmppOutbindClient
Implements
Inherited Members

Constructors

SmppOutbindClient()

public SmppOutbindClient()

SmppOutbindClient(string)

public SmppOutbindClient(string name)

Parameters

name string

Methods

ConnectAsync(SmppClientConnectionOptions)

Establish the network connection with ESME using SmppConnectionOptions.

public Task<bool> ConnectAsync(SmppClientConnectionOptions options)

Parameters

options SmppClientConnectionOptions

The connection options

Returns

Task<bool>

Exceptions

ObjectDisposedException

Thrown when the instance is disposed.

ArgumentNullException

Thrown when options parameter is not defined.

DeliverAsync(IBuilder<DeliverSm>)

Submits an array of DeliverSm messages created from SMS builder.

public Task<DeliverSmResp[]> DeliverAsync(IBuilder<DeliverSm> builder)

Parameters

builder IBuilder<DeliverSm>

Returns

Task<DeliverSmResp[]>

Exceptions

ArgumentNullException

Thrown when builder is not defined.

DeliverAsync(DeliverSm)

Sends message from SMSC to ESME

public Task<DeliverSmResp> DeliverAsync(DeliverSm pdu)

Parameters

pdu DeliverSm

Returns

Task<DeliverSmResp>

Exceptions

InvalidOperationException

Thrown when PDU serialization is failed.

ArgumentNullException

Thrown when request instance is null.

GenericNackSmppException

Thrown when remote side returns negative acknowledgement (GENERIC_NACK) response, which means invalid or unknown command.

DeliverAsync(params DeliverSm[])

Submits an array of DeliverSm messages to ESME.

public Task<DeliverSmResp[]> DeliverAsync(params DeliverSm[] pduList)

Parameters

pduList DeliverSm[]

Returns

Task<DeliverSmResp[]>

DeliverAsync(IEnumerable<DeliverSm>)

Submits a collection of DeliverSm messages to ESME.

public Task<IEnumerable<DeliverSmResp>> DeliverAsync(IEnumerable<DeliverSm> pduList)

Parameters

pduList IEnumerable<DeliverSm>

Returns

Task<IEnumerable<DeliverSmResp>>

OutbindAsync(OutBind)

Signal an ESME to originate a bind_receiver request to the SMSC.

public Task OutbindAsync(OutBind pdu)

Parameters

pdu OutBind

The OutBind PDU

Returns

Task

Exceptions

SmppException

When SMPP session is not established.

Events

evBind

Occurs when Bind packet received

public event BindEventHandler evBind

Event Type

BindEventHandler