#NEWLINE# def onConnect( self , smpp ) : #NEWLINE# #INDENT# self . smpp = smpp #NEWLINE# if ( self . msgHandler is not None ) : #NEWLINE# #INDENT# smpp . setDataRequestHandler ( smpp . msgHandler ) #NEWLINE# #UNINDENT# return smpp