#NEWLINE# def _setup_server( self , config , core ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# network . Server ( self . hostname , self . port , protocol = session . MpdSession , protocol_kwargs = { #NEWLINE# #INDENT# 'config' : config , #NEWLINE# 'core' : core , #NEWLINE# 'uri_map' : self . uri_map , #NEWLINE# #UNINDENT# } , max_connections = config [ 'mpd' ] [ 'max_connections' ] , timeout = config [ 'mpd' ] [ 'connection_timeout' ] ) #NEWLINE# #UNINDENT# except IOError as error : #NEWLINE# #INDENT# raise exceptions . FrontendError ( ( 'MPD server startup failed: %s' % encoding . locale_decode ( error ) ) ) #NEWLINE# #UNINDENT# logger . info ( 'MPD server running at [%s]:%s' , self . hostname , self . port )