py-libp2p/connection/raw_connection_interface.py

13 lines
226 B
Python
Raw Normal View History

2018-11-01 05:39:47 +08:00
from abc import ABC, abstractmethod
import asyncio
class IRawConnection(ABC):
@abstractmethod
def __init__(self, ip, port):
pass
@abstractmethod
async def open_connection(self):
pass