Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and system for quickly setting a port number

A port number, fast technology, applied in the field of port number fast setting method and system, to achieve the effect of improving execution efficiency

Active Publication Date: 2019-10-18
TCL COMM (NINGBO) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a method and system for quickly setting the port number, aiming at solving the problem of quickly setting the port number when the application layer needs to establish a connection with the remote server

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for quickly setting a port number
  • A method and system for quickly setting a port number
  • A method and system for quickly setting a port number

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The present invention provides a method and system for quickly setting a port number. In order to make the purpose, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0039] see figure 1 , which is a flow chart of the steps of the method for quickly setting the port number of the present invention, the present invention discloses a method for quickly setting the port number, which includes the steps of:

[0040] S1. Reserve an area in the memory to store the port numbers of each process;

[0041] S2, detecting in real time whether there is a request for assigning a port number of a process;

[0042] S3. When a process requests to allocate a port number, if the process has been allocated a port number, then call the correspo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and system for quickly setting a port number. By detecting that a process calls a port number generation function, it is judged whether there is a port number corresponding to the process in the memory, and if the port number is not occupied, the port number is used; In addition, the port number generation function is called to generate the port number; an area is reserved in the memory for storing the port number of each process. When a process is executed for the first time, the port number is generated by the port number generation function, and the port is judged. If it is occupied, continue to call the port number generation function until an unoccupied port number is generated; use the port number and save the port number of the process; so that when there is an application layer that needs to communicate with the remote When the server establishes a connection, the port number can be quickly set, instead of calling the port number generation function to generate the port number as in the current technology, thereby improving the system execution efficiency.

Description

technical field [0001] The invention relates to the application field of mobile terminals, in particular to a method and system for quickly setting port numbers. Background technique [0002] At present, more and more mobile terminals are using the network. In the computer network reference model, the transport layer realizes end-to-end data transmission. The data is redistributed to each process specified by the port number. In the application layer, there are multiple processes using the network for data transmission. When the transport layer receives a data packet, it delivers the data to the process using the port number according to the port number in the data packet. [0003] In the prior art, for a client (such as a mobile terminal), when a user process establishes a connection with a server, it needs to first generate a port number to mark the process, and then send the port number to the server that needs to establish a connection; here , each time a connection is...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/24H04L29/12
CPCH04L41/0889H04L2101/663
Inventor 俞斌杨维琴孔庆德李红义吴双卿
Owner TCL COMM (NINGBO) CO LTD