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: MultiAddress; timeout: Duration = DefaultConnectionTimeout): T:type {....raises: [].}
- Source Edit
func shortLog(conn: SecureConn): auto {....raises: [], tags: [].}
- Source Edit
Methods
method closeImpl(s: SecureConn): Future[void] {.stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- Source Edit
method getWrapped(s: SecureConn): Connection {....raises: [], tags: [].}
- Source Edit
method handshake(s: Secure; conn: Connection; initiator: bool): Future[ SecureConn] {.base, stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- Source Edit
method initStream(s: SecureConn) {....raises: [], tags: [TimeEffect, RootEffect].}
- Source Edit
method readMessage(c: SecureConn): Future[seq[byte]] {.base, stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- Source Edit
method readOnce(s: SecureConn; pbytes: pointer; nbytes: int): Future[int] {. stackTrace: false, ...gcsafe, raises: [], raises: [], tags: [RootEffect].}
- Source Edit
method secure(s: Secure; conn: Connection; initiator: bool): Future[Connection] {. base, ...raises: [], tags: [RootEffect].}
- Source Edit
Templates
template formatItIMPL(it: SecureConn): auto
- Source Edit