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): Future[void] {.stackTrace: false, ...gcsafe,
    raises: [], gcsafe, raises: [], gcsafe, raises: [], tags: [RootEffect].}
  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, WriteIOEffect].}
  Source   Edit
method readMessage(c: SecureConn): Future[seq[byte]] {.base, stackTrace: false,
    ...gcsafe, raises: [], gcsafe, raises: [], gcsafe, raises: [],
    tags: [RootEffect].}
  Source   Edit
method readOnce(s: SecureConn; pbytes: pointer; nbytes: int): Future[int] {.
    stackTrace: false, ...gcsafe, raises: [], gcsafe, raises: [], gcsafe,
    raises: [], tags: [RootEffect].}
  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