#NEWLINE# def _create_listen_socket( self , family , loc_addr ) : #NEWLINE# #INDENT# s = socket . socket ( family ) #NEWLINE# s . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) #NEWLINE# s . bind ( loc_addr ) #NEWLINE# s . listen ( 1 ) #NEWLINE# return s