CN114422568A - Method, system, computer terminal and storage medium for quickly establishing communication connection - Google Patents
Method, system, computer terminal and storage medium for quickly establishing communication connection Download PDFInfo
- Publication number
- CN114422568A CN114422568A CN202111613796.4A CN202111613796A CN114422568A CN 114422568 A CN114422568 A CN 114422568A CN 202111613796 A CN202111613796 A CN 202111613796A CN 114422568 A CN114422568 A CN 114422568A
- Authority
- CN
- China
- Prior art keywords
- communication connection
- response information
- computers
- computer
- machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000004044 response Effects 0.000 claims abstract description 51
- 238000004590 computer program Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000005672 electromagnetic field Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a method, a system, a computer terminal and a storage medium for quickly establishing communication connection, wherein the method comprises the following steps: automatically searching all other computers in the set network segment, and sequentially sending requests to the other computers; receiving response information returned by other computers to the request; and if the response information meets the preset condition, establishing communication connection with the computer sending the response information. By implementing the method provided by the embodiment of the invention, the student machine provided with the online examination system can automatically search the teacher machine in the set network segment, and automatically establishes communication connection with the teacher machine after the teacher machine is searched. The problem that the working personnel can establish communication connection with the teacher machine after the teacher machine IP address is set on each student machine is solved, the workload is greatly reduced, and the working efficiency is improved. And the technical requirements on the machine room management personnel are reduced, and the machine room management personnel can manage the machine room without related network knowledge.
Description
Technical Field
The invention relates to the technical field of computer software, in particular to a method, a system, a computer terminal and a storage medium for quickly establishing communication connection.
Background
The machine room construction is a system engineering, the working requirements are really met, people are oriented, the functional requirements are met, the attractiveness and practicability are achieved, a safe operation space is provided for equipment, and a good working environment is created for workers engaged in computer operation. When the machine room is selected, strong noise sources, dust, oil smoke and harmful gas are kept away, and strong electromagnetic field interference is avoided.
At present, when an online examination system is installed in a machine room of an institution such as a school, an examination center, or the like, a teacher machine and all student machines need to be installed separately. After the online examination system is installed on the teacher machine and the student machines, each student machine needs to be in communication connection with the teacher machine to receive a control instruction of the teacher machine, so that the teacher machine can control all the student machines during examination.
In the prior art, a student machine provided with an online examination system needs to establish communication connection with a teacher machine, an IP address of the teacher machine needs to be set on the student machine, and the student machine is in communication connection with the teacher machine by searching the IP address of the teacher machine. However, each student machine in each machine room needs to be set up respectively, and is complex to operate, and the workload is large, and is not favorable for improving the installation efficiency of the machine room.
Disclosure of Invention
In view of the technical defects in the prior art, embodiments of the present invention provide a method, a system, a computer terminal, and a storage medium for quickly establishing a communication connection, so as to solve the technical problems in the background art.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for quickly establishing a communication connection, where the method includes:
automatically searching all other computers in the set network segment, and sequentially sending requests to the other computers;
receiving response information returned by other computers to the request;
and if the response information meets the preset condition, establishing communication connection with the computer sending the response information.
Optionally, the method further includes:
and if the response information meets the preset condition, stopping sending the request to the rest other computers.
Optionally, the response message meets a preset condition, including:
and the identification carried by the response information is a set identification.
Optionally, the setting identifier is a teacher PC type identifier.
In a second aspect, an embodiment of the present invention further provides a system for quickly establishing a communication connection, where the system includes:
the request sending module is used for automatically searching all other computers in the set network segment and sending requests to the other computers in sequence;
the response information receiving module is used for receiving response information returned by other computers to the request;
and the connection establishing module is used for establishing communication connection with the computer sending the response information if the response information meets the preset condition.
Optionally, the request sending module is further configured to:
and if the response information meets the preset condition, stopping sending the request to the rest other computers.
Optionally, the response message meets a preset condition, including:
and the identification carried by the response information is a set identification.
Optionally, the setting identifier is a teacher PC type identifier.
In a third aspect, an embodiment of the present invention further provides a computer terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method for quickly establishing a communication connection according to the first aspect.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method for quickly establishing a communication connection according to the first aspect.
By implementing the method provided by the embodiment of the invention, the student machine provided with the online examination system can automatically search the teacher machine in the set network segment, and automatically establishes communication connection with the teacher machine after the teacher machine is searched. The problem that the working personnel can establish communication connection with the teacher machine after the teacher machine IP address is set on each student machine is solved, the workload is greatly reduced, and the working efficiency is improved. And the technical requirements on the machine room management personnel are reduced, and the machine room management personnel can manage the machine room without related network knowledge.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below.
Fig. 1 is a flowchart of a method for quickly establishing a communication connection according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system for quickly establishing a communication connection according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
In a first aspect, as shown in fig. 1, a flow chart of a method for quickly establishing a communication connection is shown, which can be applied to a student machine, so that the student machine can automatically search for a teacher machine in a computer room and establish a communication connection with the teacher machine. The method may comprise the steps of:
s100: all other computers within the set network segment are automatically searched and requests are sent to the other computers in turn.
In this embodiment, the set network segment may be a machine room network segment. The computer room assigns a unique IP address to each student machine and teacher machine in the computer room. For example, when the IP address of a student computer in the computer room is 192.168.1.25, after the online examination system is installed, the student will automatically search all other computers with IP addresses in the IP network segment of 192.168.1.1-192.168.1.255, and the other computers include both student computers and teacher computers.
After searching other computers according to the IP address, the student computer sends a request to the searched computers, and the student computer only sends the request to one other computer at a time.
S200: and receiving response information returned by other computers to the request.
After receiving the request sent by the student machine, the other computers send response information to the student machine. The response information carries the PC terminal type identification of the computer sending the response information. In this embodiment, the online examination system installed on the student computer has a student computer PC terminal type identifier, and the online examination system installed on the teacher computer has a teacher computer PC terminal type identifier.
S300: and if the response information meets the preset condition, establishing communication connection with the computer sending the response information.
Specifically, if the response information received by the student computer carries the teacher PC type identifier, it indicates that the computer sending the response information is the teacher computer. At this time, the student computer can send a communication connection application to the teacher computer to establish communication connection with the teacher computer.
If the response information received by the student computer carries the PC terminal type identifier of the student computer, the computer sending the response information is also the student computer. The student machine needs to continue searching for the computer of the next IP address and send a request to the searched computer of the next IP address.
Optionally, the method may further include:
s400: and if the response information meets the preset condition, stopping sending the request to the rest other computers.
After the student computer and the teacher computer are in communication connection, the student computer stops searching other computers in the IP network segment, and equipment operation resources are saved.
By implementing the method provided by the embodiment of the invention, the student machine provided with the online examination system can automatically search the teacher machine in the set network segment, and automatically establishes communication connection with the teacher machine after the teacher machine is searched. The problem that the working personnel can establish communication connection with the teacher machine after the teacher machine IP address is set on each student machine is solved, the workload is greatly reduced, and the working efficiency is improved. And the technical requirements on the machine room management personnel are reduced, and the machine room management personnel can manage the machine room without related network knowledge.
In a second aspect, as shown in fig. 2, based on the same inventive concept, the embodiment of the present invention further provides a system for quickly establishing a communication connection, which can be operated on an online test system. Specifically, the system may include:
a request sending module 201, configured to automatically search all other computers in a set network segment, and send requests to the other computers in sequence;
a response message receiving module 202, configured to receive response messages returned by other computers to the request;
a connection establishing module 203, configured to establish a communication connection with the computer that sends the response information if the response information meets a preset condition.
Optionally, the request sending module 201 is further configured to:
and if the response information meets the preset condition, stopping sending the request to the rest other computers.
Optionally, the response message meets a preset condition, including:
and the identification carried by the response information is a set identification.
Optionally, the setting identifier is a teacher PC type identifier.
Based on the same inventive concept, the embodiment of the invention also provides a computer terminal. As shown in fig. 3, the computer terminal may include: one or more processors 101, one or more input devices 102, one or more output devices 103, and memory 104, the processors 101, input devices 102, output devices 103, and memory 104 being interconnected via a bus 105. The memory 104 is used for storing a computer program comprising program instructions, the processor 101 being configured for invoking the program instructions for performing the method of the above-mentioned method embodiment part of quickly establishing a communication connection.
It should be understood that, in the embodiment of the present invention, the Processor 101 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 102 may include a keyboard or the like, and the output device 103 may include a display (LCD or the like), a speaker, or the like.
The memory 104 may include read-only memory and random access memory, and provides instructions and data to the processor 101. A portion of the memory 104 may also include non-volatile random access memory. For example, the memory 104 may also store device type information.
In a specific implementation, the processor 101, the input device 102, and the output device 103 described in this embodiment of the present invention may execute the implementation manner described in the embodiment of the method for quickly establishing a communication connection provided in this embodiment of the present invention, which is not described herein again.
Further, an embodiment of the present invention also provides a readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement: the method for quickly establishing the communication connection.
The computer readable storage medium may be an internal storage unit of the background server described in the foregoing embodiment, for example, a hard disk or a memory of the system. The computer readable storage medium may also be an external storage device of the system, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) Card, Flash memory Card (Flash Card), etc. provided on the system. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the system. The computer-readable storage medium is used for storing the computer program and other programs and data required by the system. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method for quickly establishing a communication connection, the method comprising:
automatically searching all other computers in the set network segment, and sequentially sending requests to the other computers;
receiving response information returned by other computers to the request;
and if the response information meets the preset condition, establishing communication connection with the computer sending the response information.
2. The method for rapidly establishing communication connection between student machine and teacher machine according to claim 1, said method further comprising:
and if the response information meets the preset condition, stopping sending the request to the rest other computers.
3. The method for quickly establishing communication connection between the student machine and the teacher machine according to claim 1, wherein the response message meets a preset condition, and comprises:
and the identification carried by the response information is a set identification.
4. The method for the student machine to rapidly establish the communication connection with the teacher machine according to claim 3, wherein the method comprises the following steps: the setting identification is a teacher PC terminal type identification.
5. A system for quickly establishing a communication connection, the system comprising:
the request sending module is used for automatically searching all other computers in the set network segment and sending requests to the other computers in sequence;
the response information receiving module is used for receiving response information returned by other computers to the request;
and the connection establishing module is used for establishing communication connection with the computer sending the response information if the response information meets the preset condition.
6. The system for quickly establishing a communication connection according to claim 5, wherein the request sending module is further configured to:
and if the response information meets the preset condition, stopping sending the request to the rest other computers.
7. The system for quickly establishing a communication connection according to claim 5, wherein the response message meets a preset condition, comprising:
and the identification carried by the response information is a set identification.
8. The system for quickly establishing a communication connection as claimed in claim 7, wherein the setting flag is a teacher PC type flag.
9. A computer terminal, comprising: comprising a processor, an input device, an output device and a memory, said processor, input device, output device and memory being interconnected, wherein said memory is adapted to store a computer program comprising program instructions, said processor being configured to invoke said program instructions to perform the method of any of claims 1 to 4.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method of quickly establishing a communication connection according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111613796.4A CN114422568A (en) | 2021-12-27 | 2021-12-27 | Method, system, computer terminal and storage medium for quickly establishing communication connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111613796.4A CN114422568A (en) | 2021-12-27 | 2021-12-27 | Method, system, computer terminal and storage medium for quickly establishing communication connection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114422568A true CN114422568A (en) | 2022-04-29 |
Family
ID=81269648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111613796.4A Pending CN114422568A (en) | 2021-12-27 | 2021-12-27 | Method, system, computer terminal and storage medium for quickly establishing communication connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114422568A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4820167A (en) * | 1987-01-14 | 1989-04-11 | Nobles Anthony A | Electronic school teaching system |
CN101188515A (en) * | 2007-12-13 | 2008-05-28 | 华为技术有限公司 | Method and device for automatically discovering network element device |
CN106550482A (en) * | 2016-12-09 | 2017-03-29 | 北京小米移动软件有限公司 | Communication connection method for building up and device, electronic equipment |
CN107770356A (en) * | 2017-10-30 | 2018-03-06 | 努比亚技术有限公司 | A kind of communication establishing method, equipment and computer-readable recording medium |
CN109005571A (en) * | 2017-06-07 | 2018-12-14 | 中移(杭州)信息技术有限公司 | A kind of method, apparatus and system for establishing WiFi connection |
CN111131435A (en) * | 2019-12-19 | 2020-05-08 | 浙江源创建筑智能科技有限公司 | Method for discovering and configuring Ethernet link layer equipment |
CN113765967A (en) * | 2020-09-11 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Device searching method, device and storage medium |
-
2021
- 2021-12-27 CN CN202111613796.4A patent/CN114422568A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4820167A (en) * | 1987-01-14 | 1989-04-11 | Nobles Anthony A | Electronic school teaching system |
CN101188515A (en) * | 2007-12-13 | 2008-05-28 | 华为技术有限公司 | Method and device for automatically discovering network element device |
CN106550482A (en) * | 2016-12-09 | 2017-03-29 | 北京小米移动软件有限公司 | Communication connection method for building up and device, electronic equipment |
CN109005571A (en) * | 2017-06-07 | 2018-12-14 | 中移(杭州)信息技术有限公司 | A kind of method, apparatus and system for establishing WiFi connection |
CN107770356A (en) * | 2017-10-30 | 2018-03-06 | 努比亚技术有限公司 | A kind of communication establishing method, equipment and computer-readable recording medium |
CN111131435A (en) * | 2019-12-19 | 2020-05-08 | 浙江源创建筑智能科技有限公司 | Method for discovering and configuring Ethernet link layer equipment |
CN113765967A (en) * | 2020-09-11 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Device searching method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462760B (en) | Electronic device, automatic cluster access domain name generation method and storage medium | |
CN108287708B (en) | Data processing method and device, server and computer readable storage medium | |
CN112055016B (en) | Message generation method and device, electronic equipment and storage medium | |
CN111475372A (en) | Method, device, equipment and storage medium for monitoring service instance of microservice | |
CN113259428A (en) | Data access request processing method and device, computer equipment and medium | |
CN110191021A (en) | A kind of protocol testing method, device, electronic equipment and storage medium | |
CN113805962B (en) | Application page display method and device and electronic equipment | |
CN113890879A (en) | Load balancing method and device for data access, computer equipment and medium | |
CN113094224B (en) | Server asset management method and device, computer equipment and storage medium | |
CN109683856B (en) | Electronic device, faas platform function creation method and storage medium | |
CN113495825A (en) | Line alarm processing method and device, electronic equipment and readable storage medium | |
CN114422568A (en) | Method, system, computer terminal and storage medium for quickly establishing communication connection | |
CN116450184B (en) | System upgrading method and device, electronic equipment and storage medium | |
CN111966630A (en) | File type detection method, device, equipment and medium | |
CN115242608B (en) | Alarm information generation method, device, equipment and storage medium | |
WO2023066258A1 (en) | Data processing method and apparatus for private data, computer device and medium | |
CN114138397B (en) | Page display method and device, electronic equipment and storage medium | |
JP3008856B2 (en) | How to approve connection at docking station | |
CN114637672A (en) | Automatic data testing method and device, computer equipment and storage medium | |
CN112261072B (en) | Service calling method, device, equipment and storage medium | |
CN114124475A (en) | Network asset port scanning and service identification method and device | |
CN114995914A (en) | Picture data processing method and device, computer equipment and storage medium | |
CN113239396A (en) | Data access system, method, device, computer equipment and medium | |
CN109491831A (en) | System partitioning self-rescue method, device, system and computer readable storage medium | |
CN107644043B (en) | Internet bank quick navigation setting method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |