implement draft/resume-0.5
This commit is contained in:
parent
064c786db7
commit
15b97ab3da
5 changed files with 54 additions and 10 deletions
|
@ -5,7 +5,7 @@ from enum import IntEnum
|
|||
from ircstates import Server, Emit
|
||||
from irctokens import Line, Hostmask
|
||||
|
||||
from .params import ConnectionParams, SASLParams, STSPolicy
|
||||
from .params import ConnectionParams, SASLParams, STSPolicy, ResumePolicy
|
||||
|
||||
class ITCPReader(object):
|
||||
async def read(self, byte_count: int):
|
||||
|
@ -13,8 +13,14 @@ class ITCPReader(object):
|
|||
class ITCPWriter(object):
|
||||
def write(self, data: bytes):
|
||||
pass
|
||||
|
||||
def get_peer(self) -> Tuple[str, int]:
|
||||
pass
|
||||
|
||||
async def drain(self):
|
||||
pass
|
||||
async def close(self):
|
||||
pass
|
||||
|
||||
class ITCPTransport(object):
|
||||
async def connect(self,
|
||||
|
@ -84,6 +90,9 @@ class IServer(Server):
|
|||
def set_throttle(self, rate: int, time: float):
|
||||
pass
|
||||
|
||||
def server_address(self) -> Tuple[str, int]:
|
||||
pass
|
||||
|
||||
async def connect(self,
|
||||
transport: ITCPTransport,
|
||||
params: ConnectionParams):
|
||||
|
@ -97,6 +106,8 @@ class IServer(Server):
|
|||
pass
|
||||
async def sts_policy(self, sts: STSPolicy):
|
||||
pass
|
||||
async def resume_policy(self, resume: ResumePolicy):
|
||||
pass
|
||||
|
||||
async def next_line(self) -> Optional[Tuple[Line, Optional[Emit]]]:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue