|
Mercury2 Hardware Manager
1.0dev
The hardware manager component of the Mercury2 ground station suite.
|
Contains methods commonly used by the HWM network protocols. More...
Functions | |
| def | load_session_after_tls_handshake |
| Loads the requested session once the provided Protocol's TLS handshake is complete. More... | |
Contains methods commonly used by the HWM network protocols.
| def hwm.network.protocols.utilities.load_session_after_tls_handshake | ( | protocol) |
Loads the requested session once the provided Protocol's TLS handshake is complete.
This function periodically checks if the specified protocol's transport has completed its TLS handshake using the reactor.callLater() utility. This is required because connectionMade() method is typically called before the TLS handshake has been completed. Once the handshake is complete, this function will load the requested session and return it via a deferred.
| protocol | The Protocol that wants to wait for its TLS handshake to complete. |