CN101854367A - Method and system for server side to monitor client - Google Patents

Method and system for server side to monitor client Download PDF

Info

Publication number
CN101854367A
CN101854367A CN 201010207981 CN201010207981A CN101854367A CN 101854367 A CN101854367 A CN 101854367A CN 201010207981 CN201010207981 CN 201010207981 CN 201010207981 A CN201010207981 A CN 201010207981A CN 101854367 A CN101854367 A CN 101854367A
Authority
CN
China
Prior art keywords
application server
client
described application
server
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010207981
Other languages
Chinese (zh)
Inventor
李金巧
张川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Software Co Ltd
Original Assignee
Yonyou Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN 201010207981 priority Critical patent/CN101854367A/en
Publication of CN101854367A publication Critical patent/CN101854367A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a method for a server side to monitor a client, which comprises the following steps that: step 102, an application server establishes an interception service for intercepting a connection request of the client; step 104, when the interception service intercepts the connection request, the application server sends connection information to the client; step 106, the client confirms the connection information to ensure that a connection is established between the application server and the client; and step 108, the application server performs data communication with the client. The invention also provides a system for the server side to monitor the client. According to the technical scheme of the invention, the monitoring and the management on the client by the server side can be realized effectively.

Description

The method and system that is used for server side to monitor client
Technical field
The present invention relates to be used for of the monitoring management of C/S structural system, in particular to a kind of method and system that is used for server side to monitor client to terminal.
Background technology
Current large-scale chain retailer mostly is group enterprise greatly, need manage concentratedly logistics, cash flow, the information flow of shops.And the popular retail trade system in present market is divided into two kinds, and a kind of retail trade system for centralized management is the B/S structure; A kind of is the C/S structure, the user installation client software is done routine work at local system, then by data communication transfer of data is arrived server, wherein, in the C/S structure, S refers to application server, database server, and C refers to client, consider performance, efficient, also there is a small database in client, and the database server on backstage is the data basis of client database, and two data of database need synchronously.
Under the C/S structure, the user wishes just can monitor POS machine (client) operating position of each shops in group by application server, and can send message, instructs POS end, and the POS end gives a response according to instruction.For example, for retailer, price is highstrung thing, and in order to guarantee in time to be issued to shops after group's price modification, application server need send instructions to shops down, and the POS of shops end is done Data Update automatically according to instruction.
Therefore, how realizing server end to the active of client and effectively monitoring, is unusual important problem.
Summary of the invention
Technical problem to be solved by this invention is, provides a kind of server end of realizing to the active of client and effectively monitoring, to satisfy user's demand.
In view of this, the invention discloses a kind of method that is used for server side to monitor client, comprising: step 102, application server is set up and is intercepted service, is used to intercept the connection request of client; Step 104, described when intercepting service and listening to described connection request, described application server sends link information to described client; Step 106, described client is confirmed described link information, makes between described application server and the described client to connect; Step 108, described application server and described client are carried out data communication.
In technique scheme, preferably, described step 108 comprises: described application server sends instruction to described client, and described client is sent to described application server with the implementation status of described instruction.
In technique scheme, preferably, described step 108 also comprises: described client is uploaded to described application server with business datum, and obtains basic data by described application server from database server, wherein, described database server is connected to described application server.
In technique scheme, preferably, application server described in the described step 104 is sending described link information to the described client, client-side information is kept in the data pool, when described application server disconnected, described application server was deleted described client-side information from described data pool in described client.By data pool, can make monitoring become efficient and reasonable.
In technique scheme, preferably, described step 106 also comprises: described client does not receive described link information in the given time, then no longer sends described connection request to described application server.
In technique scheme, preferably, described application server is monitored a plurality of clients simultaneously.
The invention also discloses a kind of system that is used for server side to monitor client, comprising:
The connection request module is arranged in client, is used for sending connection request to application server; Intercept module, be arranged in described application server, be used to intercept described connection request; First connect to confirm module to be arranged in described application server, is used for when intercepting module and listening to described connection request, sending link information to described client described; Second connects the affirmation module, be arranged in described client, be used for confirming described link information, between described application server and described client, connect, wherein, after connecting between described application server and the described client, described application server and described client are carried out data communication.
In technique scheme, preferably, described application server and described client are carried out data communication and comprised: described application server sends instruction to described client, and described client is sent to described application server with the implementation status of described instruction.
In technique scheme, preferably, described application server and described client are carried out data communication and also comprised: described client is uploaded to described application server with business datum, and from database server, obtain basic data by described application server, wherein, described database server is connected to described application server.
In technique scheme, preferably, also comprise: the data pool module, be arranged in described application server, be used for connect confirming that described first module is sending described link information to the described client, client-side information is kept in the data pool module, and when described application server disconnected, described application server was deleted described client-side information from described data pool module in described client.By data pool, can make monitoring become efficient and reasonable.
In technique scheme, preferably, described connection request module connects described second confirms that module does not receive under the situation of described link information in the given time, no longer sends described connection request.
In technique scheme, preferably, described application server is monitored a plurality of clients simultaneously.
By technique scheme, can realize a kind of method and system that is used for server side to monitor client, effectively and on one's own initiative monitor client.
Description of drawings
Fig. 1 is the flow chart that is used for the method for server side to monitor client according to of the present invention;
Fig. 2 is the block diagram that is used for the system of server side to monitor client according to of the present invention;
Fig. 3 is the schematic flow sheet that is used for the method for server side to monitor client according to an embodiment of the invention;
Fig. 4 is the schematic diagram that is used for the system of server side to monitor client according to an embodiment of the invention.
Embodiment
Describe in detail according to embodiments of the invention below with reference to the accompanying drawings.
Fig. 1 is the flow chart that is used for the method for server side to monitor client according to of the present invention.
As shown in Figure 1, the invention provides a kind of method that is used for server side to monitor client, comprising: step 102, application server is set up and is intercepted service, is used to intercept the connection request of client; Step 104, described when intercepting service and listening to described connection request, described application server sends link information to described client; Step 106, described client is confirmed described link information, makes between described application server and the described client to connect; Step 108, described application server and described client are carried out data communication.
In technique scheme, described step 108 comprises: described application server sends instruction to described client, and described client is sent to described application server with the implementation status of described instruction.
In technique scheme, described step 108 also comprises: described client is uploaded to described application server with business datum, and from database server, obtain basic data by described application server, wherein, described database server is connected to described application server.
In technique scheme, application server described in the described step 104 is sending described link information to the described client, client-side information is kept in the data pool, when described application server disconnected, described application server was deleted described client-side information from described data pool in described client.By data pool, can make monitoring become efficient and reasonable.
In technique scheme, described step 106 also comprises: described client does not receive described link information in the given time, then no longer sends described connection request to described application server.
In technique scheme, described application server is monitored a plurality of clients simultaneously.
Fig. 2 is the block diagram that is used for the system of server side to monitor client according to of the present invention.
As shown in Figure 2, the present invention also provides a kind of system that is used for server side to monitor client, comprising:
Connection request module 202 is arranged in client, is used for sending connection request to application server; Intercept module 204, be arranged in described application server, be used to intercept described connection request; First connect to confirm module 206 to be arranged in described application server, is used for when intercepting module 204 and listening to described connection request, sending link information to described client described; Second connects affirmation module 208, be arranged in described client, be used for confirming described link information, between described application server and described client, connect, wherein, after connecting between described application server and the described client, described application server and described client are carried out data communication.
In technique scheme, described application server and described client are carried out data communication and comprised: described application server sends instruction to described client, and described client is sent to described application server with the implementation status of described instruction.
In technique scheme, described application server and described client are carried out data communication and also comprised: described client is uploaded to described application server with business datum, and from database server, obtain basic data by described application server, wherein, described database server is connected to described application server.
In technique scheme, also comprise: the data pool module, be arranged in described application server, be used for connect confirming that described first module 206 is sending described link information to the described client, client-side information is kept in the data pool module, when described application server disconnected, described application server was deleted described client-side information from described data pool module in described client.By data pool, can make monitoring become efficient and reasonable.
In technique scheme, described connection request module 202 connects described second confirms that module does not receive under the situation of described link information in the given time, no longer sends described connection request.
In technique scheme, described application server is monitored a plurality of clients simultaneously.
Fig. 3 is the schematic flow sheet that is used for the method for server side to monitor client according to an embodiment of the invention.
As shown in Figure 3, this programme has used the socket application technology based on TCP, Socket, and the socket that just is commonly called as operates in the end that both-way communication connects between two programs on the network, and it provides the interface channel of client and server end.Socket is bound to particular port, and the TCP layer just knows which application program is data offered like this.
Step 302 at the application server end, is set up ServerSocket;
Step 304 is set up and is intercepted service, and the service intercepted is in the state that connects of waiting for, monitoring state of network is intercepted and attempted being connected to the client Socket of this server in real time, carries out data communication thereby set up to connect, and the service of intercepting starts synchronously with application server;
Step 306 is in client, by IP address, data source and the open port of system parameter setting server;
Step 308, according to the parameter that is provided with, the Socket that sets up server connects, and is connection mode in client, sets up Socket simultaneously and monitors, and is responsible for the information that reception server sends;
Step 310, when client Socket initiates connection request, server end is intercepted the connection request that this client is obtained in service by Socket, wherein, set up the POS connection pool at server end, server end is put into POS information in the connection pool, and successful connection information is sent to client after obtaining the Socket connection of client;
Step 310, for raising the efficiency, server is realized and being connected and communicating by letter of a plurality of client Socket with multithreading, in case after receiving a connection, server end is set up a new thread, and link information is issued client;
Step 312, in case client has been confirmed this description, both sides just formally connect, promptly set up one and connect and to shake hands for twice, wherein, can set Socket in client and connect the stand-by period, if overtime still do not have a successful connection, then no longer connect, and if the Socket of client disconnects, then the POS information of correspondence is deleted from connection pool;
Step 314 in server end edit messages, instruction, and is specified the POS that sends, and can information be sent to corresponding POS end by the form that Socket connects with broadcasting;
Step 316 after the POS end is received message, promptly is presented at message the top of current interface in real time;
Step 318, the POS end is resolved instruction, according to the content of instruction, can obtain up-to-date data from database server, perhaps the up-to-date business datum of shops is uploaded to application server;
Wherein, the POS end is uploaded onto the server instruction execution result simultaneously, can check the concrete implementation status of instruction at server end; And the POS end can show in real time according to the socket state whether the POS machine is online, off-line.
Fig. 4 is the schematic diagram that is used for the system of server side to monitor client according to an embodiment of the invention.
As shown in Figure 4, the chain retail trade system of C/S structure, comprise application server 402, POS end 404 and database server 406, under the business model, the POS of shops end 404 is downloaded required basic data and is stored in this locality from database server 406, POS end 404 business datums with shops upload to application server 402 then, and wherein, there is independent database in POS end 404.
In the chain retail trade system of C/S structure, whether application server end 402 can be monitored the POS of shops end 404 in real time online; And each POS end 404 can be seen the network state of oneself: online or off-line.
Application server 402 can be held 404 transmission information to one or more POS, also can send instruction to one or more POS ends 404, and relevant processing is made in the instruction that POS end 404 bases issue.
In sum, the method and system of realizing according to technical scheme of the present invention can be at the application server end, to all POS of shops online coming into plain view whether, is convenient to understand shops's network condition; In order to enlarge market, to suppress the adversary and the various strategies formulated, can issue by instruction in the very first time, Data Update to shops, has been saved the time, saved cost; Condition execution instruction is done effective monitoring, reached the purpose of centralized management.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a method that is used for server side to monitor client is characterized in that, comprising:
Step 102, application server is set up and is intercepted service, is used to intercept the connection request of client;
Step 104, described when intercepting service and listening to described connection request, described application server sends link information to described client;
Step 106, described client is confirmed described link information, makes between described application server and the described client to connect;
Step 108, described application server and described client are carried out data communication.
2. method according to claim 1 is characterized in that, described step 108 comprises:
Described application server sends instruction to described client, and described client is sent to described application server with the implementation status of described instruction.
3. method according to claim 2 is characterized in that, described step 108 also comprises:
Described client is uploaded to described application server with business datum, and obtains basic data by described application server from database server,
Wherein, described database server is connected to described application server.
4. method according to claim 1 is characterized in that, application server described in the described step 104 is kept at client-side information in the data pool sending described link information to the described client,
When described application server disconnected, described application server was deleted described client-side information from described data pool in described client.
5. method according to claim 1 is characterized in that, described step 106 also comprises:
Described client does not receive described link information in the given time, then no longer sends described connection request to described application server.
6. according to each described method in the claim 1 to 5, it is characterized in that described application server is monitored a plurality of clients simultaneously.
7. a system that is used for server side to monitor client is characterized in that, comprising:
The connection request module is arranged in client, is used for sending connection request to application server;
Intercept module, be arranged in described application server, be used to intercept described connection request;
First connect to confirm module to be arranged in described application server, is used for when intercepting module and listening to described connection request, sending link information to described client described;
Second connects the affirmation module, is arranged in described client, be used between described application server and described client, connecting confirming described link information,
Wherein, after connecting between described application server and the described client, described application server and described client are carried out data communication.
8. system according to claim 7 is characterized in that, described application server and described client are carried out data communication and comprised:
Described application server sends instruction to described client, and described client is sent to described application server with the implementation status of described instruction.
9. system according to claim 8 is characterized in that, described application server and described client are carried out data communication and also comprised:
Described client is uploaded to described application server with business datum, and obtains basic data by described application server from database server,
Wherein, described database server is connected to described application server.
10. system according to claim 7 is characterized in that, also comprises:
The data pool module is arranged in described application server, is used for connect confirming that described first module is sending described link information to the described client, client-side information is kept in the data pool module,
When described application server disconnected, described application server was deleted described client-side information from described data pool module in described client.
11. system according to claim 7 is characterized in that, described connection request module connects described second confirms that module does not receive under the situation of described link information in the given time, no longer sends described connection request.
12., it is characterized in that described application server is monitored a plurality of clients simultaneously according to each described system in the claim 7 to 11.
CN 201010207981 2010-06-13 2010-06-13 Method and system for server side to monitor client Pending CN101854367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010207981 CN101854367A (en) 2010-06-13 2010-06-13 Method and system for server side to monitor client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010207981 CN101854367A (en) 2010-06-13 2010-06-13 Method and system for server side to monitor client

