mirror of https://github.com/vacp2p/nim-libp2p.git
remote templated write
This commit is contained in:
parent
5d07145a0a
commit
368176f8d1
|
@ -43,7 +43,7 @@ method write*(s: Connection, pbytes: pointer, nbytes: int) {.async.} =
|
||||||
method write*(s: Connection, msg: string, msglen = -1) {.async.} =
|
method write*(s: Connection, msg: string, msglen = -1) {.async.} =
|
||||||
result = s.stream.write(msg, msglen)
|
result = s.stream.write(msg, msglen)
|
||||||
|
|
||||||
method write*[T](s: Connection, msg: seq[T], msglen = -1) {.async.} =
|
method write*(s: Connection, msg: seq[byte], msglen = -1) {.async.} =
|
||||||
result = s.stream.write(msg, msglen)
|
result = s.stream.write(msg, msglen)
|
||||||
|
|
||||||
method close*(s: Connection) {.async.} =
|
method close*(s: Connection) {.async.} =
|
||||||
|
|
Loading…
Reference in New Issue