Support custom event loops

This commit is contained in:
Lonami Exo
2018-06-14 19:35:12 +02:00
parent 908dfa148b
commit 0f14f3b16a
11 changed files with 48 additions and 40 deletions

View File

@@ -13,9 +13,6 @@ class ConnectionTcpIntermediate(ConnectionTcpFull):
await self.conn.write(b'\xee\xee\xee\xee')
return result
def clone(self):
return ConnectionTcpIntermediate(self._proxy, self._timeout)
async def recv(self):
return await self.read(struct.unpack('<i', await self.read(4))[0])