on_connected Event

This event is fired after a successful bind operation.

Syntax

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

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

Remarks

After establishing a socket connection to the smpp_server, the class will attempt to send a bind as transmitter command. Upon completion of this operation, the server will respond with either a success or failure state, reflected in the on_connected event's parameters.

StatusCode will contain the command status (error code) returned by the server. For a StatusCode of "0", Description will be "OK." Otherwise, it will contain a standard interpretation of the error.

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