Create a new MTProtoSender structure and its foundation

This means that the TcpClient and the Connection (currently only
ConnectionTcpFull) will no longer be concerned about handling
errors, but the MTProtoSender will.

The foundation of the library will now be based on asyncio.
This commit is contained in:
Lonami Exo
2018-06-06 20:41:01 +02:00
parent 4bdc28a775
commit e469258ab9
6 changed files with 284 additions and 143 deletions

View File

@@ -6,7 +6,7 @@ from threading import Event
class TLObject:
def __init__(self):
self.rpc_error = None
self.result = None
self.result = None # An asyncio.Future set later
# These should be overrode
self.content_related = False # Only requests/functions/queries are