#NEWLINE# def __init__( self , host , port , websocketclass ) : #NEWLINE# #INDENT# self . websocketclass = websocketclass #NEWLINE# self . serversocket = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) #NEWLINE# self . serversocket . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) #NEWLINE# self . serversocket . bind ( ( host , port ) ) #NEWLINE# self . serversocket . listen ( 5 ) #NEWLINE# self . connections = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . listeners = [ self . serversocket ]