Dmitriy Ryajov
f4fe3ec561
fixup tests
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
03bd04544e
moved several utils
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
6bdae367a2
use data.len when size < 0 or > buff.len
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
72545faabd
fix reading and fixup tests
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
7a49b6d962
moved util funcs to utils module
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
c61b9dff61
remove closed flag
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
21e99c638d
rework with pipe
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
22f0db1cde
initial commit
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
8741e1ce36
moving util procs to utils module
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
1269cc6d06
remove unneeded pragma
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
13f299fb0c
wip: multistream select rework
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
6ff6833d26
add helper toThrough
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
95bed79095
proper dispatch
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
1eee46e493
remove prints
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
b83cd9703d
rework select
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
59be7d55bc
fix tests
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
b990a1f49f
more small fixes on transports
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
2c861d9c27
adding pushable stream
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
61964458ef
cosmetic
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
322fa51262
move toFuture out
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
bcacd2ef98
fix and add tests
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
6a7b0675d7
try without methods
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
8e7c69893f
adding srcDir
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
4ae04770cb
adding config.nims
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
ca6862b8ba
make lenprefixed object instead of ref
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
a06731d221
fix compilation
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
92fc19fd64
removing unnecesary tests
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
10e0e317d2
move eof and closed flags
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
351731183c
fix transport tests
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
9850b948d7
dont use methods unless needed
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
a2cdc10cb0
expose len
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
d521bb91e8
use readOnce
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
d17997540f
wip
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
f58744fabe
wip
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
b5e60a084a
use methods
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
7284ee1689
remove shallowCopy
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
75c0100542
rename stream to streams
2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
becdef923f
initial connection implementation
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
c7bfaa00cf
small fixes to ringbuffer
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
60749d8dfa
encoder and decoder throughs should be factories
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
8b6efee356
source and sink should be factories
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
bf6eeca6ff
adding Stream
base type
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
b51b6726e3
more tests
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
06f10718cf
adding len prefixed tests
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
b92f8368c1
implement streaming length prefixed parser
2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
a644a19a2d
wip: rework with async iterators
2020-04-17 17:18:12 -06:00
Jacek Sieka
e8b33c64fa
secp: use upstream secp convenience api ( #141 )
...
* secp: use upstream secp convenience api
2020-04-17 12:51:13 +02:00
Oskar Thoren
4d1fc9dacd
Require Nim v1.2.0 or higher
...
As of `2b823bde68cfb5efbe145945e8c17593f44eda5a` this is required due to https://github.com/status-im/nim-secp256k1/issues/20
2020-04-14 13:10:12 -06:00
Ștefan Talpalaru
eaa73ae6e8
add stream metrics ( #136 )
...
* add stream metrics
- just BufferStream and Connection are tracked, for now
- flag checking is enforced more strictly in close(), since it became
clear that instances are closed multiple times
* add "metrics" dependency
and sort the list
2020-04-14 15:27:07 +02:00
Ștefan Talpalaru
7723403b1f
debug prints ( #132 )
...
* debug prints
* CI: enable stack traces
* Azure: better NimBinaries cache key
* CI changes
- Azure: remove Linux target
- Travis: add ARM64 target
* uglify the code in order to save 12 bytes per LPStream object
2020-04-14 15:21:16 +02:00