summaryrefslogtreecommitdiff
path: root/src/components/transport_manager/src/tcp/platform_specific/linux/platform_specific_network_interface_listener.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix formatting for logs after logger overhaul (#3554)Jacob Keeler2020-10-231-6/+4
| | | | | * Fix formatting for logs after logger overhaul Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>
* [SDL 0046] Implement logger abstraction (#3472)VladSemenyuk2020-09-011-92/+75
| | | | | | | | | | | | | | | | | | | | | | | | * Implement logger abstraction. Integrate it to SDL. Create one logger instance for shared libraries * Rename all logger macros. * Update src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/resource_allocation_manager_impl.cc Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com> * Fix review comments(errors in log messages) * Fix review coments * Fix code style * Add logger variable creation to new commads * Fix review comment * Fixe review comment(class imblemtation moved to .cc file) Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>
* Fix avoid race conditions (#3471)Serhii Niukalov (GitHub)2020-08-211-5/+5
| | | | | | | | | | | | | | * Introduced enums instead multiple bool flags Update threadFunc logic Update Start logic Update Stop logic Update Join logic * Update of the affected code * UTs update Co-authored-by: sniukalov <sniukaov@luxoft.com>
* Fix: handle network interface removal (#2759)Sho Amano2020-06-041-37/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: IP address isn't notified when network interface is removed When RTM_DELLINK is notified, corresponding network interface has been already destroyed so if_indextoname() won't return a valid name. To handle such case, status_table_ is updated to use network interface index as key. * fix: generate DeviceDisconnected event when network interface is removed * fix a few comments * Reflect review comments - Add const where applicable - Add more descriptions * Reflect code review Replace FindInterfaceStatus() with std::find_if() call. * Reflect code review Remove unnecessary include. * fix style issue
* Fix SDL behavior during LOW_VOLTAGE (#3029)Andrii Kalinich (GitHub)2019-09-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There were found a several problems during SDL testing with ATF scripts: 1. SDL does not ignore messages from mobile/HMI during low voltage and processes them on wake up 2. Sometimes SDL ignores messages on wake up due to timings 3. SDL low voltage process is not stopping properly by exit() function 4. SDL does not send OnAppUnregistered after wake up to HMI To solve mentioned problems, the following changes were done: 1. exit() was replaced with _Exit() which allow to force close the process 2. Suspend transport events processing threads during low voltage, such as unexpected disconnect etc. These events should be processed when SDL wakes up completely. 3. Suspend all client listening threads and shut down sockets for a TCP connections to prevent any possibility to receive message during low voltage. These threads will be resumed on wake up. 4. Set low_voltage flag to false in the end of wakeup() function to prevent any timing issues. 5. Don't add pending requests/notifications into request controller if low voltage event has happened, as it may happen at any moment 6. Don't handle received pending messages from mobile/HMI in RPC handler if low voltage event has happened as it may happen at any moment 7. Updated logic of few test case scenarios. Updated unit tests according to code changes
* Run updated style scriptjacobkeeler2019-04-291-6/+6
|
* Merge pull request #2414 from XevoInc/fix/xevo_copyrightsJackLivio2018-08-291-32/+0
|\ | | | | Remove Xevo copyrights from multiple transport implementation
| * Remove Xevo copyrights from multiple transport implementationSho Amano2018-07-241-32/+0
| |
* | Fix build failures when ENABLE_LOG=OFFjacobkeeler2018-08-211-0/+1
|/
* Add more comments in platform_specific_network_interface_listener.ccSho Amano2018-06-291-0/+25
| | | | Reflecting review comment.
* Use Pimple idiom for Network Interface ListenerAlexander2018-06-111-0/+679
Create `qnx` and `linux` folder with platform specific code. Moved implementation from network_interface_listener_impl to platform_specific/linux/platform_specific_network_interface_listener_impl QNX contains empty implementation Renamed source files : used cc file extension for source files