Avoid using message-based IO in the plaintext protocol

Can reuse the machinery in `secio` but need to generalize the
"buffering" there
This commit is contained in:
Alex Stokes
2019-09-04 09:28:53 -07:00
parent f86ba7283d
commit b214f88f75
3 changed files with 28 additions and 22 deletions

View File

@ -58,7 +58,8 @@ class SecureSession(BaseSession):
remote_encryption_parameters: AuthenticatedEncryptionParameters,
conn: MsgIOReadWriter,
) -> None:
super().__init__(local_peer, local_private_key, conn, remote_peer)
super().__init__(local_peer, local_private_key, remote_peer)
self.conn = conn
self.local_encryption_parameters = local_encryption_parameters
self.remote_encryption_parameters = remote_encryption_parameters