Пример #1
0
 def __init__(self, request, client_address, server):
     # mengosongkan variabel datas, agar setiap aktivitas tidak ter-stack
     datas.clear()
     # inisialisasi timestamp
     request_date = datetime.now().strftime('%A %d-%m-%Y %H:%M')
     # melakukan print ip serta port dari aktivitas client
     print("Alamat IP Client: ", client_address[0], " Port: ",
           client_address[1])
     # melakukan print timestamp dari aktivitas client
     print("Waktu Aktivitas Client: ", request_date)
     # menyimpan data ip, port, serta timestamp kedalam variabel datas
     datas.extend([client_address[0], client_address[1], request_date])
     SimpleXMLRPCRequestHandler.__init__(self, request, client_address,
                                         server)
Пример #2
0
 def __init__(self, request, client_address, server):
     self.server = server
     SimpleXMLRPCRequestHandler.__init__(self, request, client_address, server)
Пример #3
0
 def __init__(self, request, client_address, server):
     self.server = server
     SimpleXMLRPCRequestHandler.__init__(self, request, client_address, server)
Пример #4
0
 def __init__(self, request, client_address, server):
     self.client_ip, self.client_port = client_address
     self.logger.debug("==== received XMLRPC (from %s:%s)" %
                       (self.client_ip, self.client_port))
     SimpleXMLRPCRequestHandler.__init__(self, request, client_address,
                                         server)
Пример #5
0
 def __init__(self,req,addr,server):
     self.client_ip,self.client_port = addr
     print(self.client_ip)
     SimpleXMLRPCRequestHandler.__init__(self,req,addr,server)
Пример #6
0
 def __init__(self, *args, **kwargs):
   SimpleXMLRPCRequestHandler.__init__(self, *args, **kwargs)
   self.HTTPRequestHandler = SimpleHTTPRequestHandler.__init__(self, *args, **kwargs)