mirror of https://github.com/vacp2p/nim-libp2p.git
move SecureConn to secure.nim
This commit is contained in:
parent
19095a0f85
commit
fbe54e5c5a
|
@ -10,8 +10,7 @@
|
|||
import options
|
||||
import chronos
|
||||
import chronicles
|
||||
import secureconn,
|
||||
../protocol,
|
||||
import ../protocol,
|
||||
../../stream/bufferstream,
|
||||
../../crypto/crypto,
|
||||
../../connection,
|
||||
|
@ -19,6 +18,13 @@ import secureconn,
|
|||
|
||||
type
|
||||
Secure* = ref object of LPProtocol # base type for secure managers
|
||||
SecureConn* = ref object of Connection
|
||||
|
||||
method readMessage*(c: SecureConn): Future[seq[byte]] {.async, base.} =
|
||||
doAssert(false, "Not implemented!")
|
||||
|
||||
method writeMessage*(c: SecureConn, data: seq[byte]) {.async, base.} =
|
||||
doAssert(false, "Not implemented!")
|
||||
|
||||
method handshake(s: Secure,
|
||||
conn: Connection,
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
## Nim-LibP2P
|
||||
## Copyright (c) 2020 Status Research & Development GmbH
|
||||
## Licensed under either of
|
||||
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
||||
## * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
||||
## at your option.
|
||||
## This file may not be copied, modified, or distributed except according to
|
||||
## those terms.
|
||||
|
||||
import chronos
|
||||
import ../../connection
|
||||
|
||||
type
|
||||
SecureConn* = ref object of Connection
|
||||
|
||||
method readMessage*(c: SecureConn): Future[seq[byte]] {.async, base.} =
|
||||
doAssert(false, "Not implemented!")
|
||||
|
||||
method writeMessage*(c: SecureConn, data: seq[byte]) {.async, base.} =
|
||||
doAssert(false, "Not implemented!")
|
Loading…
Reference in New Issue