diff options
Diffstat (limited to 'src/components/policy/policy_external/doc/doxygen/components/TransportManager/Internal Design/Device Adapters/TCPAdapter.txt')
-rw-r--r-- | src/components/policy/policy_external/doc/doxygen/components/TransportManager/Internal Design/Device Adapters/TCPAdapter.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/doc/doxygen/components/TransportManager/Internal Design/Device Adapters/TCPAdapter.txt b/src/components/policy/policy_external/doc/doxygen/components/TransportManager/Internal Design/Device Adapters/TCPAdapter.txt new file mode 100644 index 0000000000..d81b70dfe8 --- /dev/null +++ b/src/components/policy/policy_external/doc/doxygen/components/TransportManager/Internal Design/Device Adapters/TCPAdapter.txt @@ -0,0 +1,20 @@ +/** @page components_transportmanager_internal_design_transport_adapters_tcp_adapter TCP Adapter + * + * TCP adapter handles communication with remote devices via TCP/IP socket. It is implemented in + * NsSmartDeviceLink::NsTransportManager::CTCPAdapter. + * + * @section components_transportmanager_internal_design_transport_adapters_tcp_adapter_listen Listening for connections + * + * TCP adapter creates listening TCP socket (TCP port is specified in NsSmartDeviceLink::NsTransportManager::CTCPAdapter::cTCPAdapterPort) + * and listens for incoming connections. Devices are identified by their IP address. + * + * @section components_transportmanager_internal_design_transport_adapters_tcp_adapter_accept Accepting connection + * + * When TCP adapter accepts connection it checks if there is a device with IP address matching with IP address of accepted connection. + * If there is no such device, then this device is added and device list is updated. + * + * @section components_transportmanager_internal_design_transport_adapters_tcp_adapter_disconnecting Disconnecting + * + * When socket gets disconnected TCP adapter checks if there is another opened connection for IP address of disconnected application. + * If it was the last application from this IP address then device with this IP address is removed and devices list is updated. + */ |