CN111221547A - Client updating progress monitoring method, storage medium, electronic device and system - Google Patents

Client updating progress monitoring method, storage medium, electronic device and system Download PDF

Info

Publication number
CN111221547A
CN111221547A CN201811408685.8A CN201811408685A CN111221547A CN 111221547 A CN111221547 A CN 111221547A CN 201811408685 A CN201811408685 A CN 201811408685A CN 111221547 A CN111221547 A CN 111221547A
Authority
CN
China
Prior art keywords
updating
client
program
progress information
update
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.)
Granted
Application number
CN201811408685.8A
Other languages
Chinese (zh)
Other versions
CN111221547B (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.)
Yiwu Construction Investment Group Co ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811408685.8A priority Critical patent/CN111221547B/en
Publication of CN111221547A publication Critical patent/CN111221547A/en
Application granted granted Critical
Publication of CN111221547B publication Critical patent/CN111221547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The invention discloses a client updating progress monitoring method, a storage medium, electronic equipment and a system, which relate to the technical field of client updating and comprise the following steps: creating a custom named pipe service control, wherein the custom named pipe service control is used for creating a custom named pipe, and the custom named pipe is used for communicating between an updating program and a client; when the updating progress changes, the updating program calls a callback function to acquire updating progress information, and is connected with the client according to the corresponding custom named pipeline, if the connection is successful, the updating progress information is sent to the client, otherwise, the updating progress information is not sent; and when the client continuously receives the updating progress information, the updating program continuously works until the updating is finished, and when the client continuously does not receive the updating progress information, the updating operation is terminated. The communication channel is established between the updating program and the client based on the user-defined named pipeline service control, and the updating progress and the updating state can be mastered.

Description

Client updating progress monitoring method, storage medium, electronic device and system
Technical Field
The invention relates to the technical field of client updating, in particular to a client updating progress monitoring method, a storage medium, electronic equipment and a system.
Background
The current client software updating modes include two types: namely display updates and implicit updates. An updating interface is popped up when updating is displayed, a user can see information such as updating progress and updating content, and a new version live client program is automatically started after the updating is finished; implicit updating, namely background updating, cannot see an updating interface, but starts an old version object program, does not affect a user to use a client, and can be normally used while updating.
At present, an implicit updating mode is more commonly used, but in an implicit updating process, a user cannot perceive updated related information, and can only see the modified content of a new version after the live client is restarted.
Therefore, a client update progress monitoring method is needed, which can help a user to know the update progress and update status of the user when the client is updated.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a client updating progress monitoring method, which is characterized in that a communication channel is established between an updating program and a client based on a user-defined named pipeline service control, so that the updating progress of the client is monitored, and the updating progress and the updating state of the client can be mastered when the client is updated.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for monitoring an update progress of a client, including the following steps:
creating a custom named pipe service control for creating a custom named pipe for communicating between an update program and a client;
when the updating progress of the updating program changes, the updating program calls a callback function to acquire updating progress information, and is connected with the client according to the corresponding custom named pipeline, if the connection is successful, the updating progress information is sent to the client, otherwise, the updating progress information is not sent;
and when the client continuously receives the updating progress information, the updating program continues to work until the updating is finished, and when the client continuously does not receive the updating progress information, the updating program is suspended and the updating operation is terminated.
The custom named pipe service control is configured in the live broadcast room client.
On the basis of the technical scheme, the user-defined named pipeline service control follows a hot plug working mechanism.
On the basis of the technical scheme, the custom named pipeline is in a non-blocking mode.
On the basis of the technical scheme, the user-defined named pipeline comprises a first monitoring end and a second monitoring end;
the first monitoring end is used for monitoring a shutdown signal sent by a user when the client is closed;
and the second monitoring end is used for monitoring the connection condition of the user-defined named pipeline and the client.
On the basis of the technical scheme, when the user broadcasts the client of the live broadcast room, the first monitoring end sends an instruction to the updating program when monitoring the shutdown signal, and the updating program finishes the updating process, so that the client of the live broadcast room is normally closed.
On the basis of the technical scheme, when the client side is normally connected with the user-defined named pipeline, the second monitoring end sends a normal connection signal, and after receiving the normal connection signal, the updating program sends updating progress information to the client side.
In a second aspect, the present invention further provides a storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the method for monitoring the client update progress according to the first aspect.
In a third aspect, the present invention further provides an electronic device, including a memory and a processor, where the memory stores a computer program running on the processor, and the processor implements the method for monitoring the client update progress according to the first aspect when executing the computer program.
In a fourth aspect, the present invention further provides a client update progress monitoring system, which includes:
a custom named pipe service control for creating a custom named pipe for communicating between an update program and a client;
the updating progress information sending unit is used for calling a callback function to acquire updating progress information by the updating program when the updating progress of the updating program changes, connecting the updating program with the client according to the corresponding custom named pipeline, sending the updating progress information to the client if the connection is successful, and not sending the updating progress information if the connection is not successful;
and the updating monitoring unit is used for continuing to work until the updating is finished when the client continuously receives the updating progress information, suspending the updating program and terminating the updating operation when the client continuously does not receive the updating progress information.
Compared with the prior art, the invention has the advantages that:
the communication channel is established between the updating program and the client based on the user-defined named pipeline service control, so that the updating progress of the client is monitored, and the updating progress and the updating state of the client can be mastered when the client is updated.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for monitoring a client update progress according to an embodiment of the present invention;
fig. 2 is a block diagram of a client update progress monitoring system according to a second embodiment of the present invention;
fig. 3 is a block diagram of a structure of a client update progress monitoring electronic device according to a fourth embodiment of the present invention;
in the figure: 1. self-defining a named pipeline service control; 2. an update progress information transmitting unit; 3. and updating the monitoring unit.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The embodiment of the invention provides a client updating progress monitoring method, a storage medium, electronic equipment and a system.
In order to achieve the technical effects, the general idea of the application is as follows:
a client update progress monitoring method comprises the following steps:
s1, creating a custom named pipe service control, wherein the custom named pipe service control is used for creating a custom named pipe, and the custom named pipe is used for communication between the updating program and the client;
s2, when the update progress of the update program changes, the update program calls a callback function to acquire update progress information, and is connected with the client according to the corresponding custom named pipeline, if the connection is successful, the update progress information is sent to the client, otherwise, the update progress information is not sent;
and S3, when the client continuously receives the updating progress information, the updating program continues to work until the updating is finished, and when the client continuously does not receive the updating progress information, the updating program is suspended and the updating operation is terminated.
Example one
Referring to fig. 1, an embodiment of the present invention provides a client update progress monitoring method, including the following steps:
s1, creating a custom named pipe service control, wherein the custom named pipe service control is used for creating a custom named pipe, and the custom named pipe is used for communication between the updating program and the client;
s2, when the update progress of the update program changes, the update program calls a callback function to acquire update progress information, and is connected with the client according to the corresponding custom named pipeline, if the connection is successful, the update progress information is sent to the client, otherwise, the update progress information is not sent;
and S3, when the client continuously receives the updating progress information, the updating program continues to work until the updating is finished, and when the client continuously does not receive the updating progress information, the updating program is suspended and the updating operation is terminated.
According to the embodiment of the invention, a communication channel is established between the updating program and the client based on the user-defined named pipeline service control, so that the updating progress of the client is monitored, and the updating progress and the updating state of the client can be mastered when the client is updated.
In the embodiment of the present invention, step S1 is to create a plug-in, where the plug-in is specifically a custom named pipe service control, and is used to create a custom named pipe, where the custom named pipe is used to communicate between an update program and a client, and the custom named pipe is used as a communication channel for knowing an update progress;
during specific operation, the user-defined named pipeline service control is a dynamic library, the user-defined named pipeline service control has two interfaces, namely a load interface and an unload interface, when an updating program is initialized, the user-defined named pipeline service control is loaded under a folder by installing a directory according to the name of the folder where the user-defined named pipeline service control provided by an updating configuration file is located, after the loading is completed, the updating program initializes the user-defined named pipeline service control according to the load interface and sets an updating callback function; when the updating program is finished, calling an unload interface, and unloading the user-defined named pipeline service control;
the callback function is used for calling back the update progress information of the current update program, so that the current stage (such as checking, downloading, copying, completing and the like) of the update program, the progress of the current stage and other information are known;
the callback function can be a callback function of the system, when the updating progress is changed, the updating program calls the callback function and calls the updating progress of the updating program, the custom named pipe service control synchronizes the updating progress information to the client by using the custom named pipe, and if the custom named pipe service control successfully connects the updating program with the client, the updating progress information is sent to the client through the custom named pipe; otherwise, the transmission is not carried out, and the transmission is considered to fail;
it should be noted that the callback function is a function called by a function pointer, and if a pointer (address) of a function is passed as a parameter to another function, when the pointer is used to call the function to which the pointer points, the callback function is called as a callback function, and the callback function is not directly called by an implementation side of the function, but called by another side when a specific event or condition occurs, and is used to respond to the event or condition.
In step S2, when the update progress of the update program changes, the update program calls a callback function to obtain update progress information, and connects with the client according to the corresponding custom-named pipe, if the connection is successful, the update progress information is sent to the client, otherwise, the update progress information is not sent;
the callback function is mainly used for calling back the updating progress information of the current updating program;
during specific operation, when the updating progress is changed, the updating program calls the callback function, the custom named pipeline service control synchronizes the updating progress information to the client by using the custom named pipeline, and if the custom named pipeline service control successfully connects the updating program with the client, the updating progress information is sent to the client through the custom named pipeline; otherwise, the transmission is not carried out, and the transmission is considered to fail.
The program of the callback function may specifically be the following code:
Figure BDA0001877989360000061
Figure BDA0001877989360000071
the program is a specific program code of the callback function, and updating progress information is finally obtained;
it should be noted that "fileupdatecallbacinfo;
typedef void (| FILE _ UPDATE _ CALLBACK) (const fileupdatecalllbackinfo |, param void |); "is the definition declaration part of the CALLBACK function, i.e. the name of the CALLBACK function is" FILE _ UPDATE _ CALLBACK ", and the CALLBACK function contains 2 parameters, i.e. fileupdatecallback info and void, respectively, and param and opaque are pointers;
wherein, wchar _ t is a character type of C/C + + and is an extended storage mode, the wchar _ t type is mainly used in the realization of international programs, but is not equivalent to uni coding, and the uni coded characters are generally stored in the wchar _ t type;
a macro in intN _ t format refers to an integer with N bits, e.g., int16_ t refers to a signed integer with 16 bits, a macro in uintN _ t format specifies an unsigned integer with N bits, e.g., uint32_ t specifies an unsigned integer with 32 bits, and macros with N values equal to 8, 16, 32, and 64 can be found in all contexts that provide integers of these widths;
int64 is a signed 64-bit integer data type, equivalent to long long in C + +, long in C #, and bigitt in SQLServer, representing integers with values between-2 ^63(-9, 223, 372, 036, 854, 775, 808) to 2^63-1(+9, 223, 372, 036, 854, 775, 807);
typedef is a simple alias used in computer programming languages to define complex declarations, which differs somewhat from macro definitions. It is a key of storage class, and can not appear in the same expression with auto, extra, mutable, static, register and other keys.
It should be noted that the custom named pipe has a server, the server is located in the client, and when the update program is connected to the client according to the corresponding custom named pipe, specifically, the update program is connected to the server first and then to the client, so as to perform communication.
When the updating progress is changed, the updating program can call the callback function, the updating program has a plurality of sub updating programs, each sub updating program is responsible for part of updating tasks, the updating program is improved in advance during actual operation, namely, each sub updating program is provided with a sub updating program tag file corresponding to each sub updating program, after the sub updating program completes the updating task of the sub updating program, the updating program sends the sub updating program tag file to the custom named pipe service control, the custom named pipe service control can indicate that the sub updating program completes the updating task of the sub updating program when receiving the sub updating program tag file on one hand, and can serve as an instruction signal for calling the callback function on the other hand, and the callback work is started.
It should be noted that a Client (Client), also called as a user end, refers to a program corresponding to a server and providing local services for the Client, except some application programs which are only run locally, and is generally installed on a common Client, and needs to run in cooperation with the server, after the internet is developed, the more common user end includes a web browser used by the world wide web, an email Client when receiving and sending emails, Client software for instant messaging, and the like, and for this kind of application programs, corresponding servers and service programs in the network are needed to provide corresponding services, such as database services, email services, and the like, so that a specific communication connection needs to be established between the Client and the server end to ensure the normal running of the application programs.
In the embodiment of the invention, the custom named pipe service control is configured in the live broadcast room client.
In the embodiment of the invention, the user-defined named pipeline service control follows a hot plug working mechanism, and the user-defined named pipeline service control does not influence the updating program and the normal work of the client when working;
hot-plugging (Hot-plugging or Hot Swap), i.e. Hot plugging, allows a user to take out and replace damaged components such as a hard disk, a power supply or a board card without shutting down the system or cutting off the power supply, thereby improving the timely recovery capability, expansibility, flexibility and the like of the system to disasters, for example, some high-end application-oriented disk mirroring systems can provide the Hot-plugging function of the disk.
In the embodiment of the invention, the named pipe is defined in a non-blocking mode;
it should be noted that the non-blocking mode here refers to that the communication between the Server and the Client is in an asynchronous state by using a message mechanism of a socket event;
if the update program is not connected with the client all the time, namely the server side which designates the user-defined named pipeline is not connected all the time, at this time, the update thread of the live broadcast client side is suspended, at this time, the client side is closed, the update thread of the live broadcast client side is not normally finished, the live broadcast client side is closed abnormally, and the condition that the client side is closed abnormally cannot occur by adopting a non-blocking mode.
In the embodiment of the invention, the custom named pipeline comprises a first monitoring end and a second monitoring end;
the first monitoring end is used for monitoring a shutdown signal sent by a user when the client is closed;
the second monitoring end is used for monitoring the connection condition of the user-defined named pipeline and the client;
when the client is closed, the first monitoring end is triggered, the updating program normally ends the updating thread after receiving the shutdown signal, and the client can normally exit;
when the client is connected with the user-defined named pipeline, the second monitoring end is triggered, so that preparation is made for obtaining the updating progress information.
In the embodiment of the invention, when a user broadcasts the client of the live broadcast room and the first monitoring end monitors the shutdown signal, the first monitoring end sends an instruction to the updating program, and the updating program finishes the updating process, so that the client of the live broadcast room is normally closed.
In the embodiment of the invention, when the client side is normally connected with the user-defined named pipeline, the second monitoring end sends a normal connection signal, and the updating program sends updating progress information to the client side after receiving the normal connection signal.
Based on the same inventive concept, the present application provides an embodiment of a client update progress monitoring system corresponding to the embodiment, which is detailed in embodiment two
Example two
As shown in fig. 2, a second embodiment of the present invention provides a client update progress monitoring system, which includes:
the custom named pipe service control 1 is used for creating a custom named pipe, and the custom named pipe is used for communicating between an updating program and a client;
the update progress information sending unit 2 is used for calling a callback function by the update program to acquire update progress information when the update progress of the update program changes, connecting the update progress information with the client according to the corresponding custom named pipeline, and sending the update progress information to the client if the connection is successful, or not sending the update progress information if the connection is not successful;
and the updating monitoring unit 3 is used for continuing to work until the updating is finished when the client continuously receives the updating progress information, suspending the updating program and terminating the updating operation when the client continuously does not receive the updating progress information.
According to the embodiment of the invention, a communication channel is established between the updating program and the client based on the user-defined named pipe service control 1, so that the updating progress of the client is monitored, and the updating progress and the updating state of the client can be mastered when the client is updated.
In the embodiment of the invention, firstly, a plug-in is created, wherein the plug-in is specifically a custom named pipeline service control 1 which is used for creating a custom named pipeline, the custom named pipeline is used for communicating between an updating program and a client, and the custom named pipeline is used as a communication channel for knowing the updating progress;
during specific operation, the custom named pipeline service control 1 is a dynamic library, the custom named pipeline service control 1 is provided with two interfaces, namely a load interface and an unload interface, when an updating program is initialized, the custom named pipeline service control 1 is loaded under a folder according to the name of the folder where the custom named pipeline service control 1 provided by an updating configuration file is located, after the loading is completed, the updating program initializes the custom named pipeline service control 1 according to the load interface, and an updating callback function is set; when the updating program is finished, calling an unload interface, and unloading the user-defined named pipeline service control 1;
the callback function is used for calling back the update progress information of the current update program, so that the current stage (such as checking, downloading, copying, completing and the like) of the update program, the progress of the current stage and other information can be known.
When the update progress information sending unit 2 works and the update progress of the update program changes, the update program calls a callback function to obtain update progress information, and is connected with the client according to the corresponding custom named pipeline, if the connection is successful, the update progress information is sent to the client, otherwise, the update progress information is not sent;
the callback function is mainly used for calling back the updating progress information of the current updating program;
during specific operation, when the updating progress is changed, the updating program calls the callback function, and further plans to synchronize the updating progress information to the client, and if the custom-named pipeline service control 1 successfully connects the updating program with the client, the updating progress information is sent to the client through the custom-named pipeline; otherwise, the transmission is not carried out, and the transmission is considered to fail.
It should be noted that the custom named pipe has a server, the server is located in the client, and when the update program is connected to the client according to the corresponding custom named pipe, specifically, the update program is connected to the server first and then to the client, so as to perform communication.
When the updating progress is changed, the updating program can call the callback function, the updating program has a plurality of sub updating programs, each sub updating program is responsible for part of updating tasks, the updating program is improved in advance during actual operation, namely, each sub updating program is provided with a sub updating program tag file corresponding to each sub updating program, after the sub updating program completes the updating task of the sub updating program, the updating program sends the sub updating program tag file to the custom named pipe service control 1, and then the custom named pipe service control 1 can show that the sub updating program completes the updating task when receiving the sub updating program tag file on one hand, and can start the callback work as an instruction signal for calling the callback function on the other hand.
In the embodiment of the present invention, the custom named pipe service control 1 is configured in the live broadcast room client.
In the embodiment of the invention, the user-defined named pipeline service control 1 follows a hot plug working mechanism, and the user-defined named pipeline service control 1 does not influence the updating program and the normal work of a client when working;
hot-plugging (Hot-plugging or Hot Swap), i.e. Hot plugging, allows a user to take out and replace damaged components such as hard disks, power supplies or board cards without closing the system or cutting off the power supply, thereby improving the timely recovery capability, expansibility, flexibility and the like of the system to disasters.
In the embodiment of the invention, the named pipe is defined in a non-blocking mode;
it should be noted that the non-blocking mode here refers to that the communication between the Server and the Client is in an asynchronous state by using a message mechanism of a socket event;
if the update program is not connected with the client all the time, namely the server side which designates the user-defined named pipeline is not connected all the time, at this time, the update thread of the live broadcast client side is suspended, at this time, the client side is closed, the update thread of the live broadcast client side is not normally finished, the live broadcast client side is closed abnormally, and the condition that the client side is closed abnormally cannot occur by adopting a non-blocking mode.
In the embodiment of the invention, the custom named pipeline comprises a first monitoring end and a second monitoring end;
the first monitoring end is used for monitoring a shutdown signal sent by a user when the client is closed;
the second monitoring end is used for monitoring the connection condition of the user-defined named pipeline and the client;
when the client is closed, the first monitoring end is triggered, the updating program normally ends the updating thread after receiving the shutdown signal, and the client can normally exit;
when the client is connected with the user-defined named pipeline, the second monitoring end is triggered, so that preparation is made for obtaining the updating progress information.
In the embodiment of the invention, when a user broadcasts the client of the live broadcast room and the first monitoring end monitors the shutdown signal, the first monitoring end sends an instruction to the updating program, and the updating program finishes the updating process, so that the client of the live broadcast room is normally closed.
In the embodiment of the invention, when the client side is normally connected with the user-defined named pipeline, the second monitoring end sends a normal connection signal, and the updating program sends updating progress information to the client side after receiving the normal connection signal.
Based on the same inventive concept, the present application provides an embodiment of a storage medium corresponding to the embodiment described in the third embodiment
EXAMPLE III
A third embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out all or part of the method steps of the first embodiment.
The present invention can implement all or part of the flow in the first embodiment, and can also be implemented by using a computer program to instruct related hardware, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Based on the same inventive concept, the present application provides an embodiment of an electronic device corresponding to the first embodiment, which is detailed in the fourth embodiment
Example four
As shown in fig. 3, the fourth embodiment of the present invention further provides an electronic device, which includes a memory and a processor, the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the first embodiment.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A client update progress monitoring method is characterized by comprising the following steps:
creating a custom named pipe service control for creating a custom named pipe for communicating between an update program and a client;
when the updating progress of the updating program changes, the updating program calls a callback function to acquire updating progress information, and is connected with the client according to the corresponding custom named pipeline, if the connection is successful, the updating progress information is sent to the client, otherwise, the updating progress information is not sent;
and when the client continuously receives the updating progress information, the updating program continues to work until the updating is finished, and when the client continuously does not receive the updating progress information, the updating program is suspended and the updating operation is terminated.
2. The method of claim 1, wherein: the custom named pipeline comprises a first monitoring end and a second monitoring end;
the first monitoring end is used for monitoring a shutdown signal sent by a user when the client is closed;
and the second monitoring end is used for monitoring the connection condition of the user-defined named pipeline and the client.
3. The method as claimed in claim 2, wherein when the user broadcasts a live broadcast room client, the first monitoring terminal sends an instruction to the update program when monitoring the shutdown signal, the update program ends the update process, and the live broadcast room client is normally closed.
4. The method of claim 2, wherein when the client is normally connected to the custom-named pipe, the second monitoring end sends a normal connection signal, and the update program sends update progress information to the client after receiving the normal connection signal.
5. The method of claim 1, wherein the custom named pipe service control is configured within the live room client.
6. The method of claim 1, wherein the custom named pipe service control follows a hot plug work mechanism.
7. The method of claim 1, wherein the custom named pipe is in a non-blocking mode.
8. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 7.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 1 to 7.
10. A client update progress monitoring system, comprising:
a custom named pipe service control for creating a custom named pipe for communicating between an update program and a client;
the updating progress information sending unit is used for calling a callback function to acquire updating progress information by the updating program when the updating progress of the updating program changes, connecting the updating program with the client according to the corresponding custom named pipeline, sending the updating progress information to the client if the connection is successful, and not sending the updating progress information if the connection is not successful;
and the updating monitoring unit is used for continuing to work until the updating is finished when the client continuously receives the updating progress information, suspending the updating program and terminating the updating operation when the client continuously does not receive the updating progress information.
CN201811408685.8A 2018-11-23 2018-11-23 Client update progress monitoring method, storage medium, electronic device and system Active CN111221547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811408685.8A CN111221547B (en) 2018-11-23 2018-11-23 Client update progress monitoring method, storage medium, electronic device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811408685.8A CN111221547B (en) 2018-11-23 2018-11-23 Client update progress monitoring method, storage medium, electronic device and system

Publications (2)

Publication Number Publication Date
CN111221547A true CN111221547A (en) 2020-06-02
CN111221547B CN111221547B (en) 2023-09-05

Family

ID=70805312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811408685.8A Active CN111221547B (en) 2018-11-23 2018-11-23 Client update progress monitoring method, storage medium, electronic device and system

Country Status (1)

Country Link
CN (1) CN111221547B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210141629A1 (en) * 2019-11-08 2021-05-13 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593121A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 The method of on-line software updating, Apparatus and system
CN104809028A (en) * 2015-05-07 2015-07-29 厦门雅迅网络股份有限公司 Method for subscribing and pushing data among multiple local processes
CN106020899A (en) * 2016-05-30 2016-10-12 乐视控股(北京)有限公司 Application downloading method and mobile terminal
WO2017161338A1 (en) * 2016-03-18 2017-09-21 TUPL, Inc. Continuous and automatic distributed application development and deployment
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593121A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 The method of on-line software updating, Apparatus and system
CN104809028A (en) * 2015-05-07 2015-07-29 厦门雅迅网络股份有限公司 Method for subscribing and pushing data among multiple local processes
WO2017161338A1 (en) * 2016-03-18 2017-09-21 TUPL, Inc. Continuous and automatic distributed application development and deployment
CN106020899A (en) * 2016-05-30 2016-10-12 乐视控股(北京)有限公司 Application downloading method and mobile terminal
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210141629A1 (en) * 2019-11-08 2021-05-13 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server
US11704106B2 (en) * 2019-11-08 2023-07-18 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server
US20230305835A1 (en) * 2019-11-08 2023-09-28 Toyota Jidosha Kabushiki Kaisha Program update system and vehicle management server