Publications (1)

Publication Number Publication Date
CN101854367A true CN101854367A (en) 2010-10-06

Family

ID=42805632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010207981 Pending CN101854367A (en) 2010-06-13 2010-06-13 Method and system for server side to monitor client

Country Status (1)

Country Link
CN (1) CN101854367A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546614A (en) * 2011-12-28 2012-07-04 畅捷通信息技术股份有限公司 Data mutual-conductance system and a data mutual-conductance method
CN102685023A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Method and system for achieving visual voicemail based on internet protocol (IP)
CN102916987A (en) * 2011-08-02 2013-02-06 天津中启创科技有限公司 Data acquisition and management system based on cloud computing framework
CN102916985A (en) * 2011-08-02 2013-02-06 天津中启创科技有限公司 Method for operating data acquisition and management system
CN104182284A (en) * 2014-02-24 2014-12-03 无锡天脉聚源传媒科技有限公司 Batch data exchange method and system
CN105719552A (en) * 2016-02-24 2016-06-29 国网福建省电力有限公司 Interactive simulation emergency exercise system
CN106331051A (en) * 2015-07-07 2017-01-11 北京神州泰岳软件股份有限公司 File transmission method and system, file receiving device and file transmission device
CN110033228A (en) * 2019-02-26 2019-07-19 杭州火小二科技有限公司 A kind of home office, chain client, server and system
CN113014693A (en) * 2021-03-31 2021-06-22 贵州航天电子科技有限公司 Multi-client temperature control combined server
WO2021128915A1 (en) * 2019-12-25 2021-07-01 苏宁云计算有限公司 Smart device monitoring method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574742A (en) * 2003-05-26 2005-02-02 精工爱普生株式会社 Jp2004348666
WO2005083947A1 (en) * 2004-02-26 2005-09-09 Novo Nordisk A/S A method and a system for safe pairing of wireless communication devices
CN1946078A (en) * 2006-10-27 2007-04-11 清华大学 High efficiency interactive transmission method for satllite network
CN101272402A (en) * 2008-05-14 2008-09-24 深圳市同洲电子股份有限公司 Method, system and device for data transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1574742A (en) * 2003-05-26 2005-02-02 精工爱普生株式会社 Jp2004348666
WO2005083947A1 (en) * 2004-02-26 2005-09-09 Novo Nordisk A/S A method and a system for safe pairing of wireless communication devices
CN1946078A (en) * 2006-10-27 2007-04-11 清华大学 High efficiency interactive transmission method for satllite network
CN101272402A (en) * 2008-05-14 2008-09-24 深圳市同洲电子股份有限公司 Method, system and device for data transmission

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685023A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Method and system for achieving visual voicemail based on internet protocol (IP)
CN102916987A (en) * 2011-08-02 2013-02-06 天津中启创科技有限公司 Data acquisition and management system based on cloud computing framework
CN102916985A (en) * 2011-08-02 2013-02-06 天津中启创科技有限公司 Method for operating data acquisition and management system
CN102546614A (en) * 2011-12-28 2012-07-04 畅捷通信息技术股份有限公司 Data mutual-conductance system and a data mutual-conductance method
CN104182284A (en) * 2014-02-24 2014-12-03 无锡天脉聚源传媒科技有限公司 Batch data exchange method and system
CN106331051A (en) * 2015-07-07 2017-01-11 北京神州泰岳软件股份有限公司 File transmission method and system, file receiving device and file transmission device
CN106331051B (en) * 2015-07-07 2019-09-13 北京神州泰岳软件股份有限公司 Document transmission method and system and reception file device send file device
CN105719552A (en) * 2016-02-24 2016-06-29 国网福建省电力有限公司 Interactive simulation emergency exercise system
CN110033228A (en) * 2019-02-26 2019-07-19 杭州火小二科技有限公司 A kind of home office, chain client, server and system
CN110033228B (en) * 2019-02-26 2021-11-09 杭州火小二科技有限公司 Chain enterprise main store client, server and system
WO2021128915A1 (en) * 2019-12-25 2021-07-01 苏宁云计算有限公司 Smart device monitoring method and apparatus
CN113014693A (en) * 2021-03-31 2021-06-22 贵州航天电子科技有限公司 Multi-client temperature control combined server
CN113014693B (en) * 2021-03-31 2023-05-26 贵州航天电子科技有限公司 Multi-client temperature control combined server

