CN101917407B - Method for reducing network flow according to mouse position - Google Patents
Method for reducing network flow according to mouse position Download PDFInfo
- Publication number
- CN101917407B CN101917407B CN201010235306.7A CN201010235306A CN101917407B CN 101917407 B CN101917407 B CN 101917407B CN 201010235306 A CN201010235306 A CN 201010235306A CN 101917407 B CN101917407 B CN 101917407B
- Authority
- CN
- China
- Prior art keywords
- window
- client
- terminal
- server
- client side
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention belongs to the technical field of far-end equipment monitoring control, in particular to a method for reducing network flow according to a mouse position. The method comprises the following steps that: a server side receives a message from terminal equipment and a command from a client side, forwards the equipment message to the client side and sends the command to the terminal equipment; a server set outs a window command, including window dimensions and window content; the client side considers as a user interest point according to the user mouse position, and adds or deletes a terminal in a window by taking the position as the center of the window according to an arithmetic; the client side sends the window command to the server; and the server only forwards terminal data in the window to the client side after receiving the command. The invention provides a new network flow reducing method for developing a real-time control system or a data monitoring system. The method is simple and effective and only sends the data in the window to the client side, and proved by practice, the invention can greatly simplify the complexity of the client side procedure, relieve the burden of the server and reduce the network flow to the hilt.
Description
Technical field
The invention belongs to a kind of remote equipment Monitoring and Controlling technical field, particularly a kind of method that reduces network traffics according to mouse position.
Background technology
Vehicle GPS dispatching patcher is made up of three parts, GPS terminal (hereinafter to be referred as terminal), server and client side, and communication adopts TCP, UDP mode.System has a large number of users, each user has the vehicle of some that terminal is installed, terminal timing is issued server relevant position and sensor status information by GPRS network, and the instruction of response server transmission, and server receives that terminal message forwarding immediately is to associated user's client.But, will receive in real time if client has more than 150 vehicle the end message that a large amount of servers forward, and cause client slow in reacting, this requires client computer to adopt high hardware configuration, just can satisfy the demands the basic like this demand that cannot meet client and use handheld device.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art and provide a kind of according to the method for client mouse position minimizing network traffics.
The object of the present invention is achieved like this:
A method that reduces network traffics according to client mouse position, is characterized in that: described method comprises the steps:
Step 1: formulate a kind of agreement, organize request msg with window mode;
Step 2: server E-Packets to relative client according to the window of each client-requested;
Step 3: the order of client send window is to server request data;
Step 4: server first sends it to protocol layer is that client's send window order according to the additional parameter judgement wherein comprising;
Step 5: server finds this user to remove with front window, sets up new window;
Step 6: judge whether in this user window when there being terminal to send message;
Step 7: message in window is back to protocol layer and encodes;
Step 8: equipment message returns to client by Communication Layer.
A kind of agreement of described formulation, organize request msg with window mode, the steps include: in the time of exploitation server program, the instruction of definition CS_PANWIN sims window, wherein sims is client-requested terminal recognition number, and with CSV, window is the set of terminal, window size is terminal quantity, and window center is that the half of window size rounds.
Described server E-Packets to relative client according to the window of each client-requested, the steps include: that server sets up a Hash table, Key value is terminal recognition number or windows content, key assignments is Customer ID, in the time receiving terminal message, search Hash table, if exist key assignments to be just transmitted to client, do not exist and just not forward.
The order of described client send window is to server request data, the steps include: that client has all terminal objects of this user of preservation, window object, the terminal showing in real time on client screen is added in window object, user is by mouse rollovers screen, when mouse stops, the time of staying exceedes 3 seconds, judge that mouse current location terminal is whether in window, as in window, the terminal of mouse position is made as to window center, window size is constant, simultaneously to the order of server send window, directly send instruction to the terminal in window not for user, automatically this terminal is added in window, simultaneously to the order of server send window.Principle is that the terminal of the long-term dwell regions of mouse is exactly user interest point.
The present invention provides the method for new minimizing network traffics for exploitation real-time control system or data monitoring system.The method is simply effective, only issues the data in client window, can greatly simplify client-side program complexity, alleviates server burden, reduces to greatest extent network traffics.
Brief description of the drawings
Fig. 1 is flow chart of the present invention.
Embodiment
Referring to Fig. 1, key step of the present invention is as follows:
Step 1: formulate a kind of agreement, organize request msg with window mode;
Step 2: server E-Packets to relative client according to the window of each client-requested;
Step 3: the order of client send window is to server request data;
Step 4: server first sends it to protocol layer is that client's send window order according to the additional parameter judgement wherein comprising;
Step 5: server finds this user to remove with front window, sets up new window;
Step 6: judge whether in this user window when there being terminal to send message;
Step 7: message in window is back to protocol layer and encodes;
Step 8: equipment message returns to client by Communication Layer.
A kind of agreement of described formulation, organize request msg with window mode, the steps include: in the time of exploitation server program, the instruction of definition CS_PANWIN sims window, wherein sims is client-requested terminal recognition number, and with CSV, window is the set of terminal, window size is terminal quantity, and window center is that the half of window size rounds.
Described server E-Packets to relative client according to the window of each client-requested, the steps include: that server sets up a Hash table, Key value is terminal recognition number (windows content), key assignments is Customer ID, in the time receiving terminal message, search Hash table, if exist key assignments to be just transmitted to client, do not exist and just not forward.
The order of described client send window is to server request data, the steps include: that client has all terminal objects of this user of preservation, window object, the terminal showing in real time on client screen is added in window object, user is by mouse rollovers screen, when mouse stops, the time of staying exceedes 3 seconds, judges that mouse current location terminal is whether in window, as in window, the terminal of mouse position is made as to window center, and window size is constant, simultaneously to the order of server send window.Directly send instruction to the terminal in window not for user, automatically this terminal is added in window, simultaneously to the order of server send window.Principle is that the terminal of the long-term dwell regions of mouse is exactly user interest point.
Server end of the present invention receives from the message of terminal equipment and the instruction of client and equipment message is transmitted to client, and instruction is issued to terminal equipment; Server is formulated a window command, comprises window size, windows content; Client thinks that according to user's mouse position this is user interest point, taking this position as window center, adds and deletes terminal in window according to algorithm; The instruction of client send window is to server; Server only forwards the interior terminal data of window to client after receiving instruction.
The foregoing is only preferred embodiments of the present invention, not in order to limit the present invention, all any amendments of making within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (2)
1. a method that reduces network traffics according to client mouse position, is characterized in that: described method comprises the steps:
Step 1: formulate a kind of agreement, organize request msg with window mode; A kind of agreement of described formulation, organize request msg with window mode, the steps include: in the time of exploitation server program, the instruction of definition CS_PANWIN sims window, wherein sims is client-requested terminal recognition number, and with CSV, window is the set of terminal, window size is terminal quantity, and window center is that the half of window size rounds;
Step 2: server E-Packets to relative client according to the window of each client-requested;
Step 3: the order of client send window is to server request data; The order of described client send window is to server request data, the steps include: all terminal objects of client storage client, window object, and the terminal showing in real time on client screen is added in window object, client is by mouse rollovers screen, after mouse stops, the time of staying exceedes 3 seconds, judges that the terminal of mouse current location is whether in window; If in window, the terminal of mouse position is made as to window center, window size is constant, simultaneously to the order of server send window; If not in window, client sends instruction directly to the not terminal in window, automatically this terminal is added in window, simultaneously to the order of server send window;
Which client's send window order is step 4: server first sends it to protocol layer be according to the additional parameter judgement wherein comprising;
Step 5: server finds this client to remove with front window, sets up new window;
Step 6: judge whether in the new window in step 5 when there being terminal to send message;
Step 7: message in window is back to protocol layer and encodes;
Step 8: equipment message returns to client by Communication Layer.
2. the method that reduces network traffics according to mouse position according to claim 1, is characterized in that:
Described server E-Packets to relative client according to the window of each client-requested, the steps include: that server sets up a Hash table, Key value is terminal recognition number or windows content, key assignments is Customer ID, in the time receiving terminal message, search Hash table, if exist key assignments to be just transmitted to client, do not exist and just not forward.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010235306.7A CN101917407B (en) | 2010-07-26 | 2010-07-26 | Method for reducing network flow according to mouse position |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010235306.7A CN101917407B (en) | 2010-07-26 | 2010-07-26 | Method for reducing network flow according to mouse position |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101917407A CN101917407A (en) | 2010-12-15 |
CN101917407B true CN101917407B (en) | 2014-12-10 |
Family
ID=43324793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010235306.7A Active CN101917407B (en) | 2010-07-26 | 2010-07-26 | Method for reducing network flow according to mouse position |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101917407B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291335A (en) * | 2008-06-13 | 2008-10-22 | 中兴通讯股份有限公司 | Method and apparatus for acquiring dynamic data of server based on browser |
CN101311924A (en) * | 2007-05-24 | 2008-11-26 | 中兴通讯股份有限公司 | Graphical user interface browsers system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080046218A1 (en) * | 2006-08-16 | 2008-02-21 | Microsoft Corporation | Visual summarization of activity data of a computing session |
-
2010
- 2010-07-26 CN CN201010235306.7A patent/CN101917407B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101311924A (en) * | 2007-05-24 | 2008-11-26 | 中兴通讯股份有限公司 | Graphical user interface browsers system and method |
CN101291335A (en) * | 2008-06-13 | 2008-10-22 | 中兴通讯股份有限公司 | Method and apparatus for acquiring dynamic data of server based on browser |
Also Published As
Publication number | Publication date |
---|---|
CN101917407A (en) | 2010-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102263825B (en) | Cloud-position-based hybrid cloud storage system data transmission method | |
US9774642B2 (en) | Method and device for pushing multimedia resource and display terminal | |
CN103297459B (en) | The synchronization system of application configuration information, access server, client and method | |
CN201383100Y (en) | Intelligent household remote control system | |
CN105898893B (en) | Full-duplex communication method for mobile terminal and Internet of things equipment | |
CN105163364A (en) | Intelligent device WiFi connection system and intelligent device WiFi connection method based on intelligent gateway | |
CN101859134A (en) | Intelligent home appliance remote control system and method | |
EP2854371A1 (en) | Method and device for achieving remote manipulation | |
CN104270302B (en) | The transmission system of online order and transfer approach | |
CN105991698A (en) | Method, system and device for mobile terminal remotely managing intelligent router file | |
CN105933435A (en) | Real-time query method based on Internet of Things | |
KR101375133B1 (en) | Mobile sns intergrated gateway | |
CN110933170A (en) | Multi-device linkage control method and device of ZigBee gateway and storage medium | |
CN103716230B (en) | Message sending method, device and server | |
CN110471391A (en) | A kind of intelligent building management method and system | |
CN104240472A (en) | Intelligent remote control system operating technology of mobile phone | |
CN103929732A (en) | Method for managing terminal peripheral and M2M gateway | |
CN113242317B (en) | Addressing route synchronization method and related device for alliance chain supervision system | |
CN106790283A (en) | A kind of Internet of things system framework and data communications method | |
CN104159212A (en) | Method and apparatus for binding terminal | |
CN103546487A (en) | Mobile office device based on IOS platform | |
CN101917407B (en) | Method for reducing network flow according to mouse position | |
CN103916489B (en) | The many IP of a kind of single domain name domain name analytic method and system | |
CN105391615A (en) | Instant messaging method, device and system based on business requirements | |
CN109391527A (en) | A kind of intelligent kitchen wireless self-networking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 461000 Wanli logistics park, South Outer Ring Road, Henan, Xuchang Patentee after: Ten thousand Li Yun industry incorporated company Address before: 461000 Xinghua Road 10, Henan, Xuchang Patentee before: Henan Wanli Transportation Co., Ltd. |
|
CP03 | Change of name, title or address |