Table of Contents

Class SmppServer

Namespace
Inetlab.SMPP
Assembly
cs.temp.dll.dll
SMPP protocol server class provides ability to create SMPP gateway
public sealed class SmppServer : IDisposable
Inheritance
Object
SmppServer

Constructors

SmppServer()

public SmppServer()

Fields

Logger

public ILog Logger

Field Value

ILog

Properties

ConnectedClients

Gets a list of connected clients
public List<SmppServerClient> ConnectedClients { get; }

Property Value

List<SmppServerClient>

EnabledSslProtocols

Defines enabled versions of SSL Protocols for SMPP client.
public SslProtocols EnabledSslProtocols { get; set; }

Property Value

SslProtocols

Ip

Gets IP address of SMPP server
public IPAddress Ip { get; }

Property Value

IPAddress

Name

Name of the server. Defines logger name.
public string Name { get; set; }

Property Value

String

Port

Gets SMPP server port
public int Port { get; }

Property Value

Int32

ServerCertificate

Gets or sets server certificate for SSL connection
public X509Certificate ServerCertificate { get; set; }

Property Value

X509Certificate

SessionInitiationTimeout

Specifies a period of time in which SmppServer will wait for Bind command from SmppClient. Default is 20 seconds.
public TimeSpan SessionInitiationTimeout { get; set; }

Property Value

TimeSpan

Methods

Dispose()

public void Dispose()

Finalize()

protected void Finalize()

Start(IPEndPoint)

Start the SMPP server on the specified endpoint.
public void Start(IPEndPoint endPoint)

Parameters

endPoint IPEndPoint

Start(Int32)

Start server on specified port
public void Start(int port)

Parameters

port Int32

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

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