Types
TorTransport = ref object of Transport transportAddress: TransportAddress tcpTransport: TcpTransport
- Source Edit
TransportStartError = object of transport.TransportError
- Source Edit
Consts
Socks5TransportTrackerName = "libp2p.tortransport"
- Source Edit
Procs
proc new(T: typedesc[TorTransport]; transportAddress: TransportAddress; flags: set[ServerFlags] = {}; upgrade: Upgrade): T:type {.public, ...raises: [].}
- Creates a Tor transport Source Edit
Methods
method accept(self: TorTransport): Future[Connection] {....gcsafe, stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- accept a new TCP connection Source Edit
method dial(self: TorTransport; hostname: string; address: MultiAddress): Future[ Connection] {....gcsafe, stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- dial a peer Source Edit
method handles(t: TorTransport; address: MultiAddress): bool {....gcsafe, raises: [], tags: [].}
- Source Edit
method start(self: TorTransport; addrs: seq[MultiAddress]): Future[void] {. stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- listen on the transport Source Edit
method stop(self: TorTransport): Future[void] {....gcsafe, stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- stop the transport Source Edit