#NEWLINE# def connect( self , service = VoidService , config = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# 'Same as :func:`connect <rpyc.utils.factory.connect>`, but with the ``host`` and ``port`` \n        parameters fixed' #NEWLINE# if ( self . local_port is None ) : #NEWLINE# #INDENT# stream = SocketStream ( self . remote_machine . connect_sock ( self . remote_port ) ) #NEWLINE# return rpyc . connect_stream ( stream , service = service , config = config ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return rpyc . connect ( 'localhost' , self . local_port , service = service , config = service )