Dual-OS Communication App IP Detection for Accurate Network Switching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing operating environments that run on both a host OS and a guest OS face challenges in determining network connectivity and mode switching, leading to inefficiencies in program convenience and functionality.
Innovation Solution
A method and program on a computer-readable storage medium that allows a communication app to obtain IP addresses through different APIs based on the OS environment, enabling accurate determination of network connectivity and mode switching for improved communication between devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a program runs on a dual-OS environment (host OS and guest OS), then the program can operate in multiple operating environments, but the program cannot accurately determine network connectivity and cannot perform mode switching
Solution Approach 1:
The patent applies local quality by providing different API selection logic for different OS environments. The system determines whether it is running on host OS or guest OS and selects the appropriate API accordingly - using the first API when running on host OS and the second API when running on guest OS. This ensures that each OS environment receives the appropriate network determination method, resolving the contradiction between multi-environment adaptability and accurate network connectivity determination.
2Device complexity
If the same API is used to obtain IP address in both host OS and guest OS, then the code is simple, but the network determination becomes inaccurate
Solution Approach 1:
The patent applies dynamics by making the API selection dynamic rather than static. The system includes detection logic that identifies the current OS environment (host or guest) and dynamically switches between the first API and second API accordingly. This dynamic adaptation maintains code simplicity while achieving accurate network determination, as the same codebase automatically adjusts its behavior based on the runtime environment.
3Device complexity
If mode switching between host OS and guest OS is not supported, then the system is simple, but the program convenience is reduced
Solution Approach 1:
The patent applies feedback by implementing a detection mechanism that provides feedback about the current OS environment to the program. The system determines whether it is running on host OS or guest OS and uses this feedback information to select the appropriate API and execute corresponding processing logic. This feedback mechanism enables mode switching functionality while maintaining relative system simplicity, as the same codebase responds to environmental feedback to adjust its behavior.
Data Source
AI summary
A second apparatus having a second operating environment that is on a second OS operating as a host OS and that is on a guest OS, the second apparatus obtain a second IP address of the second apparatus through a second API different from a first API on the basis of an operating environment of a predetermined program being the second operating environment; execute second determination processing of determining whether the second apparatus belongs to a first network, using the second IP address obtained through the second API; and execute first processing on the basis of the second apparatus being determined to belong to the first network in the second determination processing, and execute second processing on the basis of the second apparatus being determined not to belong to the first network in the second determination processing.


