libp2p/protocols/connectivity/relay/rconn

    Dark Mode
Search:
Group by:
  Source   Edit

Types

RelayConnection = ref object of Connection
  conn*: Connection
  limitDuration*: uint32
  limitData*: uint64
  dataSent*: uint64
  Source   Edit

Procs

proc new(T: typedesc[RelayConnection]; conn: Connection; limitDuration: uint32;
         limitData: uint64): T:type {....raises: [].}
  Source   Edit

Methods

method closeImpl(self: RelayConnection): Future[void] {.stackTrace: false,
    ...raises: [], gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
method getWrapped(self: RelayConnection): Connection {....raises: [], tags: [].}
  Source   Edit
method readOnce(self: RelayConnection; pbytes: pointer; nbytes: int): Future[int] {.
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit
method write(self: RelayConnection; msg: seq[byte]): Future[void] {.
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit