mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Introduces IO abstractions apart from asyncio or those attached to IRawConnection
Also adds `msgio` utilities to mirror the Go implementation
This commit is contained in:
@ -1,7 +1,17 @@
|
||||
from libp2p.exceptions import BaseLibp2pError
|
||||
|
||||
|
||||
class MsgioException(BaseLibp2pError):
|
||||
class IOException(BaseLibp2pError):
|
||||
pass
|
||||
|
||||
|
||||
class IncompleteReadError(IOException):
|
||||
"""
|
||||
Fewer bytes were read than requested.
|
||||
"""
|
||||
|
||||
|
||||
class MsgioException(IOException):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user