#NEWLINE# def set_options( self , sock , bound = False ) : #NEWLINE# #INDENT# sock . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) #NEWLINE# if ( not bound ) : #NEWLINE# #INDENT# self . bind ( sock ) #NEWLINE# #UNINDENT# sock . setblocking ( 0 ) #NEWLINE# if hasattr ( sock , 'set_inheritable' ) : #NEWLINE# #INDENT# sock . set_inheritable ( True ) #NEWLINE# #UNINDENT# sock . listen ( self . conf . backlog ) #NEWLINE# return sock