mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Reorganize folders (stream and connection)
This commit is contained in:
15
network/connection/raw_connection_interface.py
Normal file
15
network/connection/raw_connection_interface.py
Normal file
@ -0,0 +1,15 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class IRawConnection(ABC):
|
||||
"""
|
||||
A Raw Connection provides a Reader and a Writer
|
||||
open_connection should return such a connection
|
||||
"""
|
||||
|
||||
# @abstractmethod
|
||||
# async def open_connection(self):
|
||||
# """
|
||||
# opens a connection on ip and port
|
||||
# :return: a raw connection
|
||||
# """
|
||||
# pass
|
||||
Reference in New Issue
Block a user