forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[secure-transport] separate transport/socket and session states (open…
…thread#11022) This commit updates how state is tracked in the `SecureTransport` class. It directly tracks whether the transport/socket has been opened or closed in a new member variable `mIsOpen`. The TLS/DTLS session state is tracked separately in `mSessionState`. This separation allows for future changes to support multiple sessions using the same transport/socket. This commit also simplifies the session states, adding "disconnected" and "disconnecting" (replacing "close notify") states.
- Loading branch information
Showing
2 changed files
with
93 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters