libp2p/protocols/connectivity/autonat

    Dark Mode
Search:
Group by:
  Source   Edit

Types

Autonat = ref object of LPProtocol
  sem: AsyncSemaphore
  switch*: Switch
  Source   Edit
AutonatDial = object
  peerInfo: Option[AutonatPeerInfo]
  Source   Edit
AutonatDialResponse = object
  status*: ResponseStatus
  text*: Option[string]
  ma*: Option[MultiAddress]
  Source   Edit
AutonatError = object of LPError
  Source   Edit
AutonatPeerInfo = object
  id: Option[PeerId]
  addrs: seq[MultiAddress]
  Source   Edit
MsgType = enum
  Dial = 0, DialResponse = 1
  Source   Edit
ResponseStatus = enum
  Ok = 0, DialError = 100, DialRefused = 101, BadRequest = 200,
  InternalError = 300
  Source   Edit

Consts

AutonatCodec = "/libp2p/autonat/1.0.0"
  Source   Edit

Procs

proc dialMe(a: Autonat; pid: PeerId; ma: MultiAddress | seq[MultiAddress]): Future[
    MultiAddress] {.stackTrace: false, ...gcsafe, raises: [], raises: [].}
  Source   Edit
proc encode(d: AutonatDial): ProtoBuffer {....raises: [], tags: [].}
  Source   Edit
proc encode(msg: AutonatMsg): ProtoBuffer {....raises: [], tags: [].}
  Source   Edit
proc encode(r: AutonatDialResponse): ProtoBuffer {....raises: [], tags: [].}
  Source   Edit
proc new(T: typedesc[Autonat]; switch: Switch; semSize: int = 1): T:type {.
    ...raises: [].}
  Source   Edit

Methods

method init(a: Autonat) {....raises: [], tags: [].}
  Source   Edit