Class SmppServer
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
EnabledSslProtocols
Defines enabled versions of SSL Protocols for SMPP client.
public SslProtocols EnabledSslProtocols { get; set; }
Property Value
Logger
public ILog Logger { get; set; }
Property Value
Name
Name of the server. Used for logging.
public string Name { get; set; }
Property Value
ServerCertificate
Gets or sets server certificate for SSL connection
public X509Certificate ServerCertificate { get; set; }
Property Value
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
Stop()
Stop server
public void Stop()
Events
evClientBind
Occurs when SmppClient bind with server
public event ClientBindEventHandler evClientBind
Event Type
evClientCancelSm
Occurs when SmppClient sent CANCEL_SM PDU
public event ClientCancelSmEventHandler evClientCancelSm
Event Type
evClientCertificateValidation
Validating client certificate.
public event EventHandler<CertificateValidationEventArgs> evClientCertificateValidation
Event Type
evClientConnected
Occurs when SmppClient is connected
public event ClientConnectedEventHandler evClientConnected
Event Type
evClientDataSm
Occurs when SmppClient sent DATA_SM PDU
public event ClientDataSmEventHandler evClientDataSm
Event Type
evClientDisconnected
Occurs when SmppClient is disconnected
public event ClientDisconnectedEventHandler evClientDisconnected
Event Type
evClientEnquireLink
Occurs when SmppClient sent ENQUIRE_LINK PDU
public event ClientEnquireLinkEventHandler evClientEnquireLink
Event Type
evClientGenericNack
Occurs when SmppClient sent GENERIC_NACK PDU
public event ClientGenericNackEventHandler evClientGenericNack
Event Type
evClientOutBind
Occurs when MC initiate a SMPP session
public event ClientOutBindEventHandler evClientOutBind
Event Type
evClientQuerySm
Occurs when SmppClient sent QUERY_SM PDU
public event ClientQuerySmEventHandler evClientQuerySm
Event Type
evClientReplaceSm
Occurs when SmppClient sent REPLACE_SM PDU
public event ClientReplaceSmEventHandler evClientReplaceSm
Event Type
evClientSubmitMulti
Occurs when SmppClient sent SUBMIT_MULTI PDU
public event ClientSubmitMultiEventHandler evClientSubmitMulti
Event Type
evClientSubmitSm
Occurs when SmppClient sent SUBMIT_SM PDU
public event ClientSubmitSmEventHandler evClientSubmitSm
Event Type
evClientUnBind
Occurs when SmppClient unbind from server
public event ClientUnBindEventHandler evClientUnBind
Event Type
evServerStarted
Occurs when server is started
public event EventHandler evServerStarted