Nim-LibP2P Copyright (c) 2019 Status Research & Development GmbH
- Licensed under either of
- Apache License, version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. This file may not be copied, modified, or distributed except according to those terms.
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: MultiAddress = MultiAddress()): ChronosStream {. ...raises: [Defect].}
- Source Edit
func shortLog(conn: ChronosStream): auto {....raises: [Defect], tags: [].}
- Source Edit
Methods
method atEof(s: ChronosStream): bool {....raises: [Defect], tags: [].}
- Source Edit
method closed(s: ChronosStream): bool {....raises: [Defect], tags: [].}
- Source Edit
method closeImpl(s: ChronosStream): Future[void] {.stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- Source Edit
method initStream(s: ChronosStream) {....raises: [Defect], tags: [TimeEffect, RootEffect].}
- Source Edit
method readOnce(s: ChronosStream; pbytes: pointer; nbytes: int): Future[int] {. stackTrace: false, ...gcsafe, raises: [Defect], raises: [Defect], tags: [RootEffect].}
- Source Edit
method write(s: ChronosStream; msg: seq[byte]): Future[void] {....raises: [Defect], tags: [RootEffect].}
- Source Edit
Templates
template formatItIMPL(it: ChronosStream): auto
- Source Edit