Move socket event handler inside FlipperConnectionManagerImpl

Summary:
The event handler is a friend type that was mutating the connection manager state.

Instead, just forward the event handling to it.

Then state mutation is consolidated inside the connection manager.

Reviewed By: passy

Differential Revision: D46849769

fbshipit-source-id: 594ab32c8e891564afa94e1be6b93b1dfeffe26f
This commit is contained in:
Lorenzo Blasa
2023-06-20 07:55:25 -07:00
committed by Facebook GitHub Bot
parent 35e2dd2e17
commit 4379317258
2 changed files with 30 additions and 25 deletions

View File

@@ -82,6 +82,7 @@ class FlipperConnectionManagerImpl : public FlipperConnectionManager {
void startSync();
bool connectAndExchangeCertificate();
bool connectSecurely();
void handleSocketEvent(const SocketEvent event);
bool isCertificateExchangeNeeded();
void requestSignedCertificate();
void processSignedCertificateResponse(