Network port management method and device, terminal equipment and storage medium
A technology of network ports and management methods, applied in the direction of software testing/debugging, which can solve the problems of cumbersome operation and long time-consuming
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] A network port management method provided by an embodiment of the present invention is introduced in detail.
[0061] refer to figure 1 , shows a flowchart of steps of a network port management method in an embodiment of the present invention.
[0062] Step 110 , according to a preset automation script, detect whether the target port is occupied; wherein, the automation script is based on a socket service and is obtained by setting the target port.
[0063] As mentioned above, at present, the main method for detecting whether a certain port is occupied and releasing the occupied port is to use a manual method. For example, the default port number of appium's driver is 4723. The existing port management scheme generally does not detect whether the port is occupied before calling a certain port, but when calling the port, if the port is already Indicates that the port is occupied, then the relevant user will check the port manually. Taking the port corresponding to the...
Embodiment 2
[0095] A network port management method provided by an embodiment of the present invention is introduced in detail.
[0096] refer to Figure 4 , shows a flow chart of steps of another network port management method in an embodiment of the present invention.
[0097] Step 210, acquiring a network protocol between the terminal device corresponding to the target port and the target port; wherein the network protocol includes at least one of a network layer protocol, a transport layer protocol, and a socket type.
[0098] In practical applications, depending on the network protocol between the terminal device corresponding to the target port and the target port, the sockets that can be used for communication between the corresponding terminal device and the target port will also be different. Therefore, in the embodiment of the present invention, in order to determine the socket corresponding to the target port, the network protocol between the terminal device corresponding to t...
Embodiment 3
[0121] A network port management device provided by an embodiment of the present invention is introduced in detail.
[0122] refer to Figure 5 , shows a schematic structural diagram of a network port management device in an embodiment of the present invention.
[0123] The network port management device in the embodiment of the present invention includes: a port detection module 310 and a port release module 320 .
[0124] The functions of each module and the interaction between each module are introduced in detail below.
[0125] The port detection module 310 is used to detect whether the target port is occupied according to a preset automation script; wherein, the automation script is based on a socket service and is obtained by setting the target port;
[0126] The port release module 320 is configured to close the process currently occupying the target port if the target port is occupied, so as to release the target port.
[0127] Optionally, in the embodiment of the pre...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com