Summary of the invention
The embodiment of the present invention provides based on Windows operating system to the disposal route of the input of multichannel external unit and system, to propose a kind of solution of supporting multichannel peripheral equipment control multichannel application program.
On the one hand, the embodiment of the present invention provides the disposal route to the input of multichannel external unit based on Windows operating system, described method comprises: for each external unit, obtain the control information operation of this external unit to corresponding application program, wherein in this control information operation, carry the identifying information of described external unit, the corresponding identification information of application program and the operation instruction information of described external unit; For the identification information of each application program, preserve each operation instruction information of its correspondence; According to time cycle trigger condition or application requests trigger condition, send to the application program of corresponding identification information to process each operation instruction information; According to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, send to the terminal that this external unit is corresponding to show result.
Optionally, in an embodiment of the present invention, described this external unit that obtains comprises the control information operation of corresponding application program: application controls agency receives the IP packet of the external unit transmission being connected with terminal, this IP packet is resolved, obtain the control information operation in this IP packet, wherein in this control information operation, carry the identification information of this terminal, the corresponding identification information of application program and the operation descriptor information of this external unit, resolve this operation descriptor information and obtain the operation instruction information that this operation descriptor is corresponding; Or, application controls agency receives the control information operation of the external unit transmission being connected with each hardware interface, wherein in this control information operation, carry the attribute information of this external unit, the corresponding identification information of application program and the operation descriptor information of external unit, this operation descriptor information is resolved and obtained operation instruction information corresponding to this operation descriptor information.
Optionally, in an embodiment of the present invention, each operation instruction information that the described identification information for each application program is preserved its correspondence comprises: middleware receives the control information operation that application controls agency sends, according to the identification information of the application program of carrying in this control information operation, the application program that determines whether this identification information creates shared drive region, when judgement is not the application program establishment shared drive region of this identification information, application program establishment shared drive region for this identification information, and in this shared drive region, preserve this operation instruction information for the application program of this identification information, when judgement has been the application program establishment shared drive region of this identification information, in shared drive region corresponding to the application program of this identification information, preserve this operation instruction information, or, middleware receives the control information operation that application controls agency sends, according to the identification information of the application program of carrying in this control information operation and operation instruction information, for each control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information.
Optionally, in an embodiment of the present invention, described according to time cycle trigger condition or application requests trigger condition, sending to the application program of corresponding identification information to process each operation instruction information comprises: described middleware is according to each shared drive region of time cycle poll of setting, according to the identification information of application program corresponding to each shared drive region, send to the application program of corresponding identification information to process the operation instruction information of preservation in order; Or, described middleware is according to each control information operation of time cycle poll of setting, according to the identification information of application program corresponding to each control information operation and the corresponding relation of operation instruction information, send to the application program of corresponding identification information to process each operation instruction information; Or, described middleware receives the operational order solicited message of the application program transmission of each identification information, according to the identification information of the application program of carrying in this operational order solicited message, the shared drive region corresponding to application program of searching this identification information in the shared drive region creating, sends to the application program of this identification information to process the operation instruction information in the shared drive region finding in order; Or, described middleware receives the operational order solicited message of the application program transmission of each identification information, successively according to the identification information of the application program of carrying in this operational order solicited message, search the control information operation of the application program of carrying this identification information, the identification information of application program and the corresponding relation of operation instruction information for this control information operation, preserved, send to the application program of this identification information to process corresponding operation instruction information.
Optionally, in an embodiment of the present invention, described according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, sending to terminal that this external unit is corresponding to show result comprises: middleware receives the result that the application program of each identification information sends, according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, by capturing and coding module, gather the result of the application program of this identification information, to after result coding, send to the terminal that this external unit is corresponding to show.
Optionally, in an embodiment of the present invention, when at least two external units are during for the application program transmit operation control information of same identification information, described according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, sending to terminal that this external unit is corresponding to show result comprises: middleware receives the result that the application program of this identification information sends, according to the identification information of application program of preserving and the corresponding relation of the identifying information of each external unit, by capturing and coding module, gather the result of the application program of this identification information, to after result coding, send to the terminal that each external unit is corresponding to show.
On the other hand, the embodiment of the present invention provides the disposal system to the input of multichannel external unit based on Windows operating system, described system comprises: application controls proxy module, be used for for each external unit, obtain the control information operation of this external unit to corresponding application program, and described control information operation is sent to middleware, wherein in this control information operation, carry the identifying information of described external unit, the corresponding identification information of application program and the operation instruction information of described external unit; Middleware, for receiving the control information operation of application controls proxy module transmission, preserves each operation instruction information of its correspondence for the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, send to the application program of corresponding identification information to process each operation instruction information; Capturing and coding module, for according to the identification information of application program of middleware preservation and the corresponding relation of the identifying information of external unit, sends to the terminal that this external unit is corresponding to show result.
Optionally, in an embodiment of the present invention, described application controls proxy module, specifically for receiving the IP packet of the external unit transmission being connected with terminal, this IP packet is resolved, obtain the control information operation in this IP packet, wherein in this control information operation, carry the identification information of this terminal, the corresponding identification information of application program and the operation descriptor information of this external unit, resolve this operation descriptor information and obtain the operation instruction information that this operation descriptor is corresponding; Or, described application controls proxy module, specifically for receiving the control information operation of the external unit transmission being connected with each hardware interface, wherein in this control information operation, carry the attribute information of this external unit, the corresponding identification information of application program and the operation descriptor information of this external unit, this operation descriptor information is resolved and obtained operation instruction information corresponding to this operation descriptor information.
Optionally, in an embodiment of the present invention, described middleware, the control information operation sending specifically for receiving application controls proxy module, according to the identification information of the application program of carrying in this control information operation, the application program that determines whether this identification information creates shared drive region, when judgement is not the application program establishment shared drive region of this identification information, for the application program establishment shared drive region of this identification information, and in this shared drive region, preserve this operation instruction information for the application program of this identification information; When judgement has been the application program establishment shared drive region of this identification information, in shared drive region corresponding to the application program of this identification information, preserve this operation instruction information; Or, described middleware, the control information operation sending specifically for receiving application controls proxy module, according to the identification information of the application program of carrying in this control information operation and operation instruction information, for each control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information.
Optionally, in an embodiment of the present invention, described middleware, be further used for according to each shared drive region of time cycle poll of setting, according to the identification information of application program corresponding to each shared drive region, send to the application program of corresponding identification information to process the operation instruction information of preservation in order; Or, be further used for receiving the operational order solicited message that the application program of each identification information sends, according to the identification information of the application program of carrying in this operational order solicited message, the shared drive region corresponding to application program of searching this identification information in the shared drive region creating, sends to the application program of this identification information to process the operation instruction information in the shared drive region finding in order; Or, described middleware, be further used for according to each control information operation of time cycle poll of setting, according to the identification information of application program corresponding to each control information operation and the corresponding relation of operation instruction information, send to the application program of corresponding identification information to process each operation instruction information; Or, be further used for receiving the operational order solicited message that the application program of each identification information sends, successively according to the identification information of the application program of carrying in this operational order solicited message, search the control information operation of the application program of carrying this identification information, the identification information of application program and the corresponding relation of operation instruction information for this control information operation, preserved, send to the application program of this identification information to process this operation instruction information of correspondence.
Optionally, in an embodiment of the present invention, described middleware, is further used for receiving the result that the application program of each identification information sends; Described capturing and coding module, be further used for according to the identification information of application program of middleware preservation and the corresponding relation of the identifying information of external unit, gather the result of the application program of this identification information, will after result coding, send to the terminal that this external unit is corresponding to show.
Optionally, in an embodiment of the present invention, described middleware, also, for when at least two external units are during for the application program transmit operation control information of same identification information, preserves the corresponding relation of the identification information of application program and the identifying information of each external unit; Described capturing and coding module, also for the identification information of application program preserved according to middleware and the corresponding relation of the identifying information of each external unit, gather the result of the application program of this identification information, will after result coding, send to the terminal that each external unit is corresponding to show.
Technique scheme has following beneficial effect: proposed the implementation of multichannel external unit to the control of different application in the server of windows operating system, separate unit server can provide non-interfering peripheral equipment control function for a plurality of terminals, and each terminal can be operated and control the application program of operation by external unit (comprising mouse, keyboard, joystick etc.) independently.And when a plurality of external unit of the local connection of server, each external unit also can independently operate corresponding application program, and does not occur the disorderly mistake of operation.The present invention can meet large-capacity user group's demand.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The problem existing in processing for above-mentioned prior art, this programme has proposed the solution of server support multichannel peripheral equipment control multichannel application program.
As shown in Figure 2, for the embodiment of the present invention based on Windows operating system the process flow figure to the input of multichannel external unit, described method comprises:
S201, for each external unit, obtain the control information operation of this external unit to corresponding application program, wherein in this control information operation, carry the identifying information of described external unit, the corresponding identification information of application program and the operation instruction information of described external unit.
Of the present inventionly to the disposal route of the input of multichannel external unit, can apply and be to be connected with in the server of a plurality of terminals by network, wherein each terminal connects corresponding external unit, also can be applied to be connected with on the PC of a plurality of external units by this locality.
Optionally, described this external unit that obtains comprises the control information operation of corresponding application program: application controls agency receives the IP packet of the external unit transmission being connected with terminal, this IP packet is resolved, obtain the control information operation in this IP packet, (identification information of terminal can comprise: the IP address of terminal wherein in this control information operation, to carry the identification information of this terminal, or, the port numbers of the IP address+terminal of terminal), the corresponding identification information of application program and the operation descriptor information of this external unit, resolve this operation descriptor information and obtain operation instruction information corresponding to this operation descriptor information, or, application controls agency receives the control information operation of the external unit transmission being connected with each hardware interface, (attribute information of this external unit comprises: the VID information of external unit wherein in this control information operation, to carry the attribute information of this external unit, at least one in pid information and REV information, wherein VID information is supplier's id information, pid information is product ID information, REV information is manufacturer coded message), the corresponding identification information of application program and the operation descriptor information of external unit, this operation descriptor information is resolved and obtained operation instruction information corresponding to this operation descriptor information.
S202, for the identification information of each application program, preserve each operation instruction information of its correspondence.
When application controls agency receives and resolves after the control information operation that has obtained each external unit transmission, this control information operation is sent to middleware, and middleware is preserved identification information and each corresponding operation instruction information thereof of each application program according to each control information operation.
Optionally, each operation instruction information that the described identification information for each application program is preserved its correspondence comprises: middleware receives the control information operation that application controls agency sends, according to the identification information of the application program of carrying in this control information operation, the application program that determines whether this identification information creates shared drive region, when judgement is not the application program establishment shared drive region of this identification information, application program establishment shared drive region for this identification information, and in this shared drive region, preserve this operation instruction information for the application program of this identification information, when judgement has been the application program establishment shared drive region of this identification information, in shared drive region corresponding to the application program of this identification information, preserve this operation instruction information, or, middleware receives the control information operation that application controls agency sends, according to the identification information of the application program of carrying in this control information operation and operation instruction information, for each control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information.
S203, according to time cycle trigger condition or application requests trigger condition, send to the application program of corresponding identification information to process each operation instruction information.
In the present invention after having received each control information operation, can be according to the time cycle of setting successively each control information operation of poll, and the application program that the operation instruction information of carrying in control information operation sends to corresponding identification information is processed, or, the application program of each identification information having started also can initiatively send request to middleware, obtains its corresponding operation instruction information.
Optionally, described according to time cycle trigger condition or application requests trigger condition, sending to the application program of corresponding identification information to process each operation instruction information comprises: described middleware is according to each shared drive region of time cycle poll of setting, according to the identification information of application program corresponding to each shared drive region, send to the application program of corresponding identification information to process the operation instruction information of preservation in order; Or, described middleware is according to each control information operation of time cycle poll of setting, according to the identification information of application program corresponding to each control information operation and the corresponding relation of operation instruction information, send to the application program of corresponding identification information to process each operation instruction information; Or, described middleware receives the operational order solicited message of the application program transmission of each identification information, according to the identification information of the application program of carrying in this operational order solicited message, the shared drive region corresponding to application program of searching this identification information in the shared drive region creating, sends to the application program of this identification information to process the operation instruction information in the shared drive region finding in order; Or, described middleware receives the operational order solicited message of the application program transmission of each identification information, successively according to the identification information of the application program of carrying in this operational order solicited message, search the control information operation of the application program of carrying this identification information, the identification information of application program and the corresponding relation of operation instruction information for this control information operation, preserved, send to the application program of this identification information to process corresponding operation instruction information.
S204, according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, send to the terminal that this external unit is corresponding to show result.
Concrete application program is processed each operation instruction information obtaining, and final result is sent to middleware, and capturing and coding module gathers the result in middleware and sends.
Optionally, described according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, sending to terminal that this external unit is corresponding to show result comprises: middleware receives the result that the application program of each identification information sends, according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, by capturing and coding module, gather the result of the application program of this identification information, will after result coding, send to the terminal that this external unit is corresponding to show.
Above-mentioned is the process of each external unit when the application program of a unique identification information is operated, wherein each application program may be used by different users in the present invention, a certain game application for example, may a plurality of users all can use this application program simultaneously, and a user's of the every response of this application program request starts one, all can there is a unique identification information in this application program being activated, identifying this user is which when the application program of startup, after this application program is activated, equipment is distributed to this terminal by this identification information, this terminal is again after transmit operation control information, equipment can identification terminal external equipment operation be which application program.
But the situation that also there will be a plurality of external units to operate for the application program of same identification information while specifically using, for example, when two or more users play game on-line, two or more users are operations of carrying out for the application program of same identification information.In the present invention when at least two external units are during for the application program transmit operation control information of same identification information, described according to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, sending to terminal that this external unit is corresponding to show result comprises: middleware receives the result that the application program of this identification information sends, according to the identification information of application program of preserving and the corresponding relation of the identifying information of each external unit, by capturing and coding module, gather the result of the application program of this identification information, to after result coding, send to the terminal that each external unit is corresponding to show.
Corresponding to said method embodiment, as shown in Figure 3, for the embodiment of the present invention based on Windows operating system the disposal system structural representation to the input of multichannel external unit, described system comprises:
Application controls proxy module 31, be used for for each external unit, obtain the control information operation of this external unit to corresponding application program, and described control information operation is sent to middleware 32, wherein in this control information operation, carry the identifying information of described external unit, the corresponding identification information of application program and the operation instruction information of described external unit;
Middleware 32, for receiving the control information operation of application controls proxy module 31 transmissions, preserves each operation instruction information of its correspondence for the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, send to the application program of corresponding identification information to process each operation instruction information;
Capturing and coding module 33, for according to the identification information of application program of middleware 32 preservations and the corresponding relation of the identifying information of external unit, sends to the terminal that this external unit is corresponding to show result.
Optionally, described application controls proxy module 31, specifically for receiving the IP packet of the external unit transmission being connected with terminal, this IP packet is resolved, obtain the control information operation in this IP packet, wherein in this control information operation, carry the identification information of this terminal, the corresponding identification information of application program and the operation descriptor information of this external unit, resolve this operation descriptor information and obtain the operation instruction information that this operation descriptor is corresponding; Or, described application controls proxy module 31, specifically for receiving the control information operation of the external unit transmission being connected with each hardware interface, wherein in this control information operation, carry the attribute information of this external unit, the corresponding identification information of application program and the operation descriptor information of this external unit, this operation descriptor information is resolved and obtained operation instruction information corresponding to this operation descriptor information.
Optionally, described middleware 32, the control information operation sending specifically for receiving application controls proxy module 31, according to the identification information of the application program of carrying in this control information operation, the application program that determines whether this identification information creates shared drive region, when judgement is not the application program establishment shared drive region of this identification information, for the application program establishment shared drive region of this identification information, and in this shared drive region, preserve this operation instruction information for the application program of this identification information; When judgement has been the application program establishment shared drive region of this identification information, in shared drive region corresponding to the application program of this identification information, preserve this operation instruction information; Or, described middleware 32, the control information operation sending specifically for receiving application controls proxy module 31, according to the identification information of the application program of carrying in this control information operation and operation instruction information, for each control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information.
Optionally, described middleware 32, be further used for, according to each shared drive region of time cycle poll of setting, according to the identification information of application program corresponding to each shared drive region, sending to the application program of corresponding identification information to process the operation instruction information of preservation in order; Or, be further used for receiving the operational order solicited message that the application program of each identification information sends, according to the identification information of the application program of carrying in this operational order solicited message, the shared drive region corresponding to application program of searching this identification information in the shared drive region creating, sends to the application program of this identification information to process the operation instruction information in the shared drive region finding in order; Or, described middleware 32, be further used for according to each control information operation of time cycle poll of setting, according to the identification information of application program corresponding to each control information operation and the corresponding relation of operation instruction information, send to the application program of corresponding identification information to process each operation instruction information; Or, be further used for receiving the operational order solicited message that the application program of each identification information sends, successively according to the identification information of the application program of carrying in this operational order solicited message, search the control information operation of the application program of carrying this identification information, the identification information of application program and the corresponding relation of operation instruction information for this control information operation, preserved, send to the application program of this identification information to process this operation instruction information of correspondence.
Optionally, described middleware 32, is further used for receiving the result that the application program of each identification information sends; Described capturing and coding module 33, be further used for according to the identification information of application program of middleware 32 preservations and the corresponding relation of the identifying information of external unit, gather the result of the application program of this identification information, will after result coding, send to the terminal that this external unit is corresponding to show.
Optionally, described middleware 32, also, for when at least two external units are during for the application program transmit operation control information of same identification information, preserves the corresponding relation of the identification information of application program and the identifying information of each external unit; Described capturing and coding module 33, also for the identification information of application program preserved according to middleware 32 and the corresponding relation of the identifying information of each external unit, gather the result of the application program of this identification information, will after result coding, send to the terminal that each external unit is corresponding to show.
The invention described above method or system embodiment have proposed the implementation of multichannel external unit to the control of different application in the server of windows operating system, thereby can make separate unit server provide non-interfering peripheral equipment control function for a plurality of terminals, each terminal can be operated and control the application program of operation by same station server by external unit (comprising mouse, keyboard, joystick etc.) independently.And when a plurality of external unit of the local connection of server, each external unit also can independently operate corresponding application program, and does not occur the disorderly mistake of operation.The present invention can meet large-capacity user group's demand.
For server, by terminal, be connected with a plurality of external units, or PC this locality both of these case that is directly connected with a plurality of external units, the process that middleware obtains control information operation is slightly different, below in conjunction with Fig. 4 and Fig. 5, describes:
As shown in Figure 4, the reciprocal process schematic diagram between a plurality of external units that are directly connected with this locality for the PC of application example of the present invention, this process comprises:
S401/S402/S403: the external unit being connected with each hardware interface on PC, by hardware interface, to application controls, act on behalf of transmit operation control information, wherein in this control information operation, carry attribute information (at least one in the VID information of external unit, pid information and REV information for example of this external unit, wherein VID information is supplier's id information, pid information is product ID information, and REV information is manufacturer coded message), the corresponding identification information of application program and the operation descriptor information of this external unit;
S404/S405/S406: application controls agency receives the control information operation of the external unit transmission being connected with each hardware interface, wherein in this control information operation, carry the attribute information of this external unit, the corresponding identification information of application program and the operation descriptor information of this external unit, this operation descriptor information is resolved and obtained operation instruction information corresponding to this operation descriptor information, and then application controls agency sends to middleware by the control information operation after resolving.
Fig. 5 be the server of application example of the present invention by the reciprocal process schematic diagram between terminal and a plurality of external unit, this process comprises:
S501/S502/S503: the external unit being connected with each terminal, when the application program in server operates, sends the IP packet that carries control information operation by terminal to server.
S504/S505/S506: application controls agency receives the IP packet of the external unit transmission being connected with terminal, this IP packet is resolved, obtain the control information operation in this IP packet, wherein in this control information operation, carry the identification information of this terminal, the corresponding identification information of application program and the operation descriptor information of this external unit, wherein in this programme, the identification information of terminal can be: the port number information of the IP address information of terminal or the IP address information+terminal of terminal.This operation descriptor information of application controls proxy resolution, obtains operation instruction information corresponding to this operation descriptor information; Application controls agency is for each external unit, control information operation after resolving is sent to middleware, wherein in this control information operation, carry the identification information of described terminal, the corresponding identification information of application program and the operation instruction information of described external unit.
Middleware receives the control information operation that application controls agency sends, and preserves each operation instruction information of its correspondence for the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, send to the application program of corresponding identification information to process each operation instruction information;
The identification information of application program that capturing and coding module is preserved according to middleware and the corresponding relation of the identifying information of external unit, send to the terminal that this external unit is corresponding to show result.
Further, when at least two external units are during for the application program transmit operation control information of same identification information, for example, when the external unit in two or more terminals operates for a certain application program simultaneously, for example, during two terminal operation game on-line programs, each external unit can send to the control information operation that carries the identification information of this application program application controls agency, by application controls proxy resolution and send to middleware to process.
In addition, also can adopt in the present invention following scheme to realize: one of them terminal is access server first, and send and create the solicited message that user organizes to server, in this solicited message, carry the identifying information of this terminal, the identification information of the application program of request, server receives after this solicited message, for this terminal creates user's group, for example, for user organizes 1, and start corresponding application program, adopt this application assigned that corresponding identification information sign starts to this user organize 1.Server receives again the request that another terminal request adds the game on-line program of this terminal afterwards, now application controls agency receive after the request of the external unit in this another terminal, obtain the identification information of the terminal of this terminal, and the identification information of the terminal adding according to this terminal request, this another terminal is also joined to this user and organize in 1, this user organizes 1 corresponding with the application program of this identification information of identification information in two terminals and startup.Middleware receives the result of the application program transmission of this identification information, according to the user who preserves, organize the corresponding relation of the identification information of the application program in 1 and the identifying information of each external unit, by capturing and coding module, gather the result of the application program of this identification information, will after result coding, send to the terminal that each external unit is corresponding to show.
When application program is obtained each operation instruction information from middleware, or middleware is while sending to application program by each operation instruction information, and middleware is preserved each operation instruction information of its correspondence for the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, send to the application program of corresponding identification information to process each operation instruction information; According to the identification information of application program of preserving and the corresponding relation of the identifying information of external unit, send to the terminal that this external unit is corresponding to show result, in this programme, the middleware that application call is different, different in the mode of obtaining external unit operation instruction information, concrete application is described as follows in conjunction with Fig. 4:
As shown in Figure 6, for application example application program of the present invention is obtained each operation instruction information schematic diagram from middleware.When adopting the first middleware, the first middleware receives after the control information operation of application controls agency transmission, according to the identification information of the application program of carrying in this control information operation, the application program that determines whether this identification information creates shared drive region (in Fig. 6, the corresponding global sharing memory of the first application program region 1, the corresponding global sharing memory of the second application program region 2, the corresponding global sharing memory region N of N application program), when judgement is not the application program establishment shared drive region of this identification information, application program establishment shared drive region for this identification information, and in this shared drive region, preserve this operation instruction information for the application program of this identification information, when judgement has been the application program establishment shared drive region of this identification information, in shared drive region corresponding to the application program of this identification information, preserve this operation instruction information.The first middleware is further according to each shared drive region of time cycle poll of setting, according to the identification information of application program corresponding to each shared drive region, send to the application program of corresponding identification information to process the operation instruction information of preservation in order; Or, further the first middleware receives the operational order solicited message of the application program transmission of each identification information, according to the identification information of the application program of carrying in this operational order solicited message, the shared drive region corresponding to application program of searching this identification information in the shared drive region creating, sends to the application program of this identification information to process the operation instruction information in the shared drive region finding in order.
As shown in Figure 7, for application example middleware of the present invention sends to application program schematic diagram by each operation instruction information.When adopting the second middleware, the second middleware receives the control information operation that application controls agency sends, according to the identification information of the application program of carrying in this control information operation and operation instruction information, for each control information operation, preserve identification information of application program and the corresponding relation of operation instruction information (in Fig. 7, corresponding the first corresponding relation of the first application program, corresponding the second corresponding relation of the second application program ..., the corresponding N corresponding relation of N application program).The second middleware is further according to each control information operation of time cycle poll of setting, according to the identification information of application program corresponding to each control information operation and the corresponding relation of operation instruction information, send to the application program of corresponding identification information to process each operation instruction information; Or, be further used for receiving the operational order solicited message that the application program of each identification information sends, successively according to the identification information of the application program of carrying in this operational order solicited message, search the control information operation of the application program of carrying this identification information, the identification information of application program and the corresponding relation of operation instruction information for this control information operation, preserved, send to the application program of this identification information to process corresponding operation instruction information.
When server connects a plurality of terminal by network, or server is while connecting a plurality of external unit in this locality, can to the operation descriptor of the external unit of each connection, operate according to such scheme, to avoid the disorderly problem of operation.The present invention proposes the implementation of multichannel external unit to the control of different application in the server of windows operating system, separate unit server can provide non-interfering peripheral equipment control function for a plurality of terminals, and each terminal can be operated and control the application program of operation by external unit (comprising mouse, keyboard, joystick etc.) independently.And when a plurality of external unit of the local connection of server, each external unit also can independently operate corresponding application program, and does not occur the disorderly mistake of operation.
Those skilled in the art can also recognize the various illustrative components, blocks (illustrative logical block) that the embodiment of the present invention is listed, unit, and step can pass through electronic hardware, computer software, or both combinations realize.For the clear replaceability (interchangeability) of showing hardware and software, above-mentioned various illustrative components (illustrative components), unit and step have been described their function generally.Such function is to realize by hardware or software the designing requirement of depending on specific application and whole system.Those skilled in the art can, for every kind of specific application, can make in all sorts of ways and realize described function, but this realization should not be understood to exceed the scope of embodiment of the present invention protection.
Various illustrative logical block described in the embodiment of the present invention, or unit can pass through general processor, digital signal processor, special IC (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the design of above-mentioned any combination realizes or operates described function.General processor can be microprocessor, and alternatively, this general processor can be also any traditional processor, controller, microcontroller or state machine.Processor also can be realized by the combination of calculation element, for example digital signal processor and microprocessor, multi-microprocessor, a Digital Signal Processor Core of one or more microprocessors associating, or any other similarly configuration realize.
Method described in the embodiment of the present invention or the step of algorithm can directly embed hardware, the software module of processor execution or the two combination.Software module can be stored in the storage medium of other arbitrary form in RAM storer, flash memory, ROM storer, eprom memory, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this area.Exemplarily, storage medium can be connected with processor so that processor can be from storage medium reading information, and can deposit write information to storage medium.Alternatively, storage medium can also be integrated in processor.Processor and storage medium can be arranged in ASIC, and ASIC can be arranged in user terminal.Alternatively, processor and storage medium also can be arranged in the different parts in user terminal.
In one or more exemplary designs, the described above-mentioned functions of the embodiment of the present invention can realize in hardware, software, firmware or this three's combination in any.If realized in software, these functions can be stored on the medium with computer-readable, or are transmitted on the medium of computer-readable with one or more instructions or code form.Computer-readable medium comprises computer storage medium and is convenient to make to allow computer program transfer to other local telecommunication media from a place.Storage medium can be the useable medium that any general or special computer can access.For example, such computer readable media can include but not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage device, or other anyly can be read by general or special computer or general or special processor the medium of the program code of form with instruction or data structure and other for carrying or storage.In addition, any connection can be suitably defined as computer-readable medium, for example,, if software is by a concentric cable, optical fiber computer, twisted-pair feeder, Digital Subscriber Line (DSL) or being also comprised in defined computer-readable medium with wireless way for transmittings such as infrared, wireless and microwave from a web-site, server or other remote resource.Described video disc (disk) and disk (disc) comprise Zip disk, radium-shine dish, CD, DVD, floppy disk and Blu-ray Disc, and disk is conventionally with magnetic duplication data, and video disc carries out optical reproduction data with laser conventionally.Above-mentioned combination also can be included in computer-readable medium.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only the specific embodiment of the present invention; the protection domain being not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.