Similar Documents

Publication Publication Date Title
CN101854367A (en) Method and system for server side to monitor client
CN102333128B (en) Active transmission method for real-time Web data
TWI375155B (en) Message forwarding backup manager in a distributed server system
CN102209047B (en) Instant messaging system and method for realizing information sharing
CN106713497A (en) Server-side message push device and method and message push system
CN108390950A (en) A kind of information push method, device and equipment
WO2015078341A1 (en) Method and device for remotely updating application program
CN102647295B (en) A kind of method of equipment control and device
CN106453541A (en) Data synchronization method, server and data synchronization system
CN103716371A (en) Web real-time data active pushing method
CN111049930A (en) IOT agent layer and communication method
CN102957623A (en) Maintenance method and equipment of neighborhood of border gate protocol
CN104601545A (en) Group based organization structure management and account management method for enterprise mobile office system
JP5517463B2 (en) Thin client system, management server and thin client terminal
CN107071067B (en) Cgo-based high-performance stock market access system and method
CN116319732A (en) Message queue centralized configuration management system and method based on RabbitMQ
CN102348198A (en) Wireless terminal and remote parameter setting method thereof
CN103391303B (en) Service fault noticing method and server using same
CN102209051B (en) Instant messaging system and method for realizing user information sharing
CN102209050B (en) Instant messaging system and method for realizing user information sharing
CN102360473A (en) Data sharing method for land-saving power dispatching automation systems
CN102209049B (en) Instant messaging system and method for user information processing
CN103297625B (en) The CTI middleware system of call center and virtual method
CN102209048B (en) Instant messaging system and method for realizing information sharing for users
CN103259564A (en) System and method for calling of wired network fault

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101006