diff options
author | Sven Gothel <[email protected]> | 2022-04-10 02:14:47 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-04-10 02:14:47 +0200 |
commit | 3f1baddbb3298109626456dd70e5319df18df417 (patch) | |
tree | 7b1154d0b0e17fa60061e6ddaca7e242bfcdd5b7 /src/direct_bt/SMPHandler.cpp | |
parent | 35ecc48639ae1dd20a3d7e4428559cc199e0ca28 (diff) |
L2CAPComm: Rename L2CAP{Comm->Client} and have L2CAP{Client,Server} derive from new common L2CAPClientServer
This is a preparation to utilize common setBTSecurityLevelImpl(..) for L2CAPServer w/o code duplication.
Diffstat (limited to 'src/direct_bt/SMPHandler.cpp')
-rw-r--r-- | src/direct_bt/SMPHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/direct_bt/SMPHandler.cpp b/src/direct_bt/SMPHandler.cpp index 5919cd6e..92cc60d2 100644 --- a/src/direct_bt/SMPHandler.cpp +++ b/src/direct_bt/SMPHandler.cpp @@ -140,13 +140,13 @@ void SMPHandler::l2capReaderThreadImpl() { } } else if( 0 > len && ETIMEDOUT != errno && !l2capReaderShallStop ) { // expected exits IRQ_PRINT("SMPHandler::reader: l2cap read error -> Stop; l2cap.read %d (%s); %s", - len, L2CAPComm::getRWExitCodeString(len).c_str(), + len, L2CAPClient::getRWExitCodeString(len).c_str(), getStateString().c_str()); l2capReaderShallStop = true; has_ioerror = true; } else { WORDY_PRINT("SMPHandler::reader: l2cap read: l2cap.read %d (%s); %s", - len, L2CAPComm::getRWExitCodeString(len).c_str(), + len, L2CAPClient::getRWExitCodeString(len).c_str(), getStateString().c_str()); } } @@ -296,7 +296,7 @@ void SMPHandler::send(const SMPPDUMsg & msg) { const jau::snsize_t res = l2cap.write(msg.pdu.get_ptr(), msg.pdu.size()); if( 0 > res ) { IRQ_PRINT("SMPHandler::send: l2cap write error -> disconnect: l2cap.write %d (%s); %s; %s to %s", - res, L2CAPComm::getRWExitCodeString(res).c_str(), getStateString().c_str(), + res, L2CAPClient::getRWExitCodeString(res).c_str(), getStateString().c_str(), msg.toString().c_str(), deviceString.c_str()); has_ioerror = true; disconnect(true /* disconnectDevice */, true /* ioErrorCause */); // state -> Disconnected |