def close(self): SimpleServiceHandler.close(self) if self.socket: try: self.socket.shutdown(socket.SHUT_RDWR) self.socket = None except: pass
def __init__(self, service, messageDelimiter="\n"): self.sendData =[] SimpleServiceHandler.__init__(self, service, messageDelimiter=messageDelimiter)
def __init__(self, socket, service, messageDelimiter=""): self.socket = socket SimpleServiceHandler.__init__(self, service, messageDelimiter=messageDelimiter)
def __init__(self, url, service, messageDelimiter=""): self.url = url SimpleServiceHandler.__init__(self, service, messageDelimiter=messageDelimiter)
def __init__(self, url, service,messageDelimiter=""): self.url = url SimpleServiceHandler.__init__(self, service,messageDelimiter=messageDelimiter)