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 options
|
||||||
import chronos
|
import chronos
|
||||||
import chronicles
|
import chronicles
|
||||||
import secureconn,
|
import ../protocol,
|
||||||
../protocol,
|
|
||||||
../../stream/bufferstream,
|
../../stream/bufferstream,
|
||||||
../../crypto/crypto,
|
../../crypto/crypto,
|
||||||
../../connection,
|
../../connection,
|
||||||
|
@ -19,6 +18,13 @@ import secureconn,
|
||||||
|
|
||||||
type
|
type
|
||||||
Secure* = ref object of LPProtocol # base type for secure managers
|
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,
|
method handshake(s: Secure,
|
||||||
conn: Connection,
|
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