3 def run(host
,port
,server
=SocketServer
.TCPServer
):
4 server
.allow_reuse_address
= True
5 httpd
= server((host
,port
),handler
)
10 def __init__(self
, request
, client_address
, server
):
11 self
.request
= request
12 self
.client_address
= client_address
14 self
.request
.send(self
.handler
.main(self
.client_address
,self
.request
.recv(1024)))