def __init__(self, host, port, state, path):
"""
@param reactor: An L{IReactorTCP} provider
@param host: A hostname, used when connecting
@type host: str
@param port: The port number, used when connecting
@type port: int
@param path: A list of relay identities.
@type path: list
This endpoint will be routed through Tor over a circuit
defined by path.
"""
self.host = host
self.port = port
self.path = path
self.state = state
self.or_endpoint = get_orport_endpoint(state)
评论列表
文章目录