CN107846449B - Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool - Google Patents
Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool Download PDFInfo
- Publication number
- CN107846449B CN107846449B CN201710895749.0A CN201710895749A CN107846449B CN 107846449 B CN107846449 B CN 107846449B CN 201710895749 A CN201710895749 A CN 201710895749A CN 107846449 B CN107846449 B CN 107846449B
- Authority
- CN
- China
- Prior art keywords
- calling
- lua
- service
- data packet
- feedback information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 115
- 230000006870 function Effects 0.000 claims description 13
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 17
- 230000008901 benefit Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Abstract
The present invention relates to technical field of software development more particularly to the method, apparatus of calling system tool, readable storage medium storing program for executing and equipment, which comprises Lua process calls the calling service of task to establish network connection with what is be pre-created for aid in treatment;The Lua process is sent by the network connection calls data packet to service to the calling;It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and the feedback information comprising call result is sent to the Lua process after the completion of calling;The call result is fed back to user according to the feedback information by the Lua process.The application is due to avoiding Lua from being called the obstruction to all Lua tasks using the included library os, improving the parallel processing capability of Nginx and Lua using calling service to complete the calling for carrying out goal systems tool to target object.
Description
Technical field
The present invention relates to technical field of software development more particularly to the method, apparatus of calling system tool, readable storage medium
Matter and equipment.
Background technique
During carrying out the exploitation of Unix server-side in the Nginx server for being embedded with Lua language, due to Lua language
The available library provided is less, needs often Unix system tool to be called to do aid in treatment, such as tar tool is called to carry out file pressure
Contracting, in this case, the method that the prior art uses are the library the os calling system tools carried using Lua.
However, the calling of one system tool will block entire Lua virtual machine and run according to the above method, and this
Kind obstruction is essentially different with general network request obstruction again, and network request obstruction, which can only block current network, asks
Ask, and system tool call obstruction can by entire Lua processing all obstruction, thus greatly reduce Nginx and Lua's and
Row processing capacity.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State method, apparatus, readable storage medium storing program for executing and the equipment of the calling system tool of problem.
The embodiment of the present invention provides a kind of method of calling system tool, which comprises
Lua process calls the calling service of task to establish network connection with what is be pre-created for aid in treatment;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and
The feedback information comprising call result is sent after the completion of calling to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
Preferably, described to call the service routine serviced to compile based on C Plus Plus.
Preferably, the calling data packet includes packet header and packet content, and the packet header has warp
The Lua process and the predefined format for calling service negotiation, the packet content are used to indicate to the target pair
Calling as carrying out the goal systems tool.
Preferably, described that service is called to be executed according to the calling data packet to target object progress goal systems tool
It calls, comprising:
The calling service parses the packet content according to the packet header;
The calling service is executed according to data obtained after parsing carries out the goal systems work to the target object
The calling of tool.
It is preferably, described that the feedback information comprising call result is sent after the completion of calling to the Lua process, comprising:
The calling service obtains the call result using call back function,
The call result is packaged according to the packet header, obtains the feedback information;
The feedback information is sent to the Lua process by the calling service.
The embodiment of the present invention provides a kind of device of calling system tool, and described device includes:
Network connecting module calls the calling of task to take with what is be pre-created for controlling Lua process for aid in treatment
Network connection is established in business;
Sending module sends calling data packet to the calling by the network connection for controlling the Lua process
Service;
Calling module is executed according to the calling data packet to target object progress target for controlling the calling service
The calling of system tool, and the feedback information comprising call result is sent to the Lua process after the completion of calling;
The call result is fed back to user according to the feedback information for controlling the Lua process by feedback module.
Preferably, described to call the service routine serviced to compile based on C Plus Plus.
Preferably, the calling data packet includes packet header and packet content, and the packet header has warp
The Lua process and the predefined format for calling service negotiation, the packet content are used to indicate to the target pair
Calling as carrying out the goal systems tool.
The embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, the program quilt
Processor performs the steps of when executing
Lua process calls the calling service of task to establish network connection with what is be pre-created for aid in treatment;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and
The feedback information comprising call result is sent after the completion of calling to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
The embodiment of the present invention provides a kind of computer equipment, including memory, processor and storage are on a memory and can
The computer program run on a processor, the processor perform the steps of when executing described program
Lua process calls the calling service of task to establish network connection with what is be pre-created for aid in treatment;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and
The feedback information comprising call result is sent after the completion of calling to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
One or more technical solutions in the embodiment of the present invention, have at least the following technical effects or advantages:
In this application, the calling service that task is called for aid in treatment is pre-created, and, by Lua process and adjust
With service establish network connection, after network connection is successfully established, Lua process by network connection send call data packet to
Service is called, calls service according to the calling for calling data packet to carry out goal systems tool to target object, after the completion of calling
It sending the feedback information comprising call result and gives Lua process, call result is fed back to user according to feedback information by Lua process,
Due to using calling service to complete the calling for carrying out goal systems tool to target object, avoid Lua using the included library os into
Row calls the obstruction to all Lua tasks, improves the parallel processing capability of Nginx and Lua.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, identical component is indicated with identical reference pattern.In the accompanying drawings:
Fig. 1 shows the flow chart of the method for one of embodiment of the present invention calling system tool;
Fig. 2 shows the structure charts of the device of one of embodiment of the present invention calling system tool;
Fig. 3 shows the entity structure schematic diagram of the computer equipment in the embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the present application provides a kind of method of calling system tool, services applied to the Nginx for being embedded with Lua language
In device, there is Lua process in Nginx server operation, as shown in Figure 1, which comprises
Step 101:Lua process calls the calling service of task to establish network company with what is be pre-created for aid in treatment
It connects.
For step 101, in addition the application creates a calling service independently of Lua process in Nginx server,
The calling service is pre-created, and is used for aid in treatment and calls task.Specifically, calling service is based on C Plus Plus volume
The service routine translated.
Further, how network connection is established for Lua process and calling service, is given below and is discussed in detail:
At Lua process end, creation transmission control protocol (TCP) connection corresponding with the service of calling, can specifically pass through to
It calls service to send network connecting request to be realized, wherein needing the incoming IP for calling service is usually 127.0.0.1.
Server-side is being called, network monitoring event is being created to monitor network connecting request, specifically, passes through network
Base library creates socket, and calls listen interface to create monitoring system port events, and be set as non-blocking mode, connects
, monitoring event is opened using epoll asynchronous process model, and be added to epoll and wait until in event queue, waits network connection
The arrival of request calls accept interface to take out when listening to network connecting request, completes and the network connection of Lua process
It establishes.
After completing step 101, step 102:Lua process is executed by network connection and sends calling data packet to calling
Service.
Specifically, in this application, calling data packet includes packet header and packet content, packet header tool
There is through Lua process and calls the predefined format of service negotiation, packet content, which is used to indicate, carries out target system to target object
The calling of system tool.Wherein, the predefined format of packet header is customized after being Lua process and service being called to negotiate in advance
Format, packet content are encoded in coding according to the packet header.
After determining packet header and packet content, packet header and packet content are packaged, group
Cheng Chengyi TCP data section, the TCP data section are to call data packet.Then, Lua process will call data packet to pass through network
Connection is sent to calling service, specifically, Lua process is sent by lua sock:send () interface.It is corresponding, it is adjusting
With server-side, the asynchronous reading event of read is added into epoll, waits the arrival of data packet to be called.
After completing step 102, execute step 103: call service according to call data packet execute to target object into
The calling of row goal systems tool, and send the feedback information comprising call result after the completion of calling and give Lua process.
In the specific implementation process, in calling server-side, after calling data packet to arrive, call service first to calling number
It is parsed according to the packet header in packet, if parsing failure, adds asynchronous plus write event, by parsing mistake and corresponding mistake
Error code is recorded, if successfully resolved, according to packet header to calling the packet content in data packet to parse, together
Sample records parsing mistake and corresponding error code if parsing failure, if successfully resolved, obtains according to after parsing
The data arrived execute the calling that goal systems tool is carried out to target object.
Further, call the specific calling process of service as follows:
Call service that task corresponding with packet content is distributed to corresponding processing thing by the data that parsing obtains
In part, processing event functions add processing task, and processing task is projected in the processing queue initialized, wherein every
The corresponding thread of a processing queue, then location registration process completes call back function, deletes the read-write event in epoll, is calling
When, each processing task corresponds to a kind of Processing Interface, and same processing task, which can be thrown, realizes concurrent operations in different task,
For example, if the task of calling is that compressed file is handled, only one compression interface, but multiple compression duties can throw multiple threads
In carry out simultaneously.
Further, call service after complete call, it will send comprising call result feedback information to Lua into
Journey is specifically called service to obtain call result first with call back function, is sealed further according to packet header to call result
Dress obtains feedback information, finally calls service that feedback information is sent to Lua process.
After completing step 103, step 104:Lua process is executed according to feedback information, call result is fed back into use
Family.
In the specific implementation process, Lua process calls lua sock:receive () interface, and the service to be called such as obstruction is rung
It answers, after calling the feedback information of service to arrive, receives feedback information, and call result is parsed by packet header, and
Call result is fed back into user, user, that is, caller herein.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of device of calling system tool, as shown in Fig. 2,
Described device includes:
Network connecting module 201, the calling that task is called for aid in treatment for controlling Lua process with being pre-created
Network connection is established in service;
Sending module 202 sends calling data packet to the tune by the network connection for controlling the Lua process
With service;
Calling module 203 is executed according to the calling data packet to target object progress for controlling the calling service
The calling of goal systems tool, and the feedback information comprising call result is sent to the Lua process after the completion of calling;
The call result is fed back to use according to the feedback information for controlling the Lua process by feedback module 204
Family.
Preferably, described to call the service routine serviced to compile based on C Plus Plus.
Preferably, the calling data packet includes packet header and packet content, and the packet header has warp
The Lua process and it is described call service negotiation predefined format, the packet content be used to indicate to target object into
The calling of row goal systems tool.
Preferably, calling module, comprising:
Resolution unit solves the packet content according to the packet header for controlling the calling service
Analysis;
Call unit, for control calling service according to data obtained after parsing execute to the target object into
The calling of the row goal systems tool.
Preferably, calling module, comprising:
First obtains unit obtains call result using call back function for controlling the calling service;
Second obtaining unit is packaged the call result according to the packet header for controlling, and obtains institute
State feedback information;
The feedback information is sent to the Lua process for controlling the calling service by transmission unit.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with
Computer program, the program perform the steps of when being executed by processor
Lua process calls the calling service of task to establish network connection with what is be pre-created for aid in treatment;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and
The feedback information comprising call result is sent after the completion of calling to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
The embodiment of the invention also provides a kind of computer equipments, as shown in figure 3, for ease of description, illustrate only with
The relevant part of the embodiment of the present invention, it is disclosed by specific technical details, please refer to present invention method part.The calculating
Machine equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant),
Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, by taking computer equipment is mobile phone as an example:
Fig. 3 shows the block diagram of part-structure relevant to computer equipment provided in an embodiment of the present invention.With reference to figure
3, which includes: memory 301 and processor 302.It will be understood by those skilled in the art that being counted shown in Fig. 3
It calculates machine equipment structure and does not constitute the restriction to computer equipment, may include than illustrating more or fewer components or group
Close certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 3 to computer equipment:
Memory 301 can be used for storing software program and module, and processor 302 is stored in memory 301 by operation
Software program and module, thereby executing various function application and data processing.Memory 301 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;It storage data area can storing data (such as audio data, phone directory etc.)
Deng.In addition, memory 301 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other volatile solid-state parts.
Processor 302 is the control centre of computer equipment, by running or executing the software being stored in memory 301
Program and/or module, and the data being stored in memory 301 are called, perform various functions and handle data.Optionally,
Processor 302 may include one or more processing units;Preferably, processor 302 can integrate application processor and modulation /demodulation
Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master
Handle wireless communication.
In embodiments of the present invention, processor 302 included by the computer equipment can have following functions:
Lua process calls the calling service of task to establish network connection with what is be pre-created for aid in treatment;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and
The feedback information comprising call result is sent after the completion of calling to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
In short, in this application, the calling service that task is called for aid in treatment is pre-created, and, pass through Lua process
Network connection is established with calling to service, after network connection is successfully established, Lua process is sent by network connection and calls data
It wraps and calls service according to the calling for calling data packet to carry out goal systems tool to target object to service is called, calling
Lua process is given comprising the feedback information of call result at rear transmission, call result is fed back to use according to feedback information by Lua process
Family, due to avoiding Lua using the included library os using calling service to complete the calling for carrying out goal systems tool to target object
It is called the obstruction to all Lua tasks, improves the parallel processing capability of Nginx and Lua.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments
Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention
Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it
One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system
Some or all components some or all functions.The present invention is also implemented as executing side as described herein
Some or all device or device programs (for example, computer program and computer program product) of method.It is such
It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape
Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.Word, second and the use of third etc. do not indicate any sequence.These words can be construed to title.
Claims (10)
1. a kind of method of calling system tool, which is characterized in that the described method includes:
Lua process calls the calling service of task to establish network connection, the calling clothes with what is be pre-created for aid in treatment
In addition business creates in Nginx server independently of Lua process;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and adjusting
With feedback information of the transmission comprising call result after the completion to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
2. the method as described in claim 1, which is characterized in that described to call the service journey serviced to compile based on C Plus Plus
Sequence.
3. the method as described in claim 1, which is characterized in that the calling data packet includes in packet header and data packet
Hold, the packet header has through the Lua process and the predefined format for calling service negotiation, in the data packet
Appearance is used to indicate the calling that the goal systems tool is carried out to the target object.
4. method as claimed in claim 3, which is characterized in that the calling service is executed according to the calling data packet to mesh
Mark the calling that object carries out goal systems tool, comprising:
The calling service parses the packet content according to the packet header;
The calling service carries out the goal systems tool to the target object according to data obtained after parsing execution
It calls.
5. method as claimed in claim 3, which is characterized in that described to send the feedback comprising call result after the completion of calling
Information gives the Lua process, comprising:
The calling service obtains the call result using call back function;
The call result is packaged according to the packet header, obtains the feedback information;
The feedback information is sent to the Lua process by the calling service.
6. a kind of device of calling system tool, which is characterized in that described device includes:
Network connecting module calls the calling service of task to build with what is be pre-created for controlling Lua process for aid in treatment
In addition vertical network connection, the calling service create in Nginx server independently of Lua process;
Sending module calls data packet to service to the calling for controlling the Lua process by network connection transmission;
Calling module is executed according to the calling data packet to target object progress goal systems for controlling the calling service
The calling of tool, and the feedback information comprising call result is sent to the Lua process after the completion of calling;
The call result is fed back to user according to the feedback information for controlling the Lua process by feedback module.
7. device as claimed in claim 6, which is characterized in that described to call the service journey serviced to compile based on C Plus Plus
Sequence.
8. device as claimed in claim 6, which is characterized in that the calling data packet includes in packet header and data packet
Hold, the packet header has through the Lua process and the predefined format for calling service negotiation, in the data packet
Appearance is used to indicate the calling that the goal systems tool is carried out to the target object.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
It is performed the steps of when row
Lua process calls the calling service of task to establish network connection, the calling clothes with what is be pre-created for aid in treatment
In addition business creates in Nginx server independently of Lua process;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and adjusting
With feedback information of the transmission comprising call result after the completion to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor performs the steps of when executing described program
Lua process calls the calling service of task to establish network connection, the calling clothes with what is be pre-created for aid in treatment
In addition business creates in Nginx server independently of Lua process;
The Lua process is sent by the network connection calls data packet to service to the calling;
It is described that service is called to execute the calling for carrying out goal systems tool to target object according to the calling data packet, and adjusting
With feedback information of the transmission comprising call result after the completion to the Lua process;
The call result is fed back to user according to the feedback information by the Lua process.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710895749.0A CN107846449B (en) | 2017-09-28 | 2017-09-28 | Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool |
PCT/CN2017/108263 WO2019061636A1 (en) | 2017-09-28 | 2017-10-30 | Method and apparatus for invoking system tool, readable storage medium, and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710895749.0A CN107846449B (en) | 2017-09-28 | 2017-09-28 | Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107846449A CN107846449A (en) | 2018-03-27 |
CN107846449B true CN107846449B (en) | 2019-01-29 |
Family
ID=61661481
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710895749.0A Active CN107846449B (en) | 2017-09-28 | 2017-09-28 | Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107846449B (en) |
WO (1) | WO2019061636A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110049280B (en) * | 2019-03-14 | 2022-01-11 | 视联动力信息技术股份有限公司 | Method and device for processing monitoring data |
CN111538706B (en) * | 2020-04-21 | 2023-11-14 | 惠州Tcl移动通信有限公司 | Data compression method, device, storage medium and mobile terminal |
CN112788103B (en) * | 2020-12-25 | 2022-08-02 | 江苏省未来网络创新研究院 | Method for solving same-application multi-instance web proxy access conflict based on nginx + lua |
CN113726674B (en) * | 2021-08-27 | 2023-11-14 | 猪八戒股份有限公司 | Flow scheduling method and equipment based on Nginx+Lua |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106102A (en) * | 2013-01-14 | 2013-05-15 | 百度在线网络技术(北京)有限公司 | Running method of Web application program and mobile terminal |
CN103713927A (en) * | 2013-12-27 | 2014-04-09 | 珠海全志科技股份有限公司 | System reinstallation tool and method for conducting system reinstallation through system reinstallation tool |
CN104298534A (en) * | 2014-10-23 | 2015-01-21 | 广州华多网络科技有限公司 | Programming method and device based on Lua language |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140143762A1 (en) * | 2012-11-21 | 2014-05-22 | Fujitsu Limited | Symbolic execution of dynamic programming languages |
CN104461522B (en) * | 2014-11-26 | 2018-05-01 | 论客科技(广州)有限公司 | Auxiliary activities implementation method based on script |
CN106209795A (en) * | 2016-06-30 | 2016-12-07 | 大连楼兰科技股份有限公司 | Realize lua and resolve intranet data method and system |
-
2017
- 2017-09-28 CN CN201710895749.0A patent/CN107846449B/en active Active
- 2017-10-30 WO PCT/CN2017/108263 patent/WO2019061636A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106102A (en) * | 2013-01-14 | 2013-05-15 | 百度在线网络技术(北京)有限公司 | Running method of Web application program and mobile terminal |
CN103713927A (en) * | 2013-12-27 | 2014-04-09 | 珠海全志科技股份有限公司 | System reinstallation tool and method for conducting system reinstallation through system reinstallation tool |
CN104298534A (en) * | 2014-10-23 | 2015-01-21 | 广州华多网络科技有限公司 | Programming method and device based on Lua language |
Also Published As
Publication number | Publication date |
---|---|
WO2019061636A1 (en) | 2019-04-04 |
CN107846449A (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107846449B (en) | Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool | |
CN104252339B (en) | The method and apparatus that interface layer exploitation, interface layer realize data interaction | |
CN109408132A (en) | A kind of configuration file processing method and server, user terminal, storage medium | |
CN110032511A (en) | A kind of interface test method and interface testing equipment | |
CN110365751B (en) | Service processing method, device and equipment of gateway system | |
CN101174216B (en) | Computer method, apparatus and system for merging software configurations | |
CN108989885A (en) | Video file trans-coding system, dividing method, code-transferring method and device | |
CN107391219B (en) | Function Compilation Method and device | |
CN108228444B (en) | Test method and device | |
CN108664613A (en) | Data query method, apparatus, computer equipment and storage medium | |
CN111930382B (en) | Application page access method, device and equipment | |
CN106713469B (en) | Dynamic loading method, device and system for distributed container | |
CN107770269A (en) | A kind of service response method and its terminal | |
CN110365536A (en) | A kind of the fault cues method and relevant apparatus of internet of things equipment | |
CN110519127B (en) | Network delay detection method, device and storage medium | |
CN109492181A (en) | Method for page jump, device, computer equipment and storage medium | |
CN109725912A (en) | Application program configuration method, device, terminal, server and readable storage medium storing program for executing | |
CN105554136B (en) | Backup Data restoring method, apparatus and system | |
CN114579194A (en) | Spring remote call-based exception handling method and system | |
CN108182119A (en) | Read and write abruption control method and device, storage medium and electronic device | |
EP2224381A1 (en) | Method and apparatus for case-based service composition | |
JP2005228183A (en) | Program execution method and computer system for executing the program | |
CN110049106B (en) | Service request processing system and method | |
CN106598662A (en) | Application loading method and device based on android | |
CN108984238A (en) | Gesture processing method, device and the electronic equipment of application program |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231221 Address after: Room 302, Building C, Science and Technology Entrepreneurship Building, No. 133 Yingchun Street, Laishan District, Yantai City, Shandong Province, 264000 Patentee after: Jingfeng Big Data Technology (Yantai) Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |