CN101938470B - Client terminal software updating system and method - Google Patents

Client terminal software updating system and method Download PDF

Info

Publication number
CN101938470B
CN101938470B CN201010252138.2A CN201010252138A CN101938470B CN 101938470 B CN101938470 B CN 101938470B CN 201010252138 A CN201010252138 A CN 201010252138A CN 101938470 B CN101938470 B CN 101938470B
Authority
CN
China
Prior art keywords
client
server end
port
control unit
stream
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.)
Expired - Fee Related
Application number
CN201010252138.2A
Other languages
Chinese (zh)
Other versions
CN101938470A (en
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.)
Xiamen Shunhe Da Internet Co., Ltd.
Original Assignee
Xiamen Shunheda 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 Xiamen Shunheda Software Co Ltd filed Critical Xiamen Shunheda Software Co Ltd
Priority to CN201010252138.2A priority Critical patent/CN101938470B/en
Publication of CN101938470A publication Critical patent/CN101938470A/en
Application granted granted Critical
Publication of CN101938470B publication Critical patent/CN101938470B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Invention discloses a kind of client terminal software updating system and method, described method comprises the steps: to arrange server end upgraded module at server end, server end upgrade control module arranges a server end upgrading control unit, server end upgrading control unit specifies Single port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading; Arrange a client upgraded module in client, client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port, and this port is identical with the port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder.The present invention can ensure that client software and server end are definitely consistent, ensures that strange land client obtains edition upgrading automatically.

Description

Client terminal software updating system and method
Technical field
The invention belongs to technical field of the computer network, relate to a kind of software update system, particularly relate to a kind of client terminal software updating system; Meanwhile, the invention still further relates to a kind of client terminal software updating method.
Background technology
Along with the development of software multi-user and networking, client terminal software updating has become a large problem.Artificial upgrading can not meet practical application needs, as long as because omit a client, the lighter is that malicious storehouse does not upgrade, and severe one is then cause data corruption because data algorithm is inconsistent.The client of local area network also upgrades comparatively easily, but just has difficulties to far away from client upgrading all over the world; Even if go upgrading by air, the time also necessarily requiring " simultaneously " to upgrade absolute consensus.
Nowadays good method is not also had to realize: no matter to be local or strange land, as long as client connects upper server end, with regard to inspection software version, to be distributed to client once the inconsistent server file that just allows of version.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of client terminal software updating system, can ensure that client software and server end are definitely consistent.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of client terminal software updating system, described system comprises:
Server end upgraded module, is arranged at server end; Described server end upgrade control module arranges a TServerSocket, and the updatingfile list that appointment Single port Port, cache size are 1KB, initial line number of passes is 0, named data stream stream reads is update.ini; The TServerSocket of server end according to update.ini each file according to data flow stream mode, be ready to multithreading;
Client upgraded module, is arranged at client; Described client upgraded module arranges a TCIientSocket, and its port Port specified is identical with the port Port that described server end is specified, and creates the stream stream thread that reads and writes data; When on client's side link during server end, create read-write thread, associated documents can be read stored in specified folder.
A kind of client terminal software updating method, described method comprises the steps:
The updatingfile list of step 1, place a TServerSocket at server end, specify a Port, cache size is 1KB, initial line number of passes is 0, specifying strem to read is update.ini;
Step 2, place a TCIientSocket in client, specify identical Port, create read-write stream thread;
Step 3, server end TServerSocket according to update.ini each file according to stream mode, be ready to multithreading; When on client's side link during server end, create read-write thread, associated documents can be read stored in specified folder;
Step 4, owing to being multithreading, multiple client can normally be upgraded simultaneously; Transmit after normally completing, close client and upgrade alternate file; If transmit abnormal, then forced termination client is run.
A kind of client terminal software updating system, described system comprises:
Server end upgraded module, is arranged at server end; Described server end upgrade control module arranges a server end upgrading control unit, specifies Single port Port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading;
Client upgraded module, is arranged at client; Described client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port Port, and this port Port is identical with the port Port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder.
A kind of client terminal software updating method, described method comprises the steps:
Arrange a server end upgraded module at server end, described server end upgrade control module arranges a server end upgrading control unit, and server end upgrading control unit specifies Single port Port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading;
Arrange a client upgraded module in client, described client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port Port, and this port Port is identical with the port Port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder.
Beneficial effect of the present invention is: the client terminal software updating system and method that the present invention proposes, and can ensure that client software and server end are definitely consistent, ensure that far away strange land client obtains edition upgrading automatically.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of client terminal software updating system of the present invention.
Fig. 2 is the flow chart of client terminal software updating method of the present invention.
Embodiment
The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.
Embodiment one
Refer to Fig. 1, present invention is disclosed a kind of client terminal software updating system, described system comprises server end upgraded module, client upgraded module.
Server end upgraded module is arranged at server end; Described server end upgrade control module arranges a server end upgrading control unit, specifies Single port Port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading.
Client upgraded module is arranged at client; Described client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port Port, and this port Port is identical with the port Port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder.
Be described above client terminal software updating system of the present invention, the present invention is while announcement said system, and also disclose a kind of client terminal software updating method, described method comprises the steps:
Steps A, arrange a server end upgraded module at server end, described server end upgrade control module arranges a server end upgrading control unit, and server end upgrading control unit specifies Single port Port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading.
Step B, arrange a client upgraded module in client, described client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port Port, and this port Port is identical with the port Port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder.
In sum, the client terminal software updating system and method that the present invention proposes, can ensure that client software and server end are definitely consistent, ensure that far away strange land client obtains edition upgrading automatically.
Embodiment two
The present embodiment discloses a kind of client terminal software updating system, and described system comprises: server end upgraded module, client upgraded module.
Server end upgraded module is arranged at server end; Described server end upgrade control module arranges a TServerSocket, and the updatingfile list that appointment Single port Port, cache size are 1KB, initial line number of passes is 0, named data stream stream reads is update.ini; The TServerSocket of server end according to update.ini each file according to data flow stream mode, be ready to multithreading;
Client upgraded module is arranged at client; Described client upgraded module arranges a TCIientSocket, and its port Port specified is identical with the port Port that described server end is specified, and creates the stream stream thread that reads and writes data; When on client's side link during server end, create read-write thread, associated documents can be read stored in specified folder.
The present embodiment discloses the upgrade method of said system simultaneously, refers to Fig. 2, and described upgrade method comprises the steps:
The updatingfile list of step 1, place a TServerSocket at server end, specify a Port, cache size is 1KB, initial line number of passes is 0, specifying strem to read is update.ini.
Step 2, place a TCIientSocket in client, specify identical Port, create read-write stream thread.
Step 3, server end TServerSocket according to update.ini each file according to stream mode, be ready to multithreading.When on client's side link during server end, create read-write thread, associated documents can be read stored in specified folder.
Step 4, owing to being multithreading, multiple client can normally be upgraded simultaneously.Transmit after normally completing, close client and upgrade alternate file; If transmit abnormal, then forced termination client is run.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or substantive characteristics, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.

Claims (4)

1. a client terminal software updating system, is characterized in that, described system comprises:
Server end upgraded module, is arranged at server end; Described server end upgrade control module arranges a TServerSocket, and the updatingfile list that appointment Single port Port, cache size are 1KB, initial line number of passes is 0, named data stream stream reads is update.ini; The TServerSocket of server end according to update.ini each file according to data flow stream mode, be ready to multithreading;
Client upgraded module, is arranged at client; Described client upgraded module arranges a TClientSocket, and its port Port specified is identical with the port Port that described server end is specified, and creates the stream stream thread that reads and writes data; When on client's side link during server end, create read-write thread, associated documents can be read stored in specified folder; Server end adopts multithreading, and multiple client can normally be upgraded simultaneously; Transmit after normally completing, close client and upgrade alternate file; If transmit abnormal, then forced termination client is run.
2. a client terminal software updating method, is characterized in that, described method comprises the steps:
The updatingfile list of step 1, place a TServerSocket at server end, specify a Port, cache size is 1KB, initial line number of passes is 0, specifying strem to read is update.ini;
Step 2, place a TClientSocket in client, specify identical Port, create read-write stream thread;
Step 3, server end TServerSocket according to update.ini each file according to stream mode, be ready to multithreading; When on client's side link during server end, create read-write thread, associated documents can be read stored in specified folder;
Step 4, owing to being multithreading, multiple client can normally be upgraded simultaneously; Transmit after normally completing, close client and upgrade alternate file; If transmit abnormal, then forced termination client is run.
3. a client terminal software updating system, is characterized in that, described system comprises:
Server end upgraded module, is arranged at server end; Described server end upgrade control module arranges a server end upgrading control unit, specifies Single port Port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading;
Client upgraded module, is arranged at client; Described client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port Port, and this port Port is identical with the port Port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder; Server end adopts multithreading, and multiple client can normally be upgraded simultaneously; Transmit after normally completing, close client and upgrade alternate file; If transmit abnormal, then forced termination client is run.
4. a client terminal software updating method, is characterized in that, described method comprises the steps:
Arrange a server end upgraded module at server end, described server end upgrade control module arranges a server end upgrading control unit, and server end upgrading control unit specifies Single port Port, specifies updatingfile list; The server updating control unit of server end according to described updatingfile list each file according to data flow stream mode, be ready to multithreading;
Arrange a client upgraded module in client, described client upgraded module arranges a client upgrading control unit, and client upgrading control unit specifies Single port Port, and this port Port is identical with the port Port that described server end is specified; When on client's side link during server end, create the stream stream thread that reads and writes data, associated documents can be read stored in specified folder; Server end adopts multithreading, and multiple client can normally be upgraded simultaneously; Transmit after normally completing, close client and upgrade alternate file; If transmit abnormal, then forced termination client is run.
CN201010252138.2A 2010-08-12 2010-08-12 Client terminal software updating system and method Expired - Fee Related CN101938470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010252138.2A CN101938470B (en) 2010-08-12 2010-08-12 Client terminal software updating system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010252138.2A CN101938470B (en) 2010-08-12 2010-08-12 Client terminal software updating system and method

Publications (2)

Publication Number Publication Date
CN101938470A CN101938470A (en) 2011-01-05
CN101938470B true CN101938470B (en) 2015-08-26

Family

ID=43391601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010252138.2A Expired - Fee Related CN101938470B (en) 2010-08-12 2010-08-12 Client terminal software updating system and method

Country Status (1)

Country Link
CN (1) CN101938470B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105938434A (en) * 2016-03-24 2016-09-14 杭州迪普科技有限公司 Method and device for upgrading operation system
CN109766131B (en) * 2017-11-06 2022-04-01 上海宝信软件股份有限公司 System and method for realizing intelligent automatic software upgrading based on multithreading technology
CN109104469A (en) * 2018-07-25 2018-12-28 山东浪潮商用系统有限公司 A kind of Universal Remote upgrade-system and method
CN109828768A (en) * 2018-12-21 2019-05-31 福建新大陆支付技术有限公司 A kind of management method and system of software patch
CN111782236A (en) * 2020-05-11 2020-10-16 广州朗国电子科技有限公司 System software upgrading method and device, storage medium and all-in-one machine equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661557A (en) * 2004-02-27 2005-08-31 联想(北京)有限公司 Method for upgrading data
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN101222367A (en) * 2008-01-28 2008-07-16 中兴通讯股份有限公司 Method and network guard system used for cluster network element updating version file
CN101727338A (en) * 2008-08-15 2010-06-09 北京北大众志微系统科技有限责任公司 Parallel upgrade method and application system for network computer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661557A (en) * 2004-02-27 2005-08-31 联想(北京)有限公司 Method for upgrading data
CN101042651A (en) * 2006-03-22 2007-09-26 华为技术有限公司 Software updating method and system thereof
CN101222367A (en) * 2008-01-28 2008-07-16 中兴通讯股份有限公司 Method and network guard system used for cluster network element updating version file
CN101727338A (en) * 2008-08-15 2010-06-09 北京北大众志微系统科技有限责任公司 Parallel upgrade method and application system for network computer

Also Published As

Publication number Publication date
CN101938470A (en) 2011-01-05

Similar Documents

Publication Publication Date Title
CN101938470B (en) Client terminal software updating system and method
US10778751B2 (en) Method of micro-service transformation for power trading functions
CN102779191B (en) A kind of system that realizes of MySQL database smooth upgrade and implementation method
CN103177077B (en) The storage of a kind of APK file and output intent
US20160364323A1 (en) Automatic remote execution of an application
CN103412780A (en) System, device and method for upgrading distributed file system
CN102541923B (en) Database read-write separating method and device
CN100535863C (en) Method and apparatus for realizing configuring affair
CN103019941A (en) Program debugging method and device
CN105100144A (en) Application updating method and device
CN102207878A (en) Method for upgrading internetwork television difference
CN101800840B (en) Set top box upgrading method
CN102378154A (en) Method and system for upgrading product firmware by wireless network
CN104268097B (en) A kind of metadata processing method and system
CN104881444A (en) Method and system for updating caching server in website
CN105739964A (en) Implementation method for supporting version compatibility control based on Android platform
CN102196308A (en) Digital-television-based multi-hardware interface compatible driving system
CN101510948A (en) Method for updating set-top box software
CN201898554U (en) Self-copying and data-recovering mobile phone
CN105843631B (en) A method of improving system firmware burn writing speed
CN102375749A (en) Method for quickly downloading and updating firmware by using I2C (Inter-Integrated Circuit) bus
CN102143222A (en) Application resource downloading adaptation method and downloading adaptation device
CN107844315A (en) The strategy that app themes skin upgrades in a kind of Android
CN109656838A (en) Processor system and its memory control methods
CN102916993B (en) A kind of network hard disc data-updating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 361008 Fujian province Xiamen software park two sunrise Road No. 22 Room 102, unit F17

Applicant after: Xiamen Shunheda Software Co., Ltd.

Address before: 4, building 363200, Zhangpu science and technology building, Zhangzhou, Fujian

Applicant before: Zhangzhou Shunheda Software Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: ZHANGZHOU CITY SHUNHEDA SOFTWARE CO., LTD. TO: XIAMEN SHUNHEDA SOFTWARE CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190313

Address after: 361008 Area 18, Unit 303, No. 32 Guanri Road, Second Phase of Xiamen Software Park, Fujian Province

Patentee after: Xiamen Shunhe Da Internet Co., Ltd.

Address before: Unit F17, Room 102, 22 Guanri Road, Phase II, Xiamen Software Park, Fujian Province

Patentee before: Xiamen Shunheda Software Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150826

Termination date: 20200812