2018-11-11 22:56:44 +08:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
class IRawConnection(ABC):
|
|
|
|
"""
|
|
|
|
A Raw Connection provides a Reader and a Writer
|
|
|
|
open_connection should return such a connection
|
|
|
|
"""
|
|
|
|
|
2018-11-12 01:17:12 +08:00
|
|
|
# @abstractmethod
|
|
|
|
# async def open_connection(self):
|
|
|
|
# """
|
|
|
|
# opens a connection on ip and port
|
|
|
|
# :return: a raw connection
|
|
|
|
# """
|
|
|
|
# pass
|