Summary of the invention
The embodiment of the invention provides based on disposal route and the system of Windows operating system to the input of multichannel external unit, to propose a kind of solution of supporting multichannel external unit control multichannel application program.
On the one hand; The embodiment of the invention provides based on the disposal route of Windows operating system to the input of multichannel external unit; Said method comprises: to each external unit; Obtain the control information operation of this external unit, wherein carry the identifying information of said external unit, the identification information of corresponding application program and the operation instruction information of said external unit in this control information operation corresponding application program; Preserve its each corresponding operation instruction information to the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, the application program that each operation instruction information is sent to corresponding identification information is handled; According to the identification information of the application program of preserving and the corresponding relation of the identifying information of external unit, the terminal that result is sent to this external unit correspondence shows.
Optional; In an embodiment of the present invention; Said this external unit that obtains comprises the control information operation of corresponding application program: the application controls agency receives the IP packet of the external unit transmission that is connected with the terminal; This IP packet is resolved; Obtain the control information operation in this IP packet, wherein carry the identification information at this terminal, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation, resolve this operation descriptor information and obtain this operation descriptor instruction corresponding information; Or; The application controls agency receives the control information operation of the external unit transmission that is connected with each hardware interface; Wherein carry the attribute information of this external unit, the identification information of corresponding application program and the operation descriptor information of external unit in this control information operation, this operation descriptor information is resolved this operation descriptor information instruction corresponding information of obtaining.
Optional; In an embodiment of the present invention; Said identification information to each application program is preserved its each corresponding operation instruction information and comprised: middleware receives the control information operation that the application controls agency sends; According to the identification information of the application program of carrying in this control information operation, judge whether to create the shared drive zone, when judgement is not the application program establishment shared drive zone of this identification information into the application program of this identification information; For the application program of this identification information is created the shared drive zone, and in this shared drive zone, preserve this operation instruction information to the application program of this identification information; When judgement has been the application program establishment shared drive zone of this identification information, in the corresponding shared drive zone of the application program of this identification information, preserve this operation instruction information; Or; Middleware receives the control information operation that the application controls agency sends; According to the identification information and the operation instruction information of the application program of carrying in this control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information to each control information operation.
Optional; In an embodiment of the present invention; Said according to time cycle trigger condition or application requests trigger condition; The application program that each operation instruction information is sent to corresponding identification information is handled and comprised: said middleware is according to each shared drive zone of the time cycle poll of setting, and according to the identification information of each shared drive zone corresponding application program, the application program that in order operation instruction information of preserving is sent to corresponding identification information is handled; Or; Said middleware is according to each control information operation of time cycle poll of setting; According to the identification information of each control information operation corresponding application program and the corresponding relation of operation instruction information, the application program that each operation instruction information is sent to corresponding identification information is handled; Or; Said middleware receives the operational order solicited message of the application program transmission of each identification information; Identification information according to the application program of carrying in this operational order solicited message; In the shared drive zone of creating, search the corresponding shared drive zone of application program of this identification information, the application program that in order operation instruction information in the shared drive zone that finds is sent to this identification information is handled; Or; Said 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 the application program of preserving to this control information operation and the corresponding relation of operation instruction information, the application program that instruction corresponding information is sent to this identification information is handled.
Optional; In an embodiment of the present invention; The corresponding relation of the identifying information of said identification information and external unit according to the application program of preserving; Result is sent to the corresponding terminal of this external unit to be shown and comprise: middleware receives the result that the application program of each identification information is sent; According to the identification information of the application program of preserving and the corresponding relation of the identifying information of external unit, gather the result of the application program of this identification information through the capturing and coding module, the terminal that sends to this external unit correspondence behind the result coding is shown.
Optional; In an embodiment of the present invention; When at least two external units are directed against the application program transmit operation control information of same identification information; The corresponding relation of the identifying information of said identification information and external unit according to the application program of preserving; Result is sent to the corresponding terminal of this external unit to be shown and comprise: middleware receives the result that the application program of this identification information is sent; According to the identification information of the application program of preserving and the corresponding relation of the identifying information of each external unit, gather the result of the application program of this identification information through the capturing and coding module, the terminal that sends to each external unit correspondence behind the result coding is shown.
On the other hand; The embodiment of the invention provides based on the disposal system of Windows operating system to the input of multichannel external unit; Said system comprises: the application controls proxy module; Be used for to each external unit; Obtain the control information operation of this external unit, and said control information operation is sent to middleware, wherein carry the identifying information of said external unit, the identification information of corresponding application program and the operation instruction information of said external unit in this control information operation corresponding application program; Middleware is used to receive the control information operation that the application controls proxy module sends, and preserves its each corresponding operation instruction information to the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, the application program that each operation instruction information is sent to corresponding identification information is handled; The capturing and coding module, the identification information of the application program that is used for preserving and the corresponding relation of the identifying information of external unit according to middleware, the terminal that result is sent to this external unit correspondence shows.
Optional; In an embodiment of the present invention, said application controls proxy module specifically is used to receive the IP packet that the external unit that is connected with the terminal sends; This IP packet is resolved; Obtain the control information operation in this IP packet, wherein carry the identification information at this terminal, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation, resolve this operation descriptor information and obtain this operation descriptor instruction corresponding information; Or; Said application controls proxy module; Specifically be used to receive the control information operation of the external unit transmission that is connected with each hardware interface; Wherein carry the attribute information of this external unit, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation, this operation descriptor information is resolved this operation descriptor information instruction corresponding information of obtaining.
Optional; In an embodiment of the present invention; Said middleware specifically is used to receive the control information operation that the application controls proxy module sends, according to the identification information of the application program of carrying in this control information operation; Judge whether to create the shared drive zone for the application program of this identification information; When judging be the application program of this identification information when creating the shared drive zone, is that the application program of this identification information is created the shared drive zone, and the application program that is directed against this identification information is preserved this operation instruction information in this shared drive zone; When judgement has been the application program establishment shared drive zone of this identification information, in the corresponding shared drive zone of the application program of this identification information, preserve this operation instruction information; Or; Said middleware; Specifically be used to receive the control information operation that the application controls proxy module sends; According to the identification information and the operation instruction information of the application program of carrying in this control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information to each control information operation.
Optional; In an embodiment of the present invention; Said middleware; Be further used for according to each shared drive zone of the time cycle poll of setting, according to the identification information of each shared drive zone corresponding application program, the application program that in order operation instruction information of preserving is sent to corresponding identification information is handled; Or; Be further used for receiving the operational order solicited message that the application program of each identification information is sent; Identification information according to the application program of carrying in this operational order solicited message; In the shared drive zone of creating, search the corresponding shared drive zone of application program of this identification information, the application program that in order operation instruction information in the shared drive zone that finds is sent to this identification information is handled; Or; Said middleware; Be further used for according to each control information operation of time cycle poll of setting; According to the identification information of each control information operation corresponding application program and the corresponding relation of operation instruction information, the application program that each operation instruction information is sent to corresponding identification information is handled; Or; Be further used for receiving the operational order solicited message that the application program of each identification information is sent; 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 the application program of preserving to this control information operation and the corresponding relation of operation instruction information, the application program that this operation instruction information of correspondence is sent to this identification information is handled.
Optional, in an embodiment of the present invention, said middleware is further used for receiving the result that the application program of each identification information is sent; Said capturing and coding module; The corresponding relation of the identification information of the application program that is further used for preserving and the identifying information of external unit according to middleware; Gather the result of the application program of this identification information, show sending to the corresponding terminal of this external unit behind the result coding.
Optional; In an embodiment of the present invention; Said middleware also is used for when at least two external units are directed against the application program transmit operation control information of same identification information, the corresponding relation of the identification information of preservation application program and the identifying information of each external unit; Said capturing and coding module; The corresponding relation of the identification information of the application program that also is used for preserving and the identifying information of each external unit according to middleware; Gather the result of the application program of this identification information, show sending to the corresponding terminal of each external unit behind the result coding.
Technique scheme has following beneficial effect: proposed in the server of windows operating system the multichannel external unit to the implementation of the control of different application; The separate unit server can provide non-interfering external unit control function for a plurality of terminals, and promptly each terminal can operate and control the application program of operation through 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 be operated corresponding application, and the disorderly mistake of operation do not occur.The present invention can satisfy large-capacity user crowd's demand.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
To the problem that exists in the above-mentioned prior art processing, this programme has proposed server and has supported the multichannel external unit to control the solution of multichannel application program.
As shown in Figure 2, for the embodiment of the invention based on the process flow figure of Windows operating system to the input of multichannel external unit, said method comprises:
S201, to each external unit; Obtain the control information operation of this external unit, wherein carry the identifying information of said external unit, the identification information of corresponding application program and the operation instruction information of said external unit in this control information operation corresponding application program.
The disposal route of the input to the multichannel external unit of the present invention can be used and be to be connected with in the server at a plurality of terminals through 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 through this locality.
Optional; Said this external unit that obtains comprises the control information operation of corresponding application program: the application controls agency receives the IP packet of the external unit transmission that is connected with the terminal; This IP packet is resolved; Obtain the control information operation in this IP packet, wherein carry in this control information operation this terminal identification information (identification information at terminal can comprise: the IP address at terminal, or; The port numbers at the IP address+terminal at terminal), the identification information of corresponding application program and the operation descriptor information of this external unit, resolve this operation descriptor information and obtain this operation descriptor information instruction corresponding information; Or; The application controls agency receives the control information operation of the external unit transmission that is connected with each hardware interface; (attribute information of this external unit comprises: at least a in the VID information of external unit, pid information and the REV information wherein to carry the attribute information of this external unit in this control information operation; Wherein VID information is supplier's id information; Pid information is a product ID information, and REV information is the manufacturer coded message), the identification information of corresponding application program and the operation descriptor information of external unit, this operation descriptor information is resolved this operation descriptor information instruction corresponding information of obtaining.
S202, preserve its each corresponding operation instruction information to the identification information of each application program.
When application controls agency reception and after resolving 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.
Optional; Said identification information to each application program is preserved its each corresponding operation instruction information and comprised: middleware receives the control information operation that the application controls agency sends; Identification information according to the application program of carrying in this control information operation; Judge whether to create the shared drive zone for the application program of this identification information; When judging be the application program of this identification information when creating the shared drive zone, is that the application program of this identification information is created the shared drive zone, and the application program that is directed against this identification information is preserved this operation instruction information in this shared drive zone; When judgement has been the application program establishment shared drive zone of this identification information, in the corresponding shared drive zone of the application program of this identification information, preserve this operation instruction information; Or; Middleware receives the control information operation that the application controls agency sends; According to the identification information and the operation instruction information of the application program of carrying in this control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information to each control information operation.
S203, according to time cycle trigger condition or application requests trigger condition, the application program that each operation instruction information is sent to corresponding identification information is handled.
In the present invention after having received each control information operation; Can be according to the time cycle of setting each control information operation of poll successively; And the application program that the operation instruction information of carrying in the control information operation sends to corresponding identification information handled; Perhaps, the application program of each identification information that has started also can initiatively be sent request to middleware, obtains its corresponding operation instruction information.
Optional; Said according to time cycle trigger condition or application requests trigger condition; The application program that each operation instruction information is sent to corresponding identification information is handled and comprised: said middleware is according to each shared drive zone of the time cycle poll of setting; According to the identification information of each shared drive zone corresponding application program, the application program that in order operation instruction information of preserving is sent to corresponding identification information is handled; Or; Said middleware is according to each control information operation of time cycle poll of setting; According to the identification information of each control information operation corresponding application program and the corresponding relation of operation instruction information, the application program that each operation instruction information is sent to corresponding identification information is handled; Or; Said middleware receives the operational order solicited message of the application program transmission of each identification information; Identification information according to the application program of carrying in this operational order solicited message; In the shared drive zone of creating, search the corresponding shared drive zone of application program of this identification information, the application program that in order operation instruction information in the shared drive zone that finds is sent to this identification information is handled; Or; Said 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 the application program of preserving to this control information operation and the corresponding relation of operation instruction information, the application program that instruction corresponding information is sent to this identification information is handled.
S204, according to the identification information of the application program of preserving and the corresponding relation of the identifying information of external unit, the terminal that result is sent to this external unit correspondence shows.
Concrete application program is handled each operation instruction information that obtains, and final result is sent to middleware, and the capturing and coding module is gathered the result in the middleware and sent.
Optional; The corresponding relation of the identifying information of said identification information and external unit according to the application program of preserving; Result is sent to the corresponding terminal of this external unit to be shown and comprise: middleware receives the result that the application program of each identification information is sent; Corresponding relation according to the identifying information of the identification information of the application program of preserving and external unit; Gather the result of the application program of this identification information through the capturing and coding module, show sending to the corresponding terminal of this external unit behind the result coding.
Above-mentionedly be 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; For example a certain game application possibly 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 be a unique identification information in this application program that is activated; Identify this user and work as which application program started is, after this application program was activated, equipment was distributed to this terminal with this identification information; Redispatch behind the control information operation in this terminal, the external equipment operation that equipment can identification terminal be which application program.
But the situation that a plurality of external units are operated to the application program of same identification information also can appear when specifically using; For example when two or more users played game on-line, two or more users were operations of carrying out to the application program of same identification information.In the present invention when at least two external units are directed against the application program transmit operation control information of same identification information; The corresponding relation of the identifying information of said identification information and external unit according to the application program of preserving; Result is sent to the corresponding terminal of this external unit to be shown and comprise: middleware receives the result that the application program of this identification information is sent; Corresponding relation according to the identifying information of the identification information of the application program of preserving and each external unit; Gather the result of the application program of this identification information through the capturing and coding module, show sending to the corresponding terminal of each external unit behind the result coding.
Corresponding to said method embodiment, as shown in Figure 3, for the embodiment of the invention based on the disposal system structural representation of Windows operating system to the input of multichannel external unit, said system comprises:
Application controls proxy module 31; Be used for to each external unit; Obtain the control information operation of this external unit to corresponding application program; And said control information operation sent to middleware 32, wherein carry the identifying information of said external unit, the identification information of corresponding application program and the operation instruction information of said external unit in this control information operation;
Middleware 32 is used to receive the control information operation that application controls proxy module 31 sends, and preserves its each corresponding operation instruction information to the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, the application program that each operation instruction information is sent to corresponding identification information is handled;
Capturing and coding module 33, the identification information of the application program that is used for preserving and the corresponding relation of the identifying information of external unit according to middleware 32, the terminal that result is sent to this external unit correspondence shows.
Optional; Said application controls proxy module 31; Specifically be used to receive the IP packet of the external unit transmission that is connected with the terminal, this IP packet is resolved, obtain the control information operation in this IP packet; Wherein carry the identification information at this terminal, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation, resolve this operation descriptor information and obtain this operation descriptor instruction corresponding information; Or; Said application controls proxy module 31; Specifically be used to receive the control information operation of the external unit transmission that is connected with each hardware interface; Wherein carry the attribute information of this external unit, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation, this operation descriptor information is resolved this operation descriptor information instruction corresponding information of obtaining.
Optional; Said middleware 32; Specifically be used to receive the control information operation that application controls proxy module 31 sends; According to the identification information of the application program of carrying in this control information operation, judge whether to create the shared drive zone, when judgement is not the application program establishment shared drive zone of this identification information into the application program of this identification information; For the application program of this identification information is created the shared drive zone, and in this shared drive zone, preserve this operation instruction information to the application program of this identification information; When judgement has been the application program establishment shared drive zone of this identification information, in the corresponding shared drive zone of the application program of this identification information, preserve this operation instruction information; Or; Said middleware 32; Specifically be used to receive the control information operation that application controls proxy module 31 sends; According to the identification information and the operation instruction information of the application program of carrying in this control information operation, preserve the identification information of application program and the corresponding relation of operation instruction information to each control information operation.
Optional; Said middleware 32; Be further used for according to each shared drive zone of the time cycle poll of setting, according to the identification information of each shared drive zone corresponding application program, the application program that in order operation instruction information of preserving is sent to corresponding identification information is handled; Or; Be further used for receiving the operational order solicited message that the application program of each identification information is sent; Identification information according to the application program of carrying in this operational order solicited message; In the shared drive zone of creating, search the corresponding shared drive zone of application program of this identification information, the application program that in order operation instruction information in the shared drive zone that finds is sent to this identification information is handled; Or; Said middleware 32; Be further used for according to each control information operation of time cycle poll of setting; According to the identification information of each control information operation corresponding application program and the corresponding relation of operation instruction information, the application program that each operation instruction information is sent to corresponding identification information is handled; Or; Be further used for receiving the operational order solicited message that the application program of each identification information is sent; 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 the application program of preserving to this control information operation and the corresponding relation of operation instruction information, the application program that this operation instruction information of correspondence is sent to this identification information is handled.
Optional, said middleware 32 is further used for receiving the result that the application program of each identification information is sent; Said capturing and coding module 33; The corresponding relation of the identification information of the application program that is further used for preserving and the identifying information of external unit according to middleware 32; Gather the result of the application program of this identification information, show sending to the corresponding terminal of this external unit behind the result coding.
Optional, said middleware 32 also is used for when at least two external units are directed against the application program transmit operation control information of same identification information, the corresponding relation of the identification information of preservation application program and the identifying information of each external unit; Said capturing and coding module 33; The corresponding relation of the identification information of the application program that also is used for preserving and the identifying information of each external unit according to middleware 32; Gather the result of the application program of this identification information, show sending to the corresponding terminal of each external unit behind the result coding.
The invention described above method or system embodiment have proposed in the server of windows operating system the multichannel external unit to the implementation of the control of different application; Thereby can make the separate unit server non-interfering external unit control function is provided for a plurality of terminals, promptly each terminal can operate and control the application program of operation through same station server through 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 be operated corresponding application, and the disorderly mistake of operation do not occur.The present invention can satisfy large-capacity user crowd's demand.
Link to each other with a plurality of external units through the terminal for server, the process that perhaps PC this locality both of these case that directly links to each other with a plurality of external units, middleware obtain control information operation is difference slightly, describes below in conjunction with Fig. 4 and Fig. 5:
As shown in Figure 4, the reciprocal process synoptic diagram between a plurality of external units that directly link to each other for PC and this locality of application example of the present invention, this process comprises:
S401/S402/S403: the external unit that is connected with each hardware interface on the PC; Act on behalf of the transmit operation control information through hardware interface to application controls; Wherein carry attribute information (at least a in the VID information of external unit, pid information and the REV information for example of this external unit in this control information operation; Wherein VID information is supplier's id information; Pid information is a product ID information, and REV information is the manufacturer coded message), the identification information of corresponding application program and the operation descriptor information of this external unit;
S404/S405/S406: the application controls agency receives the control information operation of the external unit transmission that is connected with each hardware interface; Wherein carry the attribute information of this external unit, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation; This operation descriptor information is resolved this operation descriptor information instruction corresponding information of obtaining, and the control information operation after the application controls agency will resolve then sends to middleware.
Fig. 5 passes through the reciprocal process synoptic diagram between terminal and a plurality of external unit for the server of application example of the present invention, and this process comprises:
S501/S502/S503: the external unit that is connected with each terminal sends the IP packet that carries control information operation through terminal to server when the application program in the server is operated.
S504/S505/S506: the application controls agency receives the IP packet of the external unit transmission that is connected with the terminal; This IP packet is resolved; Obtain the control information operation in this IP packet; Wherein carry the identification information at this terminal, the identification information of corresponding application program and the operation descriptor information of this external unit in this control information operation, wherein the identification information at terminal can be the port number information at the IP address information at terminal or the IP address information+terminal at terminal in this programme.The application controls proxy resolution should be operated descriptor information, obtained this operation descriptor information instruction corresponding information; The application controls agency is to each external unit; Control information operation after resolving is sent to middleware, wherein carry the identification information at said terminal, the identification information of corresponding application program and the operation instruction information of said external unit in this control information operation.
Middleware receives the control information operation that the application controls agency sends, and preserves its each corresponding operation instruction information to the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, the application program that each operation instruction information is sent to corresponding identification information is handled;
The identification information of the application program that the capturing and coding module is preserved according to middleware and the corresponding relation of the identifying information of external unit, the terminal that result is sent to this external unit correspondence shows.
Further; When at least two external units are directed against the application program transmit operation control information of same identification information; For example when the external unit on two or more terminals is operated to 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 of the identification information that carries this application program the application controls agency, by the application controls proxy resolution and send to middleware and handle.
In addition, also can adopt following scheme to realize in the present invention: one of them terminal is access server at first, and sends the solicited message of creating user's group to server; Carry the identifying information at this terminal in this solicited message, after the identification information of application requested, server receive this solicited message; For creating user's group in this terminal; For example for the user organizes 1, and start corresponding application, this application assigned that adopts corresponding identification information sign to start organizes 1 for this user.Server receives the request that another terminal request adds the game on-line program at this terminal again afterwards; After application controls this moment agency receives the request of the external unit on this another terminal; Obtain the identification information at the terminal at this terminal; And the identification information at the terminal that adds according to this terminal request, this another terminal is also joined this user organizes in 1, promptly this user organize 1 with two terminals on the application program of this identification information of identification information and startup corresponding.Middleware receives the result of the application program transmission of this identification information; Organize the corresponding relation of identifying information of identification information and each external unit of the application program in 1 according to the user who preserves; Gather the result of the application program of this identification information through the capturing and coding module, show sending to the corresponding terminal of each external unit behind the result coding.
When application program was obtained each operation instruction information from middleware, when perhaps middleware sent to application program with each operation instruction information, middleware was preserved its each corresponding operation instruction information to the identification information of each application program; According to time cycle trigger condition or application requests trigger condition, the application program that each operation instruction information is sent to corresponding identification information is handled; Corresponding relation according to the identifying information of the identification information of the application program of preserving and external unit; Result is sent to the corresponding terminal of this external unit to be shown; In this programme; The middleware that application call is different, different in the mode of obtaining the external unit operation instruction information, the concrete application combines Fig. 4 to describe as follows:
As shown in Figure 6, for application example application program of the present invention is obtained each operation instruction information synoptic diagram from middleware.When adopting first middleware; After first middleware receives 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, judge whether into the application program of this identification information create the shared drive zone (in Fig. 6, the corresponding global sharing memory of first application program zone 1; The corresponding global sharing memory of second application program zone 2;, the corresponding global sharing memory of N application program zone N), when judgement is not the application program establishment shared drive zone of this identification information; For the application program of this identification information is created the shared drive zone, and in this shared drive zone, preserve this operation instruction information to the application program of this identification information; When judgement has been the application program establishment shared drive zone of this identification information, in the corresponding shared drive zone of the application program of this identification information, preserve this operation instruction information.First middleware is further according to each shared drive zone of the time cycle poll of setting; According to the identification information of each shared drive zone corresponding application program, the application program that in order operation instruction information of preserving is sent to corresponding identification information is handled; Or; Further first middleware receives the operational order solicited message of the application program transmission of each identification information; Identification information according to the application program of carrying in this operational order solicited message; In the shared drive zone of creating, search the corresponding shared drive zone of application program of this identification information, the application program that in order operation instruction information in the shared drive zone that finds is sent to this identification information is handled.
As shown in Figure 7, for application example middleware of the present invention sends to the application program synoptic diagram with each operation instruction information.When adopting second middleware; Second middleware receives the control information operation that the application controls agency sends, and according to the identification information and the operation instruction information of the application program of carrying in this control information operation, the corresponding relation of identification information and operation instruction information of preserving application program to each control information operation is (in Fig. 7; Corresponding first corresponding relation of first application program; Corresponding second corresponding relation of second application program ..., the corresponding N corresponding relation of N application program).Second middleware is further according to each control information operation of time cycle poll of setting; According to the identification information of each control information operation corresponding application program and the corresponding relation of operation instruction information, the application program that each operation instruction information is sent to corresponding identification information is handled; Or; Be further used for receiving the operational order solicited message that the application program of each identification information is sent; 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 the application program of preserving to this control information operation and the corresponding relation of operation instruction information, the application program that instruction corresponding information is sent to this identification information is handled.
When server connects a plurality of terminal through network, when perhaps server connects a plurality of external unit in this locality, can operate the operation descriptor of the external unit of each connection, to avoid the disorderly problem of operation according to such scheme.The present invention proposes in the server of windows operating system the multichannel external unit to the implementation of the control of different application; The separate unit server can provide non-interfering external unit control function for a plurality of terminals, and promptly each terminal can operate and control the application program of operation through 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 be operated corresponding application, and the disorderly mistake of operation do not occur.
Those skilled in the art can also recognize the various illustrative components, blocks (illustrative logical block) that the embodiment of the invention is listed, and unit and step can be passed through electronic hardware, computer software, or both combinations realize.Be 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 depending on the designing requirement of certain applications and total system through hardware or software.Those skilled in the art can be for every kind of certain applications, and can make ins all sorts of ways realizes described function, but this realization should not be understood that to exceed the scope of embodiment of the invention protection.
Various illustrative logical block described in the embodiment of the invention; Or the 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 also can be any traditional processor, controller, microcontroller or state machine.Processor also can realize through the combination of calculation element, for example digital signal processor and microprocessor, a plurality of microprocessors, Digital Signal Processor Core of one or more microprocessors associatings, or any other similarly configuration realize.
The method described in the embodiment of the 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 read information from storage medium, and can deposit write information to storage medium.Alternatively, storage medium can also be integrated in the processor.Processor and storage medium can be arranged among the ASIC, and ASIC can be arranged in the user terminal.Alternatively, processor and storage medium also can be arranged in the various parts in the user terminal.
In one or more exemplary designs, the described above-mentioned functions of the embodiment of the invention can realize in hardware, software, firmware or this three's combination in any.If in software, realize, these functions can be stored on the media with computer-readable, or are transmitted on the media of computer-readable with one or more instructions or code form.The computer-readable media comprises that the computer storage medium lets computer program transfer to other local telecommunication media from a place with being convenient to make.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 any can be used to carry or store with instruction or data structure and other can be read the media of the program code of form by general or special computer or general or special processor.In addition; Any connection can suitably be defined as the computer-readable media; For example, if software is through a concentric cable, optical fiber computer, twisted-pair feeder, Digital Subscriber Line (DSL) or also being comprised in the defined computer-readable media with wireless mode transmission such as for example infrared, wireless and microwaves 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 usually with the magnetic duplication data, and video disc carries out the optical reproduction data with laser usually.Above-mentioned combination also can be included in the computer-readable media.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.