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] {.async: (...raises: []),
    ...raises: [], tags: [].}
  Source   Edit
method getWrapped(self: RelayConnection): Connection {....raises: [], tags: [].}
  Source   Edit
method readOnce(self: RelayConnection; pbytes: pointer; nbytes: int): Future[int] {.
    async: (...raises: [CancelledError, LPStreamError], raw: true), ...raises: [],
    tags: [].}
  Source   Edit
method write(self: RelayConnection; msg: seq[byte]): Future[void] {.
    async: (...raises: [CancelledError, LPStreamError]), ...raises: [], tags: [].}
  Source   Edit