summaryrefslogtreecommitdiff
path: root/src/components/include
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2017-12-22 15:30:54 +0200
committerAKalinich-Luxoft <AKalinich@luxoft.com>2018-01-29 09:05:11 +0200
commit68fe0272a2349e0b5d392629c34874a25be99c61 (patch)
treef0d5fcfacacd3ad1b1849ca9ea98590711c76c91 /src/components/include
parentdfabf1fa94c897e6ff853a6217f5b6484f6658fd (diff)
downloadsdl_core-68fe0272a2349e0b5d392629c34874a25be99c61.tar.gz
Updates in connection and handler
Connection and its handler were extended with function IsSessionServiceExists to check is specified service exists in session. This function is needed for ProtocolHandler. Also there was added check for session protocol version when starting a new service.
Diffstat (limited to 'src/components/include')
-rw-r--r--src/components/include/protocol_handler/session_observer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/include/protocol_handler/session_observer.h b/src/components/include/protocol_handler/session_observer.h
index 6cc0927639..6b16ba1c0f 100644
--- a/src/components/include/protocol_handler/session_observer.h
+++ b/src/components/include/protocol_handler/session_observer.h
@@ -327,6 +327,16 @@ class SessionObserver {
const uint32_t& key,
const protocol_handler::ServiceType& service_type) = 0;
+ /**
+ * @brief Check if session contains service with specified service type
+ * @param connection_key unique id of session to check
+ * @param service_type type of service to check
+ * @return true if session contains service with specified service type
+ */
+ virtual bool IsSessionServiceExists(
+ const uint32_t connection_key,
+ const protocol_handler::ServiceType& service_type) = 0;
+
virtual security_manager::SSLContext::HandshakeContext GetHandshakeContext(
uint32_t key) const = 0;
#endif // ENABLE_SECURITY