libp2p/stream/chronosstream

    Dark Mode
Search:
Group by:
  Source   Edit

Types

ChronosStream = ref object of Connection
  client: StreamTransport
  when defined(libp2p_agents_metrics):
      tracked: bool

  
  Source   Edit

Consts

ChronosStreamTrackerName = "ChronosStream"
  Source   Edit

Procs

proc init(C: type ChronosStream; client: StreamTransport; dir: Direction;
          timeout = DefaultChronosStreamTimeout; observedAddr: Opt[MultiAddress]): ChronosStream {.
    ...raises: [].}
  Source   Edit
func shortLog(conn: ChronosStream): auto {....raises: [], tags: [].}
  Source   Edit

Methods

method atEof(s: ChronosStream): bool {....raises: [], tags: [].}
  Source   Edit
method closed(s: ChronosStream): bool {....raises: [], tags: [].}
  Source   Edit
method closeImpl(s: ChronosStream): Future[void] {.stackTrace: false, ...gcsafe,
    raises: [], raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
method getWrapped(s: ChronosStream): Connection {....raises: [], tags: [].}
  Source   Edit
method initStream(s: ChronosStream) {....raises: [], tags: [RootEffect, TimeEffect].}
  Source   Edit
method readOnce(s: ChronosStream; pbytes: pointer; nbytes: int): Future[int] {.
    stackTrace: false, ...gcsafe, raises: [], raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit
method write(s: ChronosStream; msg: seq[byte]): Future[void] {....raises: [],
    tags: [RootEffect].}
  Source   Edit

Templates

template formatItIMPL(it: ChronosStream): auto
  Source   Edit