Also Published As

Publication number Publication date
CN111221547B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US7644404B2 (en) Network having customizable generators and electronic device having customizable updating software
CN111966423B (en) Method and equipment for realizing memory operating system
CN112350873B (en) Application service information processing method, application service calling method, device and system
CN108874825B (en) Abnormal data verification method and device
CN108519922B (en) Information pushing method and device, terminal equipment and computer readable storage medium
CN111949491B (en) SQL extraction method and device of MyBatis application program
CN106603125B (en) Method and device for data interaction with Bluetooth equipment
CN109634641A (en) A kind of application program update method, apparatus, electronic equipment and medium
CN113010328A (en) Information sharing method and device, terminal equipment and storage medium
CN108132832B (en) Application program starting method and device
CN111897738A (en) Automatic testing method and device based on atomic service
CN111221547A (en) Client updating progress monitoring method, storage medium, electronic device and system
CN110673827B (en) Resource calling method and device based on android system and electronic equipment
CN112328406B (en) Micro-service distributed transaction system based on TCC (TCC) and service processing method
JPH07219780A (en) System of dowm-loading processing program of terminal equipment
CN116755788A (en) On-line rule modification method, device, equipment and storage medium
CN111984293A (en) Information processing method, device and storage medium
CN111008032A (en) Page data updating method and device
US8019985B2 (en) Data-processing arrangement for updating code in an auxiliary processor memory
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN115827049A (en) Configuration-based cache switching method, electronic equipment and storage medium
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN113741913A (en) Picture configuration method, device and system and storage medium
CN116450074B (en) Image display method and device
CN115237463A (en) Visual platform element management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230808

Address after: 322000 No. 369 Chengxin Avenue, Futian Street, Yiwu City, Jinhua City, Zhejiang Province (self declared)

Applicant after: Yiwu Construction Investment Group Co.,Ltd.

Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Applicant before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant