Types
RelayClient = ref object of Relay onNewConnection*: RelayClientAddConn canHop: bool
- Source Edit
RelayClientAddConn = proc (conn: Connection; duration: uint32; data: uint64): Future[ void] {....gcsafe, raises: [].}
- Source Edit
RelayClientError = object of LPError
- Source Edit
RelayV1DialError = object of RelayClientError
- Source Edit
RelayV2DialError = object of RelayClientError
- Source Edit
ReservationError = object of RelayClientError
- Source Edit
Rsvp = object expire*: uint64 addrs*: seq[MultiAddress] voucher*: Opt[Voucher] limitDuration*: uint32 limitData*: uint64
- Source Edit
Procs
proc dialPeerV1(cl: RelayClient; conn: Connection; dstPeerId: PeerId; dstAddrs: seq[MultiAddress]): Future[Connection] {. stackTrace: false, ...gcsafe, raises: [], raises: [], raises: [], tags: [RootEffect].}
- Source Edit
proc dialPeerV2(cl: RelayClient; conn: RelayConnection; dstPeerId: PeerId; dstAddrs: seq[MultiAddress]): Future[Connection] {. stackTrace: false, ...gcsafe, raises: [], raises: [], raises: [], tags: [RootEffect].}
- Source Edit
proc new(T: typedesc[RelayClient]; canHop: bool = false; reservationTTL: times.Duration = DefaultReservationTTL; limitDuration: uint32 = DefaultLimitDuration; limitData: uint64 = DefaultLimitData; heartbeatSleepTime: uint32 = DefaultHeartbeatSleepTime; maxCircuit: int = MaxCircuit; maxCircuitPerPeer: int = MaxCircuitPerPeer; msgSize: int = RelayClientMsgSize; circuitRelayV1: bool = false): T:type {. ...raises: [].}
- Source Edit
proc reserve(cl: RelayClient; peerId: PeerId; addrs: seq[MultiAddress] = @[]): Future[ Rsvp] {.stackTrace: false, ...gcsafe, raises: [], raises: [], raises: [], tags: [RootEffect].}
- Source Edit