#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def startService( self ) : #NEWLINE# #INDENT# service . Service . startService ( self ) #NEWLINE# bindDeferred = self . client . connectAndBind ( ) #NEWLINE# bindDeferred . addErrback ( self . handleStartError ) #NEWLINE# smpp = ( yield smpp ) #NEWLINE# smpp . getDisconnectedDeferred ( ) . chainDeferred ( self . stopDeferred ) #NEWLINE# defer . returnValue ( smpp )