Arad.SMPP by Ammar Heidari

<PackageReference Include="Arad.SMPP" Version="1.0.9" />

 AradSmppClient

SMPP protocol client class for connection with an SMSC over a TCP/IP and for sending or receiving short messages to and from the SMSC.

Defines collection of Client Certificates

public bool ConnectionRecovery { get; set; }

Indicates whether the connection should be recovered.

public TimeSpan ConnectionRecoveryDelay { get; set; }

Gets or sets the delay before the connection will be recovered. Default is 2 minutes.

public SslProtocols EnabledSslProtocols { get; set; }

Defines enabled versions of SSL Protocols for SMPP client.

Occurs when received AlertNotification PDU

Occurs when receiving DeliverSm PDU

Occurs when connection recovery is succeeded.

Occurs when validating server certificate

public AradSmppClient(string name = null)

public Task<BindResp> Bind(string systemId, string password, ConnectionMode mode = 3)

public Task<BindResp> Bind(Bind pdu)

public Task<BindResp> BindAsync(string systemId, string password, ConnectionMode mode = 3)

Sends Bind PDU to SMPP Server. Performs authorization on the server.

public Task<BindResp> BindAsync(Bind pdu)

Sends Bind PDU to SMPP Server. Performs authentication on the server.

public Task<CancelSmResp> Cancel(string messageId, string serviceType = null)

public Task<CancelSmResp> Cancel(SmeAddress sourceAddress)

public Task<CancelSmResp> Cancel(CancelSm cancelSm)

public Task<CancelSmResp> CancelAsync(string messageId, string serviceType = null)

Cancels previously submitted short message that is still pending delivery.

public Task<CancelSmResp> CancelAsync(SmeAddress sourceAddress)

Cancels previously submitted short message that is still pending delivery.

Cancels previously submitted short message that is still pending delivery.

public Task<bool> Connect(EndPoint endPoint)

public Task<bool> Connect(string host, int port)

public Task<bool> ConnectAsync(EndPoint remoteEndPoint, EndPoint localEndPoint = null)

Connect to SMSC using EndPoint instance

public Task<bool> ConnectAsync(string host, int port)

Connect to SMPP server using hostname and port number.

Connect to SMPP server using SmppConnectionOptions.

public Task<QuerySmResp> Query(string messageId, SmeAddress sourceAddress = null)

public Task<QuerySmResp> QueryAsync(string messageId, SmeAddress sourceAddress = null)

Query the status of a previously submitted short message.

Query the status of a previously submitted short message.

Replaces a previously submitted short message that is still pending delivery.

public Task<SubmitSmResp[]> Submit(SubmitSm[] pduList)

public Task<SubmitSmResp> Submit(SubmitSm submitSm)

public Task<SubmitMultiResp[]> Submit(SubmitMulti[] pduList)

Submits an array of SubmitSm messages from SMS builder.

public Task<SubmitSmResp[]> SubmitAsync(SubmitSm[] pduList)

Submits an array of SubmitSm messages to the SMSC.

Submits a collection of SubmitSm messages to the SMSC.

Submits a SubmitSm message to the SMSC

Submits an array of SubmitMulti messages from SMS builder.

Submits an array of SubmitMulti messages to the SMSC.

Submits an array of SubmitMulti messages to the SMSC.

Submits a SubmitMulti message to the SMSC