on_disconnected Event

This event is fired when connection to the SMS service is lost.

Syntax

class SMPPDisconnectedEventParams(object):
  @property
  def status_code() -> int: ...
  @property
  def description() -> str: ...

# In class SMPP:
@property
def on_disconnected() -> Callable[[SMPPDisconnectedEventParams], None]: ...
@on_disconnected.setter
def on_disconnected(event_hook: Callable[[SMPPDisconnectedEventParams], None]) -> None: ...

Remarks

After sending an unbind operation to the server, this event will be fired containing the results of that operation. This event may also be fired if the socket connection to the service is lost.

If the event was fired because of an unbind operation, StatusCode will contain the command status set by the server. Otherwise, it will contain the socket code for the type of disconnection. For a status code value of "0", Description will contain "OK." Otherwise, it will contain a standard interpretation of the value in StatusCode.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]