#NEWLINE# def initServer( self , addr , port , sslVer ) : #NEWLINE# #INDENT# sock = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) #NEWLINE# sock . setsockopt ( socket . SOL_SOCKET , socket . SO_REUSEADDR , 1 ) #NEWLINE# server = SSL . Connection ( SSL . Context ( sslVer ) , sock ) #NEWLINE# server . bind ( ( addr , port ) ) #NEWLINE# server . listen ( 1 ) #NEWLINE# server . setblocking ( True ) #NEWLINE# return server