30 Commits

Author SHA1 Message Date
Dmitriy Ryajov
bc46a76029 connection should raise on invalid varint 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
15bae7bec5 use result instead of buffer 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
b5c4eaf9b8 don't use result in oneliners 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
5ae37cac98 no more buffer resets on len prefixed reads 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
99869aa8b8 don't reset buffer on exception 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
9862064234 changed copyright year 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
054085620c logging: switch debug for trace in most cases 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
ef89e98479 renaming channel 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
003b72ec27 adding bool 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
fc36de21c1 handle exceptions correctly 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
e31966b6f8 fix: switch, with identify and mplex 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
6086038b01 raise correct LP exception on incomplete data 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
f8a942ed67 make peerinfo an optional type 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
9bc7043f48 export read size const 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
40e75a7635 remove useless methods 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
5177bbb492 fix: return on read error 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
cbf0f4f186 move streams to own dir 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
1cef1b803b don't await twise 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
e2b04fc30d add gcsafe pragma 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
682fecc395 make things public 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
3d7f657ce8 rename readerwriter to stream 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
d23398f498 nimpretty 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
402067ceae await for void features and add closed flag 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
f23106029f feat: added length prefixed read/write methods 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
368176f8d1 remote templated write 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
5d07145a0a feat: added stream abstraction and chronos wrapper 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
c15a9bdd67 feat: adding dial tests 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
c8546583e6 feat: tcp transport listen 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
47106a6a7d wip: adding test 2019-10-11 08:15:24 +09:00
Dmitriy Ryajov
5b7e8d99bd initial commit for native libp2p implementation 2019-10-11 08:15:24 +09:00