make things public

This commit is contained in:
Dmitriy Ryajov 2019-08-29 23:15:43 -06:00
parent 054bd365af
commit 682fecc395
1 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,7 @@ const DefaultReadSize: uint = 64*1024
type
Connection* = ref object of LPStream
peerInfo*: PeerInfo
stream: LPStream
stream*: LPStream
proc newConnection*(stream: LPStream): Connection =
## create a new Connection for the specified async reader/writer
@ -88,12 +88,11 @@ proc writeLp*(s: Connection, msg: string | seq[byte]) {.async.} =
buf.finish()
result = s.write(buf.buffer)
method getPeerInfo* (c: Connection): Future[PeerInfo] {.base, async.} =
method getPeerInfo*(c: Connection): Future[PeerInfo] {.base, async.} =
## get up to date peer info
## TODO: implement PeerInfo refresh over identify
discard
method getObservedAddrs(c: Connection): Future[seq[MultiAddress]] {.base,
async.} =
method getObservedAddrs*(c: Connection): Future[MultiAddress] {.base, async.} =
## get resolved multiaddresses for the connection
discard