move SecureConn to secure.nim

This commit is contained in:
Dmitriy Ryajov 2020-03-09 11:27:57 -06:00
parent 19095a0f85
commit fbe54e5c5a
2 changed files with 8 additions and 22 deletions

View File

@ -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,

View File

@ -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!")