summaryrefslogtreecommitdiff
path: root/src/components/connection_handler/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2085 from ↵JackLivio2018-03-261-4/+3
|\ | | | | | | | | LuxoftAKutsan/fix/activation_app_external_proprietary_fix Fix/activation app external proprietary fix
| * Avoid integer overflowAlex Kutsan2018-03-231-4/+3
| | | | | | | | | | Replaced all usaged of device handle with apropriate typedef Assignment device handle to uint32_t leads to integer overflow
* | Fix build issues and test failures when building with ENABLE_SECURITY=OFFfix/security_off_buildjacobkeeler2018-03-212-9/+9
|/
* Fix style issues in projectfix/style_issues_developjacobkeeler2018-02-011-4/+5
|
* Fix deprecated warnings in application_impl and connection_handler_implfix/deprecated_warningsjacobkeeler2018-02-011-6/+8
|
* Minor refactoring in protocol and security managerAKalinich-Luxoft2018-01-292-10/+10
| | | | | | Added consts for some methods. Fixed typos in description. Renamed some non informative variables names.
* Updates in connection and handlerAKalinich-Luxoft2018-01-292-0/+54
| | | | | | | | 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.
* Refactoring in connection/protocol handlersAKalinich-Luxoft2018-01-291-60/+36
| | | | | | | | NotifySessionStartedResult function were updated to use StartingSessionContext class for accessing to needed data instead of tones of separate parameters. Also in protocol handler some raw pointer data were replaced with smart objects.
* Replace deprecation comments with DEPRECATED macroAndriy Byzhynar2018-01-181-6/+5
|
* Replace pragma with header guardsAndriy Byzhynar2018-01-181-40/+1
| | | | | | | Replaced #pragma once usage with header guards Added wrappers for deprecated functions Fixed related unit tests Fixed coding style in places related to code chages
* Fixes coding styleAndrey Oleynik (GitHub)2018-01-181-15/+18
|
* Changes iAP2 Bluetooth to USB switching flowAndrey Oleynik (GitHub)2018-01-181-3/+25
| | | | | | | | | | | These changes update switching flow so now instead of automatic switching start in case of same UUID is detected SDL will wait for external signal from the system to start this flow. Also due to UUID is reliable only while device remains connected (at least on certain systems) SDL now uses Bluetooth MAC and USB serial to manage devices and UUID is used only for detection of devices able to switch their transports. Currently only iAP2 Bluetooth to USB support is implemented.
* Renames interfaces for consistencyAndrey Oleynik (GitHub)2018-01-181-2/+2
|
* Reverts deprecated interfacesAndrey Oleynik (GitHub)2018-01-181-1/+50
|
* Adds descriptions, removes unused codeAndrey Oleynik (GitHub)2018-01-181-13/+0
|
* Adds main logic and related bugfixes for transport switchingAndrey Oleynik (GitHub)2018-01-181-10/+48
|
* Address review commentsfeature/deprecated_method_macrojacobkeeler2018-01-171-2/+2
| | | | | | Remove C style casts Add comments for pragma directives Remove redundant DEPRECATED macro usages
* Add DEPRECATED macro, and fix resulting deprecated warningsjacobkeeler2017-12-041-4/+2
|
* Merge pull request #1791 from BrandonHe/hotfix/connection_list_lock_releaseJackLivio2017-09-281-0/+2
|\ | | | | hotfix connection list lock is not released
| * hotfix connection list lock is not releasedBrandonHe2017-04-281-0/+2
| |
* | Not related to RC changesAlexander Kutsan2017-08-161-1/+3
| | | | | | | | Remove segfault in transport manager tests
* | fix: wrong service started result may be notifiedSho Amano2017-08-111-7/+22
| | | | | | | | | | | | | | | | | | | | This commit includes following changes: - Add session_key arg in ConnectionHandler::NotifyServiceStartedResult() - Use the session key to remember ServiceStartedContext until NotifyServiceStartedResult() is called Reflecting review comments.
* | fix: session ID and hash ID may be notified to wrong proxySho Amano2017-08-111-10/+28
| | | | | | | | | | | | | | | | | | | | This commit includes following changes: - Add connection_id and session_id args in ProtocolHandler::NotifySessionStartedResult() - Use pair of connection_id and session_id to remember the request packet until NotifySessionStartedResult() is called Reflecting review comments.
* | Deprecate OnSessionStartedCallback()Sho Amano2017-08-111-0/+70
| | | | | | | | Reflecting review comments.
* | Add implementation for video streaming parametersSho Amano2017-08-111-29/+89
| |
* | Implement reading and writing constructed payloads for StartService and ↵jacobkeeler2017-07-251-3/+15
| | | | | | | | EndService
* | Add protocol version 5 with service-specific MTUjacobkeeler2017-07-251-2/+1
| |
* | Fixed double calling of UpdateDeviceListKozoriz2016-12-071-0/+1
|/ | | | | | | | Removed triggered event from TransportManager UpdateDeviceList will be called from AddDevice, RemoveDevice in ConnectionHandlerImpl Fixed defect : APPLINK-30437
* Fix coding styleLevchenko2016-08-051-3/+4
| | | | | | | | | Has been done: - Fixed coding style; - Fixed header guard naming; - Fixed copyright comments. Related to: APPLINK-24892
* AppLaunch TM and CH implementationAGaliuzov2016-08-031-0/+13
| | | | | | Applaunch functionality in TransportMaanger and ConnectionHAndler implementation Related issue : APPLINK-24892
* Fix application add to app_level tableVladislav Antonov2016-07-291-1/+2
| | | | | | | | | | Required functionality to add the registered application in the app_level table with application name in column application_id. Covered changes with unit tests. Related issue: APPLINK-17802
* Format all code in projectKozoriz2016-04-264-239/+289
| | | | | | | | | | Formated all code in appMain, components, plugins to correct coding-style Used clang-format-3.6 Used 2 commands : find src/appMain/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file find src/components/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file find src/plugins/ -name "*.h" -o -name "*.cc" -o -name "*.hpp" -o -name "*.cpp" | xargs clang-format-3.6 -i -style=file
* Merge pull request #440 from ↵AGaliuzov2016-03-281-6/+6
|\ | | | | | | | | Kozoriz/hotfix/Fix_impl_and_tests_of_connection_after_megring_singletones Fix impl and tests of connection after megring singletones
| * Changes after reviewKozoriz2016-03-281-4/+4
| |
| * Connection handler tests fixKozoriz2016-03-281-3/+3
| | | | | | | | | | | | | | | | Corrected impl of Connection class * added initialization of heart_beat_timeout in Constructor Corrected tests of Connection and ConnectionHandler Added additional test case for connection.
* | Merge remote-tracking branch 'upstream/master' into developagaliuzov2016-03-241-27/+38
|\ \ | |/ |/|
| * Fixes issue with SDL data resetting during MASTER_RESETAndrey Oleynik2016-03-111-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two deadlocks during unregistering of all apps because of MASTER_RESET: - ApplicationManagerImpl::UnregisterAllApplications vs ConnectionHandler::CloseSessionServices - ApplicationManagerImpl::UnregisterApplication vs ApplicationManagerImpl::RemoveAppFromTTSGlobalPropertiesList That was causing reset flow blocking and data had not been cleaned up completely. Closes-bug: APPLINK-22117 Conflicts: src/components/application_manager/include/application_manager/application_manager_impl.h src/components/application_manager/src/application_manager_impl.cc src/components/connection_handler/include/connection_handler/connection_handler_impl.h src/components/connection_handler/src/connection_handler_impl.cc
* | Remove ConnectionHandler singletonKozoriz2016-03-042-99/+71
| | | | | | | | | | | | Correctives in src and tests for ConnectionHandler class Related to : APPLINK-21440
* | Fix dead locks if user register 30 and more applicationsdtrunov2016-02-032-27/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During processing this defect I found 3 dead locks in components: conection_handler, hearbeat_monitor. First deadlock: First thread: Calls KeepConnectionAlive() from connection_handler in this method thread locked connection_list_lock_, after that calls method KeepAlive() from heartbeat_monitor and thread tries to lock sessions_list_lock_ wich was locked by second thread Second thread: Blocks sessions_list_lock_ in method Process() from heartbeat_monitor after that sends hearbeat to mobile and calls method SendHeartBeat() from protocol_handler. In this method calls ProtocolVersionUsed() where thread tries to lock connection_list_lock_ wich was locked by first thread -> DEAD LOCK I fixed this problem using RWLock(). Second and third dead locks were associated with time of action of sessions_list_lock in method Process() from heartbeat_monitor I decreased time of action this lock in order to fix this problem. Closes-bug:[APPLINK-19632](https://adc.luxoft.com/jira/browse/APPLINK-19632)
* | Add Mock::AsyncVerifyAndClearExpectations in failed tests.Herasym Oleh2016-01-141-2/+2
| | | | | | | | | | | | | | Change in CloseSession const iterator to const reverse iterator. Related: APPLINK-20523
* | Merge pull request #306 from LuxoftSDL/hotfix/SDL_can_not_be_stopped_with_Ctrl+cAGaliuzov2015-12-311-8/+2
|\ \ | | | | | | Make function handler checking to prevent main thread crash
| * | Fix excess spacesAnton Hrytsevich2015-12-281-1/+1
| | |
| * | Send End Session in most casesAnton Hrytsevich2015-12-251-26/+24
| | | | | | | | | | | | | | | Move SendEndSession before return after find id. Find id can finish unsuccessfully and than SendEndSession can't execute.
| * | Delete copy past code, commited by mistakeAnton Hrytsevich2015-12-251-6/+0
| | |
| * | Fir indents to L815, L816 after reviewAnton Hrytsevich2015-12-251-2/+2
| | |
| * | Make if statment more wide after reviewAnton Hrytsevich2015-12-251-16/+18
| | | | | | | | | | | | Make more wide if statment. It include map search.
| * | Make function handler checking for prevent main thread crashAnton Hrytsevich2015-12-231-1/+1
| | | | | | | | | | | | | | | | | | Handler to observer can be set to null in any moment. Make check before call handler. Bug-fixes: [APPLINK-20011](https://adc.luxoft.com/jira/browse/APPLINK-20011)
* | | Merge pull request #300 from LuxoftSDL/hotfix/Logging_by_ComponentArtem Nosach2015-12-252-2/+5
|\ \ \ | | | | | | | | Update logging for component
| * | | Fixed possible problem with logger namespace and logger nameElisey Zamakhov2015-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | Updated log4cxx.properties files Issues: APPLINK-19597, APPLINK-19603
| * | | Fixed wrong logger name for ProtocolHandlerElisey Zamakhov2015-12-182-2/+4
| |/ / | | | | | | | | | Issues: APPLINK-19597, APPLINK-19603