Content of the invention
Technical problems to be solved in this application are to provide one kind, in order to solve the On-line Examining system based on B/S framework
The problem of test time can not be extended to examinee.
This application provides a kind of information processing method being applied to On-line Examining system, described On-line Examining system includes
WEB server, the database server being connected with described WEB server respectively and browser client, described browser visitor
Family end includes several Test taker Client ends, and described browser client also includes at least one Administrator Client, methods described
Including:
After user logs in On-line Examining system by browser client, browser client sets up the first socket end
Mouthful, and the connection request setting up socket connection is sent to described WEB server, described connection request includes browser clients
The identification code at end and user name;
After WEB server receives described connection request, preserve identification code and the user name of described browser client,
And call sockets interface module to randomly generate unappropriated second socket port, by described second socket port with send out
Socket interface channel is set up in the first socket port sending the browser client of described connection request;
When needing Test taker Client end execution delay operation, Administrator Client obtains the Test taker Client end needing time delay
Identification code, the user name of the described user at Test taker Client end needing time delay of login, and pass through Administrator Client and WEB service
Socket interface channel between device sends to described WEB server and carries acquired identification code, user name and time delay
The time delay command of duration;
After described WEB server receives time delay command, by the socket between WEB server and Test taker Client end even
Connect road and described time delay command is sent to Test taker Client end;
After Test taker Client termination receives time delay command, judge whether described time delay command is pin according to user name and identification code
To oneself, if it is, according in described time delay command delay duration execution delay operation, otherwise do not execute time delay behaviour
Make.
Said method is it is preferred that also include:
When handing in an examination paper operation when needing Test taker Client end to execute, Administrator Client obtains the Test taker Client end needing to hand in an examination paper
The user name of the user at Test taker Client end that identification code, the described needs of login are handed in an examination paper, and carry to the transmission of described WEB server
The identification code of described acquisition, user name and the instruction of handing in an examination paper of type of handing in an examination paper;
After described WEB server receives instruction of handing in an examination paper, described instruction of handing in an examination paper is sent to and described WEB server between
There is the Test taker Client end of socket interface channel;
After Test taker Client termination receives instruction of handing in an examination paper, whether instruction of handing in an examination paper according to user name and identification code judge is pin
To oneself, if it is, execution is handed in an examination paper operation, otherwise do not execute operation of handing in an examination paper.
Said method is it is preferred that also include:
When described type of handing in an examination paper is improper handing in an examination paper, the user at the Test taker Client end of operation that execution is handed in an examination paper is carried out accordingly
Mark.
Said method is it is preferred that described identification code is IP address or MAC Address.
A kind of On-line Examining system, including:WEB server, the database service being connected with described WEB server respectively
Device and browser client, described browser client includes several Test taker Client ends, and described browser client also includes
At least one Administrator Client;
Described browser client is used for, after User logs in On-line Examining system, setting up the first socket port, and to
Described WEB server sends the connection request setting up socket connection, and described connection request includes the knowledge of browser client
Other code and user name;
Described WEB server is used for, after the connection request receiving browser client transmission, preserving described browser
The identification code of client and user name, and call sockets interface module to randomly generate unappropriated second socket port,
Set is set up by the first socket port of described second socket port and the browser client sending described connection request
Connect word interface channel;
When needing Test taker Client end execution delay operation, described Administrator Client is used for obtaining the examinee needing time delay
The identification code of client, the user name of the described user at Test taker Client end needing time delay of login, and send out to described WEB server
Send the time delay command of identification code, user name and the delay duration carrying described acquisition;
Described WEB server is additionally operable to, after receiving time delay command, described time delay command be connected logical by socket
Road is sent to each Test taker Client end;
Described Test taker Client end is additionally operable to, after receiving time delay command, judge described time delay according to user name and identification code
Whether instruction is for oneself, if it is, executing delay operation according to the delay duration in described time delay command, otherwise not
Execution delay operation.
Said system it is preferred that when need Test taker Client end execution hand in an examination paper operation when, described Administrator Client also uses
In the user obtain the needs identification code at Test taker Client end handed in an examination paper, logging in the user at Test taker Client end that described needs are handed in an examination paper
Name, and the instruction of handing in an examination paper of identification code, user name and the type of handing in an examination paper carrying described acquisition is sent to described WEB server;
Described WEB server is additionally operable to, and after receiving instruction of handing in an examination paper, described instruction of handing in an examination paper is connected logical by socket
Road is sent to each Test taker Client end;
Described Test taker Client end is additionally operable to, and after receiving instruction of handing in an examination paper, judges described friendship according to user name and identification code
Whether volume instruction is for oneself, if it is, executing, according to the described type of handing in an examination paper handed in an examination paper in instruction, operation of handing in an examination paper, otherwise
Do not execute operation of handing in an examination paper.
Said system is it is preferred that described Test taker Client end is additionally operable to, when described type of handing in an examination paper is improper handing in an examination paper, right
The user logging in Test taker Client end carries out respective markers.
Said system is it is preferred that described identification code is IP address or MAC Address.
A kind of information processing method being applied to On-line Examining system being provided from such scheme, the application, browses
Device client includes Administrator Client and Test taker Client end, when user logs in On-line Examining system by browser client
Afterwards, send connection request to WEB server, after WEB server receives connection request, set up and browser server between
Socket interface channel, and socket interface channel is real-time duplex communication port, grasps when needing the execution time delay of Test taker Client end
When making, Administrator Client sends the identification code at the Test taker Client end carrying time delay in need, logs in institute to described WEB server
State and need the user name of the user at Test taker Client end of time delay and the time delay command of delay duration, WEB server passes through socket
Word interface channel described time delay command is transmitted to Test taker Client end, after Test taker Client termination receives time delay command, according to
Name in an account book and identification code judge whether described time delay command is for oneself, if it is, according to prolonging in described time delay command
Shi Shichang executes delay operation it is achieved that extend the function of test time to examinee, thus decreasing the impact to examination, reduces
Human and material resources consumption.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation describes it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the application, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of the application protection.
The information processing method that the embodiment of the present application provides is applied to On-line Examining system, refer to Fig. 1, and Fig. 1 is this Shen
A kind of structural representation of the On-line Examining system that please provide, including:
WEB server 101, the database server 102 being connected with described WEB server 101 respectively and browser visitor
Family end 103, wherein, described browser client includes at least one Administrator Client 1031 and several Test taker Client ends
1032, keeper(Examine business personnel)On-line Examining system is logged in by Administrator Client, examinee is stepped on by Test taker Client end
Record On-line Examining system.I.e. in the embodiment of the present application, browser client is divided into two classes, and a class is the Test taker Client of examinee
End, a class is to examine the Administrator Client of business personnel.
In the embodiment of the present application, On-line Examining system described in Fig. 1, can also be real in addition to can completing online testing function
The function of existing information processing, specifically:
Browser client 103(Including Administrator Client 1031 or Test taker Client end 1032)For in user(Including
Keeper or examinee)After logging in On-line Examining system, set up the first socket(Socket)Port, specifically, when examinee passes through
After Test taker Client end logs in On-line Examining system, the first socket port can be set up in Test taker Client end, and in the same manner, keeper passes through pipe
After reason person's client logs in On-line Examining system, Administrator Client also can set up the first socket port.Except setting up first
Socket port, browser client also can send the connection request setting up socket connection, described company to WEB server 101
Connect request include browser client 103 identification code and log in browser client user user name.Described clear
The identification code of device client 103 of looking at may refer to the IP address of browser client it is also possible to refer to the MAC of browser client
Address(Media Access Control Address, media access control address).
WEB server 101 is used for, after the connection request receiving browser client 103 transmission, preserving browser visitor
The identification code at family end 103 and user name, and call sockets interface module to randomly generate unappropriated second socket port,
Set is set up by the first socket port of described second socket port and the browser client sending described connection request
Connect word interface channel;
When needing Test taker Client end execution delay operation, described Administrator Client 1031 is used for obtaining needs time delay
The identification code at Test taker Client end, the user name of the described user at Test taker Client end needing time delay of login, and to described WEB service
Device sends the time delay command of identification code, user name and the delay duration carrying described acquisition.
WEB server 101 is additionally operable to, after receiving time delay command, described time delay command is sent to and described WEB clothes
There is the Test taker Client end of socket interface channel between business device.It is because socket interface channel is real-time Communication for Power passage, described,
After WEB server 101 receives time delay command, in time time delay command can be sent to Test taker Client end.
Test taker Client end 1032 is additionally operable to, after receiving time delay command, judge described time delay according to user name and identification code
Whether instruction is for oneself, if it is, executing delay operation according to the delay duration in described time delay command, otherwise not
Execution delay operation.
Specifically, Test taker Client end 1032 receive time delay command after, by the user name in time delay command and log in this
The user name phase of the user at Test taker Client end compares, and the identification code-phase by the identification code in time delay command and this Test taker Client end
Compare, if the user name in described time delay command is identical with the user name of the user logging in this Test taker Client end, and time delay refers to
Identification code in order is identical with the identification code at this Test taker Client end, then illustrate that described time delay command is for oneself, otherwise say
Bright described time delay command is not for oneself.When it is for oneself that described time delay command is judged at Test taker Client end 1032
Wait, execute delay operation, delay duration is entrained delay duration in time delay command.
It can be seen that, a kind of On-line Examining system that the embodiment of the present application provides, browser client includes Administrator Client
With Test taker Client end, after user logs in On-line Examining system by browser client, browser client is to WEB server
Send connection request, after WEB server receives connection request, set up to be connected with the socket between browser server and lead to
Road, and socket interface channel is duplexing real-time Communication for Power passage, when needing Test taker Client end execution delay operation, keeper visitor
Family end sends the identification code at the Test taker Client end carrying time delay in need, logs in and described need time delay to described WEB server
The user name of the user at Test taker Client end and the time delay command of delay duration, WEB server passes through socket interface channel will
Described time delay command is transmitted to Test taker Client end, after Test taker Client termination receives time delay command, is sentenced according to user name and identification code
Whether the described time delay command that breaks is for oneself, if it is, according to the delay duration execution time delay in described time delay command
Operation, it is achieved that extend the function of test time to examinee, thus decreasing the impact to examination, reducing human and material resources and disappearing
Consumption.
Above-described embodiment it is preferred that when need Test taker Client end execution hand in an examination paper operation when, described Administrator Client end
1031 are additionally operable to obtain the user needing the identification code at Test taker Client end handed in an examination paper, logging in the Test taker Client end that described needs are handed in an examination paper
User name, and send to described WEB server 101 carry acquired identification code, user name and type of handing in an examination paper
Hand in an examination paper instruction;Described type of handing in an examination paper for normally handing in an examination paper or improper can be handed in an examination paper(As cheating etc.).
Described WEB server 101 is additionally operable to, after receiving instruction of handing in an examination paper, described instruction of handing in an examination paper be connected by socket
Passage is sent to each Test taker Client end.
Test taker Client end 1032 is additionally operable to, after receiving instruction of handing in an examination paper, hand in an examination paper according to user name and identification code judge
Whether instruction is for oneself, if it is, operation of handing in an examination paper is executed according to the described type of handing in an examination paper handed in an examination paper in instruction, otherwise,
Do not execute operation of handing in an examination paper.
In the embodiment of the present application, when needing to hand in an examination paper, also can indicate that Test taker Client end executes operation of handing in an examination paper automatically, enter one
Step achieves the real-time control to client, preferably safeguards examination hall order.
Preferably, when described type of handing in an examination paper is improper handing in an examination paper, Test taker Client end 1032 is executing friendship to above-described embodiment
During volume operation, respective markers can also be carried out to the user logging in Test taker Client end, in order to carry out respective handling.
The embodiment of the present application also provides a kind of information processing method of the On-line Examining system being applied to shown in Fig. 1, this Shen
Please embodiment provide a kind of information processing method being applied to On-line Examining system flow chart as shown in Fig. 2 can include:
Step S21:After user logs in On-line Examining system by browser client, browser client sets up first
Socket port, and send, to described WEB server, the connection request setting up socket connection, described connection request includes clear
Look at the identification code of device client and user name;Described identification code can be IP address or MAC Address.
Described browser client includes Administrator Client and Test taker Client end end, wherein, Administrator Client and Kao
Raw client sets up the sequencing of the first socket port, and Administrator Client sends to WEB server and sets up socket
The connection request that word connects and Test taker Client end send the sequencing setting up the connection request that socket connects to WEB server
It is not specifically limited.
Step S22:After WEB server receives described connection request, preserve described browser client identification code with
And user name, and call sockets interface module to randomly generate unappropriated second socket port, it is socketed by described second
Socket interface channel is set up in first socket port of word port and the browser client sending described connection request;
Described socket interface channel is duplexing real-time Communication for Power passage.
Step S23:When needing Test taker Client end execution delay operation, Administrator Client obtains the examinee needing time delay
The identification code of client, the user name of the described user at Test taker Client end needing time delay of login, and pass through Administrator Client
Socket interface channel and WEB server between sends to described WEB server and carries acquired identification code, user name
And the time delay command of delay duration;
Step S24:After described WEB server receives time delay command, by between WEB server and Test taker Client end
Described time delay command is sent to Test taker Client end by socket interface channel;
Because socket interface channel is real-time Communication for Power passage, described, after WEB server receives time delay command, can
In real time time delay command to be sent to Test taker Client end.
Step S25:After Test taker Client termination receives time delay command, described time delay command is judged according to user name and identification code
Whether it is for oneself, if it is, according to the delay duration execution delay operation in described time delay command, otherwise not executing
Delay operation.
Specifically, Test taker Client end receive time delay command after, by the user name in time delay command and log in this examinee
The user name phase of the user of client compares, and the identification code in time delay command is compared with the identification code at this Test taker Client end
Right, if the user name in described time delay command is identical with the user name of the user logging in this Test taker Client end, and time delay command
In identification code identical with the identification code at this Test taker Client end, then illustrate that described time delay command is for oneself, otherwise illustrate
Described time delay command is not for oneself.When it is for oneself that described time delay command is judged at Test taker Client end, hold
Line delay operates, and delay duration is entrained delay duration in time delay command.
A kind of information processing method being applied to On-line Examining system that the embodiment of the present application provides, when user passes through to browse
After device client logs in On-line Examining system, browser client sends connection request to WEB server, and WEB server receives
To after connection request, set up the socket interface channel and browser server between, and socket interface channel is duplexing real
When communication port, when need Test taker Client end execution delay operation when, Administrator Client to described WEB server send carry
The identification code at Test taker Client end of time delay in need, log in the described user name of the user at Test taker Client end needing time delay and
The time delay command of delay duration, described time delay command is transmitted to Test taker Client end by socket interface channel by WEB server,
After Test taker Client termination receives time delay command, judge whether described time delay command is for oneself according to user name and identification code
, if it is, according to the delay duration execution delay operation in described time delay command it is achieved that extending the test time to examinee
Function, thus decrease to examination impact, reduce human and material resources consumption.
Upper embodiment is it is preferred that the another kind that the embodiment of the present application provides is applied to the information processing of On-line Examining system
The flow chart of method is as shown in figure 3, can also include:
Step S31:When handing in an examination paper operation when needing Test taker Client end to execute, Administrator Client obtains the examinee needing to hand in an examination paper
The user name of the user at Test taker Client end that the identification code of client, the described needs of login are handed in an examination paper, and send out to described WEB server
Send the instruction of handing in an examination paper of identification code, user name and the type of handing in an examination paper carrying described acquisition;Described type of handing in an examination paper can be normal
Hand in an examination paper or improper hand in an examination paper(As cheating etc.).
Step S32:After described WEB server receives instruction of handing in an examination paper, described instruction of handing in an examination paper is sent to and described WEB clothes
There is the Test taker Client end of socket interface channel between business device;
Step S33:After Test taker Client termination receives instruction of handing in an examination paper, instruction of handing in an examination paper according to user name and identification code judge
Whether it is for oneself, if it is, operation of handing in an examination paper is executed according to the described type of handing in an examination paper handed in an examination paper in instruction, otherwise do not execute
Hand in an examination paper operation.
In the embodiment of the present application, when needing to hand in an examination paper, also can indicate that Test taker Client end executes operation of handing in an examination paper automatically, enter one
Step achieves the real-time control to client, preferably safeguards examination hall order.
Above-described embodiment preferably, when described type of handing in an examination paper is improper handing in an examination paper, hand in an examination paper behaviour in execution by Test taker Client end
When making, respective markers can also be carried out to the user logging in Test taker Client end, in order to carry out respective handling.
It should be noted that each embodiment in this specification is all described by the way of going forward one by one, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar partly mutually referring to.
Finally in addition it is also necessary to explanation, herein, the relational terms of such as " first " and " second " or the like are only used
By an entity or operation with another entity or operate make a distinction, and not necessarily require or imply these entities or
There is any this actual relation or order between operation.And, term " inclusion ", "comprising" or its any other change
Body is intended to comprising of nonexcludability, so that include a series of process of key elements, method, article or equipment not only wrapping
Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article
Or the intrinsic key element of equipment.In the absence of more restrictions, the key element being limited by sentence "including a ...", and
It is not precluded within the process including described key element, method, article or equipment and also there is other identical element.
Above detailed Jie is carried out to a kind of information processing method being applied to On-line Examining system provided herein
Continue, specific case used herein is set forth to the principle of the application and embodiment, the explanation of above example is only
It is to be used to help understand the present processes and its core concept;Simultaneously for one of ordinary skill in the art, according to this Shen
Thought please, all will change in specific embodiments and applications, and in sum, this specification content should not be managed
Solution is the restriction to the application.