fix: 修复代理问题

This commit is contained in:
丹尼尔
2026-03-15 17:16:05 +08:00
parent 8b62c445fc
commit 15c9e1772a
100 changed files with 6157 additions and 69 deletions

View File

@@ -0,0 +1,40 @@
from typing import Optional
class SyncResolver:
def resolve(self, host, port=0, family=0):
raise NotImplementedError()
class AsyncResolver:
async def resolve(self, host, port=0, family=0):
raise NotImplementedError()
class SyncSocketStream:
def write_all(self, data: bytes):
raise NotImplementedError()
def read(self, max_bytes: Optional[int] = None):
raise NotImplementedError()
def read_exact(self, n: int):
raise NotImplementedError()
def close(self):
raise NotImplementedError()
class AsyncSocketStream:
async def write_all(self, data: bytes):
raise NotImplementedError()
async def read(self, max_bytes: Optional[int] = None):
raise NotImplementedError()
async def read_exact(self, n: int):
raise NotImplementedError()
async def close(self):
raise NotImplementedError()