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): InternalRaisesFuture[void, void] {. stackTrace: false, ...raises: [], gcsafe, 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]): InternalRaisesFuture[SecureConn, (CancelledError, LPStreamError)] {.base, stackTrace: false, ...raises: [], gcsafe, gcsafe, raises: [], gcsafe, raises: [], tags: [].}
- Source Edit
method initStream(s: SecureConn) {....gcsafe, raises: [], tags: [TimeEffect, RootEffect].}
- Source Edit
method readMessage(c: SecureConn): InternalRaisesFuture[seq[byte], (CancelledError, LPStreamError)] {.base, stackTrace: false, ...raises: [], gcsafe, gcsafe, raises: [], gcsafe, raises: [], tags: [].}
- Source Edit
method readOnce(s: SecureConn; pbytes: pointer; nbytes: int): InternalRaisesFuture[ int, (CancelledError, LPStreamError)] {.stackTrace: false, ...raises: [], gcsafe, gcsafe, raises: [], gcsafe, raises: [], tags: [RootEffect].}
- Source Edit
method secure(s: Secure; conn: Connection; peerId: Opt[PeerId]): InternalRaisesFuture[ Connection, (CancelledError, LPStreamError)] {.base, stackTrace: false, ...raises: [], gcsafe, gcsafe, raises: [], gcsafe, raises: [], tags: [RootEffect].}
- Source Edit
Templates
template formatItIMPL(it: SecureConn): auto
- Source Edit