#NEWLINE# def setup( self , configuration ) : #NEWLINE# #INDENT# 'Basic setup operation (socket binding, listen, etc)' #NEWLINE# logger . log ( logging . DEBUG , 'Socket initialization' ) #NEWLINE# self . s = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) #NEWLINE# self . s . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) #NEWLINE# self . s . bind ( ( self . host , self . port ) ) #NEWLINE# self . s . listen ( 5 ) #NEWLINE# logger . log ( logging . INFO , ( ( ( ( 'Listening on [' + str ( self . host ) ) + ':' ) + str ( self . port ) ) + ']' ) ) #NEWLINE# self . configurationPayload = configuration #NEWLINE# self . requestLimit = configuration . config . requestLimit