Table of Contents

Class SmppServer

Namespace
Inetlab.SMPP
Assembly
Inetlab.SMPP.dll

The SMPP server to which an SmppClient can be connected.

public class SmppServer : IDisposable
Inheritance
SmppServer
Implements
Inherited Members

Constructors

SmppServer(IPEndPoint)

public SmppServer(IPEndPoint endPoint)

Parameters

endPoint IPEndPoint

Properties

ConnectedClients

Gets a list of connected clients

public IReadOnlyList<SmppServerClient> ConnectedClients { get; }

Property Value

IReadOnlyList<SmppServerClient>

EnabledSslProtocols

Defines enabled versions of SSL Protocols for SMPP client.

public SslProtocols EnabledSslProtocols { get; set; }

Property Value

SslProtocols

Logger

public ILog Logger { get; set; }

Property Value

ILog

Name

Name of the server. Used for logging.

public string Name { get; set; }

Property Value

string

ServerCertificate

Gets or sets server certificate for SSL connection

public X509Certificate ServerCertificate { get; set; }

Property Value

X509Certificate

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Start()

public void Start()

Start(CancellationToken)

public Task Start(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

Stop()

Stop server

public void Stop()

Events

evClientBind

Occurs when SmppClient bind with server

public event ClientBindEventHandler evClientBind

Event Type

ClientBindEventHandler

evClientCancelSm

Occurs when SmppClient sent CANCEL_SM PDU

public event ClientCancelSmEventHandler evClientCancelSm

Event Type

ClientCancelSmEventHandler

evClientCertificateValidation

Validating client certificate.

public event EventHandler<CertificateValidationEventArgs> evClientCertificateValidation

Event Type

EventHandler<CertificateValidationEventArgs>

evClientConnected

Occurs when SmppClient is connected

public event ClientConnectedEventHandler evClientConnected

Event Type

ClientConnectedEventHandler

evClientDataSm

Occurs when SmppClient sent DATA_SM PDU

public event ClientDataSmEventHandler evClientDataSm

Event Type

ClientDataSmEventHandler

evClientDisconnected

Occurs when SmppClient is disconnected

public event ClientDisconnectedEventHandler evClientDisconnected

Event Type

ClientDisconnectedEventHandler

Occurs when SmppClient sent ENQUIRE_LINK PDU

public event ClientEnquireLinkEventHandler evClientEnquireLink

Event Type

ClientEnquireLinkEventHandler

evClientGenericNack

Occurs when SmppClient sent GENERIC_NACK PDU

public event ClientGenericNackEventHandler evClientGenericNack

Event Type

ClientGenericNackEventHandler

evClientOutBind

Occurs when MC initiate a SMPP session

public event ClientOutBindEventHandler evClientOutBind

Event Type

ClientOutBindEventHandler

evClientQuerySm

Occurs when SmppClient sent QUERY_SM PDU

public event ClientQuerySmEventHandler evClientQuerySm

Event Type

ClientQuerySmEventHandler

evClientReplaceSm

Occurs when SmppClient sent REPLACE_SM PDU

public event ClientReplaceSmEventHandler evClientReplaceSm

Event Type

ClientReplaceSmEventHandler

evClientSubmitMulti

Occurs when SmppClient sent SUBMIT_MULTI PDU

public event ClientSubmitMultiEventHandler evClientSubmitMulti

Event Type

ClientSubmitMultiEventHandler

evClientSubmitSm

Occurs when SmppClient sent SUBMIT_SM PDU

public event ClientSubmitSmEventHandler evClientSubmitSm

Event Type

ClientSubmitSmEventHandler

evClientUnBind

Occurs when SmppClient unbind from server

public event ClientUnBindEventHandler evClientUnBind

Event Type

ClientUnBindEventHandler

evServerStarted

Occurs when server is started

public event EventHandler evServerStarted

Event Type

EventHandler