def __init__(self, host, port): from defines import REV_PROXY_NODES_XML_PATH CoAP.__init__(self, (host, port), REV_PROXY_NODES_XML_PATH, cache=True) print "Make reverse proxy with ip/port: " + host + "/" + str(port) self._known_nodes = [] self._candidate_nodes = [] self._candidate_nodes_mutex = threading.Lock()
def __init__(self, host, port, xml_file, multicast=False, cache=False, starting_mid=None): CoAP.__init__(self, (host, port), xml_file=xml_file, multicast=multicast, starting_mid=starting_mid, cache=cache) print(("CoAP Proxy start on " + host + ":" + str(port)))
def __init__(self, host, port, xml_file, multicast=False): CoAP.__init__(self, (host, port), xml_file=xml_file, multicast=multicast) print "CoAP Proxy start on " + host + ":" + str(port)
def __init__(self, host, port, xml_file, multicast=False, cache=False, starting_mid=None): CoAP.__init__(self, (host, port), xml_file=xml_file, multicast=multicast, starting_mid=starting_mid, cache=cache) print "CoAP Proxy start on " + host + ":" + str(port)