libp2p/protocols/secure/secure

    Dark Mode
Search:
Group by:
  Source   Edit

Types

Secure = ref object of LPProtocol
  Source   Edit
SecureConn = ref object of Connection
  stream*: Connection
  buf: StreamSeq
  Source   Edit

Consts

SecureConnTrackerName = "SecureConn"
  Source   Edit

Procs

proc new(T: type SecureConn; conn: Connection; peerId: PeerId;
         observedAddr: Opt[MultiAddress];
         timeout: Duration = DefaultConnectionTimeout): T:type {....gcsafe,
    raises: [].}
  Source   Edit
func shortLog(conn: SecureConn): auto {....gcsafe, raises: [], tags: [].}
  Source   Edit

Methods

method closeImpl(s: SecureConn) {.async: (...raises: []), ...gcsafe, raises: [],
                                  tags: [].}
  Source   Edit
method getWrapped(s: SecureConn): Connection {....gcsafe, raises: [], tags: [].}
  Source   Edit
method handshake(s: Secure; conn: Connection; initiator: bool;
                 peerId: Opt[PeerId]): Future[SecureConn] {.base,
    stackTrace: false, ...gcsafe, raises: [], gcsafe, raises: [], gcsafe,
    raises: [], tags: [RootEffect].}
  Source   Edit
method init(s: Secure) {....gcsafe, raises: [], tags: [].}
  Source   Edit
method initStream(s: SecureConn) {....gcsafe, raises: [],
                                   tags: [RootEffect, TimeEffect].}
  Source   Edit
method readMessage(c: SecureConn): Future[seq[byte]] {.
    async: (...raises: [CancelledError, LPStreamError], raw: true), base, ...gcsafe,
    raises: [], tags: [].}
  Source   Edit
method readOnce(s: SecureConn; pbytes: pointer; nbytes: int): Future[int] {.
    async: (...raises: [CancelledError, LPStreamError]), ...gcsafe, raises: [],
    tags: [WriteIOEffect, TimeEffect].}
  Source   Edit
method secure(s: Secure; conn: Connection; peerId: Opt[PeerId]): Future[
    Connection] {.base, ...gcsafe, raises: [], tags: [RootEffect].}
  Source   Edit

Templates

template formatItIMPL(it: SecureConn): auto
  Source   Edit