mhchia
a7bc9fc358
Asynchronously handling the accepted stream.
2019-09-19 13:59:51 +08:00
mhchia
6cb033fd1f
Refactor multiselect
out of Swarm
to BasicHost
2019-09-19 13:59:50 +08:00
mhchia
0bd213bbb7
Refactor mplex and start to add close detection
2019-09-19 13:56:05 +08:00
Alex Stokes
8e8318aa5c
Introduces IO abstractions apart from asyncio
or those attached to IRawConnection
...
Also adds `msgio` utilities to mirror the Go implementation
2019-09-03 21:59:50 -07:00
Alex Stokes
5b32bfdd3f
Add call to wait_closed
method of asyncio.StreamWriter
2019-08-24 22:06:24 +02:00
Alex Stokes
9c5fb4fa5a
Encapsulate concept of a "stream id" to a "muxed" connection
2019-08-24 21:50:07 +02:00
Alex Stokes
e29c1507bf
remove unused fields
2019-08-24 21:50:06 +02:00
mhchia
ef476e555b
Use RawConnection.read
...
Instead of accessing its reader and writer directly.
TODO: considering add `ReaderWriterCloser` interface and let connection
and stream inherit from it.
2019-08-22 22:53:48 +08:00
mhchia
0b466ddc86
Add lock to RawConnection
...
To avoid `self.writer.drain()` is called in parallel.
Reference: https://bugs.python.org/issue29930
2019-08-22 22:53:47 +08:00
Alex Stokes
20dd7d777a
More efficiently remove trailing newline from message
2019-08-15 16:33:34 -07:00
Chih Cheng Liang
e763f57930
run isort
2019-08-05 11:47:23 +08:00
Chih Cheng Liang
239a5c88fb
add typing to mplex
2019-08-05 10:45:46 +08:00
Alex Stokes
7b7c8ad30d
run black over dangling files
2019-08-02 11:47:08 -07:00
mhchia
2e94fcf56c
Remove pylint:disable
2019-08-02 23:26:06 +08:00
Chih Cheng Liang
a86f010c95
add typing to security
2019-08-01 19:12:11 +08:00
Alex Stokes
0ae9840928
Run black
over repo
2019-07-31 15:00:12 -07:00
NIC619
edd164c878
Add type hints to network folder
2019-07-30 16:25:17 +08:00
Stuckinaboot
4333c2d061
Fix linting issues'
2019-05-01 13:54:19 -04:00
Stuckinaboot
f59f27d4d0
Integrate security selectin into libp2p system
2019-04-30 03:09:05 -04:00
Alexander Koshkin
ce6ddb27a9
Migrate to new project structure.
2019-01-09 21:38:56 +03:00