Data transmission method and device applied to code editor, equipment and medium

By determining the data transmission strategy in the code editor, using intra-LAN or cross-LAN transmission protocols to generate information configuration templates, the problem of inefficient data transmission in the code editor is solved, and efficient data transmission and download are achieved.

CN120583097APending Publication Date: 2025-09-02BEIJING HUAHANG WEISHI IND SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510719423.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

In the prior art, data transmission in the code editor is inefficient and cannot efficiently send program data to a designated server.

Method used

By determining the data transmission strategy in the code editor, using the intra-LAN transmission protocol or the cross-LAN transmission protocol, the corresponding information configuration template is generated to realize the in-network or off-network transmission of data and improve the transmission efficiency.

Benefits of technology

It effectively improves data transmission efficiency, realizes the rapid transmission and download of program operation data, and is suitable for parallel transmission within and across local area networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120583097A_ABST
    Figure CN120583097A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device applied to a code editor, equipment and a medium, and the method comprises the steps: responding to an uploading execution operation of user equipment on program operation data in a program code editor, and determining a data transmission strategy based on a target server corresponding to the program operation data; when the data transmission strategy is an intra-network transmission strategy, scheduling the data transmission protocol as an intra-local area network transmission protocol, generating an intra-network information configuration template, and transmitting program operation data to a target server according to a user configuration demand corresponding to the intra-network information configuration template; and when the data transmission strategy is an off-network transmission strategy, scheduling the data transmission protocol to be a cross-local area network transmission protocol, generating an off-network information configuration template, and transmitting program operation data to a target server according to a user configuration demand corresponding to the off-network information configuration template. Therefore, the user can directly send the program operation data to the target server through the data transmission strategy in the code editor, and the data transmission efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the technical field of data transmission, and in particular, to a method, apparatus, device, and medium for transmitting data in a code editor. Background Art

[0002] A code editor is a text editor used by programmers to write computer programs. It can be a standalone application, a part of an integrated development environment (IDE), or a web page editor running in a browser.

[0003] In the related art, after a programmer has written program data in a code editor, he needs to send the program data to a designated server. The specific sending method is to download the program data in the code editor and transfer it to the designated server via a USB flash drive or the like.

[0004] However, using existing methods, data transmission efficiency is low. Summary of the Invention

[0005] The embodiments described herein provide a method, apparatus, device, and medium for transmitting data in a code editor, which overcome the above-mentioned problems.

[0006] In a first aspect, according to the present disclosure, a method for transmitting data in a code editor is provided, comprising:

[0007] In response to a user device performing an upload operation on program execution data in a program code editor, determining a data transmission policy corresponding to the program execution data based on a destination server corresponding to the program execution data, the destination server being a server that receives the program execution data;

[0008] When the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, scheduling the data transmission protocol corresponding to the program running data to be the intra-local area network transmission protocol, generating an intra-network information configuration template corresponding to the intra-local area network transmission protocol, and transmitting the program running data to the destination server according to the user configuration requirements corresponding to the intra-network information configuration template;

[0009] When the data transmission strategy corresponding to the program running data is an off-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled to be a cross-LAN transmission protocol, and an off-network information configuration template corresponding to the cross-LAN transmission protocol is generated, and the program running data is transmitted to the destination server according to the user configuration requirements corresponding to the off-network information configuration template.

[0010] In a second aspect, according to the present disclosure, a data transmission device for a code editor is provided, comprising:

[0011] a determining module, configured to, in response to a user device performing an operation on uploading program execution data in a program code editor, determine a data transmission policy corresponding to the program execution data based on a destination server corresponding to the program execution data, the destination server being a server that receives the program execution data;

[0012] a first processing module, configured to, when the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, schedule the data transmission protocol corresponding to the program running data to be an intra-local area network transmission protocol, generate an intra-network information configuration template corresponding to the intra-local area network transmission protocol, and transmit the program running data to the destination server according to a user configuration requirement corresponding to the intra-network information configuration template;

[0013] The second processing module is used to schedule the data transmission protocol corresponding to the program running data to be a cross-LAN transmission protocol when the data transmission strategy corresponding to the program running data is an off-network transmission strategy, and generate an off-network information configuration template corresponding to the cross-LAN transmission protocol, and transmit the program running data to the destination server according to the user configuration requirements corresponding to the off-network information configuration template.

[0014] In a third aspect, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the method for transmitting data in a code editor as applied in any of the above embodiments are implemented.

[0015] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for transmitting data in a code editor as applied in any of the above embodiments are implemented.

[0016] The data transmission method applied to the code editor provided by the embodiment of the present application responds to the upload execution operation of the program running data in the program code editor by the user device, determines the data transmission strategy corresponding to the program running data based on the destination server corresponding to the program running data, and the destination server is the server that receives the program running data; when the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled as the intra-LAN transmission protocol, and generates the intra-network information configuration template corresponding to the intra-LAN transmission protocol, and transmits the program running data to the destination server according to the user configuration requirements corresponding to the intra-network information configuration template; when the data transmission strategy corresponding to the program running data is the extra-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled as the cross-LAN transmission protocol, and generates the extra-network information configuration template corresponding to the cross-LAN transmission protocol, and transmits the program running data to the destination server according to the user configuration requirements corresponding to the extra-network information configuration template. In this way, the user can directly send the program running data to the destination server through the data transmission strategy in the code editor, effectively improving the data transmission efficiency.

[0017] The above description is only an overview of the technical solutions of the embodiments of the present application. In order to more clearly understand the technical means of the embodiments of the present application, they can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure and are not intended to limit the present disclosure.

[0019] Figure 1 This is a flowchart of a data transmission method applied to a code editor provided by the present disclosure.

[0020] Figure 2 This is a schematic diagram of an application interface of a program code editor provided by the present disclosure.

[0021] Figure 3 This is a schematic diagram of an interface of an in-network information configuration template provided by the present disclosure.

[0022] Figure 4 This is a schematic diagram of an interface of another network information configuration template provided by the present disclosure.

[0023] Figure 5 This is a schematic diagram of the structure of a data transmission device applied to a code editor provided by the present disclosure.

[0024] Figure 6It is a structural diagram of a computer device provided by the present disclosure.

[0025] It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.

[0027] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal manner unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together either directly or through one or more intermediate components.

[0028] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiment" in various places in the specification does not necessarily refer to the same embodiment, nor does it necessarily refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0029] The term "and / or" in this document simply describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists, A and B exist simultaneously, and B exists. Additionally, the character " / " in this document generally indicates that the related objects are in an "or" relationship. Terms such as "first" and "second" are used solely to distinguish one component (or portion of a component) from another component (or portion of a component).

[0030] In the description of this application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two (including two).

[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0032] Figure 1 FIG. 1 is a flow chart of a method for transmitting data in a code editor provided by an embodiment of the present disclosure. Figure 1 As shown in FIG, the specific process of the data transmission method applied to the code editor includes:

[0033] S110 : In response to a user device performing an upload operation on program execution data in a program code editor, determining a data transmission strategy corresponding to the program execution data based on a destination server corresponding to the program execution data.

[0034] The destination server is a server that receives program execution data and can be a management system, computer equipment, etc.

[0035] The user can upload the program running data written in the program code editor in the user device. Figure 2 As shown, the running interface of the program code editor has a "data upload" control function for the program running data, and the upload execution operation of the program running data is generated by triggering actions such as clicking.

[0036] It should be noted that the destination server may be one server, or the destination server may include at least two servers.

[0037] In some embodiments, determining a data transmission policy corresponding to the program execution data based on a destination server corresponding to the program execution data includes:

[0038] Obtain a network communication identifier corresponding to the user device, and obtain a network communication identifier corresponding to the destination server; when it is determined based on the network communication identifier corresponding to the user device and the network communication identifier corresponding to the destination server that the user device and the destination server are in the same local area network, determine that the data transmission strategy corresponding to the program running data is the transmission strategy; when it is determined based on the network communication identifier corresponding to the user device and the network communication identifier corresponding to the destination server that the user device and the destination server are not in the same local area network, determine that the data transmission strategy corresponding to the program running data is the off-network transmission strategy.

[0039] The network communication identifier corresponding to the user equipment can be used to reflect the identifier of the local area network to which the user equipment belongs, and the network communication identifier corresponding to the destination server can be used to reflect the identifier of the local area network to which the destination server belongs.

[0040] When the identifier of the local area network where the user device is located matches / is the same as the identifier of the local area network to which the destination server belongs, it is considered that the user device and the destination server are in the same local area network; when the identifier of the local area network where the user device is located does not match / is not the same as the identifier of the local area network to which the destination server belongs, it is considered that the user device and the destination server are not in the same local area network.

[0041] Therefore, whether the user device and the destination server are in the same local area network is determined by the network communication identifier of the user device and the network communication identifier corresponding to the destination server, so as to effectively determine the data transmission strategy corresponding to the program running data.

[0042] S120. When the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled to be the intra-LAN transmission protocol, and an intra-network information configuration template corresponding to the intra-LAN transmission protocol is generated, and the program running data is transmitted to the destination server according to the user configuration requirements corresponding to the intra-network information configuration template.

[0043] When the data transmission strategy for program execution data is an intra-network transmission strategy, the data transmission protocol for the program execution data can be configured to be an intra-LAN transmission protocol for data transmission within the same LAN, thereby facilitating intra-network transmission of the program execution data. The intra-LAN transmission protocol can be, for example, FTP (File Transfer Protocol).

[0044] The network information configuration template corresponding to the LAN transmission protocol is as follows: Figure 3 As shown, the intra-network information configuration template includes: templates for the IP address, port, username, password, and download path (i.e., destination transmission address). The user configuration requirements corresponding to the intra-network information configuration template are the IP address, port, username, password, and download path filled in by the user.

[0045] In some embodiments, the destination server includes: at least two in-network servers.

[0046] Generates the network information configuration template corresponding to the LAN transmission protocol, including:

[0047] Based on the destination transmission address corresponding to each subroutine data in the program running data, the subroutine data is divided into network servers to obtain the subroutine data corresponding to each network server; based on the subroutine data corresponding to each network server, a network information configuration template corresponding to each network server is generated.

[0048] For example, the destination servers include: in-network server A1 and in-network server A2. The program execution data includes two sub-program data, namely data D1 and data D2. The destination transmission address corresponding to data D1 is H1 (i.e., the storage address of in-network server A1), and the destination transmission address corresponding to data D2 is H2 (i.e., the storage address of in-network server A2). Based on the destination transmission address corresponding to each sub-program data in the program execution data, the sub-program data is divided into in-network servers, and the sub-program data corresponding to each in-network server A1 is data D1, and the sub-program data corresponding to each in-network server A2 is data D2. Based on the sub-program data corresponding to each in-network server, a corresponding in-network information configuration template is generated.

[0049] like Figure 4 As shown, the in-network information configuration template corresponding to the in-network server A1 is shown in area 41 , and the in-network information configuration template corresponding to the in-network server A2 is shown in area 42 .

[0050] Therefore, data can be transmitted simultaneously to network servers at different addresses in the program code editor, effectively realizing parallel transmission of data within the network and further improving data transmission efficiency.

[0051] S130. When the data transmission strategy corresponding to the program running data is the off-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled to be a cross-LAN transmission protocol, and an off-network information configuration template corresponding to the cross-LAN transmission protocol is generated, and the program running data is transmitted to the destination server according to the user configuration requirements corresponding to the off-network information configuration template.

[0052] Among them, when the data transmission strategy corresponding to the program running data is the off-network transmission strategy, the data transmission protocol corresponding to the program running data can be scheduled to the off-LAN transmission protocol for realizing data transmission between different LANs through setting, so as to facilitate the cross-network transmission of program running data.

[0053] In some embodiments, the destination server includes: at least two off-network servers.

[0054] Generates the off-network information configuration template corresponding to the cross-LAN transmission protocol, including:

[0055] Based on the destination transmission address corresponding to each subroutine data in the program running data, the subroutine data is divided into off-network servers to obtain the subroutine data corresponding to each off-network server; based on the subroutine data corresponding to each off-network server, an off-network information configuration template corresponding to each off-network server is generated.

[0056] For example, the destination servers include: off-network server A3 and off-network server A4, and the program execution data includes two sub-program data, namely data D3 and data D4. The destination transmission address corresponding to data D3 is H3 (i.e., the storage address of off-network server A3), and the destination transmission address corresponding to data D4 is H4 (i.e., the storage address of off-network server A4). Based on the destination transmission address corresponding to each sub-program data in the program execution data, the sub-program data is divided into off-network servers, and the sub-program data corresponding to each off-network server A3 is data D3, and the sub-program data corresponding to each off-network server A4 is data D4. Based on the sub-program data corresponding to each off-network server, a corresponding off-network information configuration template is generated.

[0057] Therefore, data can be transmitted simultaneously to off-network servers at different addresses in the program code editor, effectively realizing off-network parallel transmission of data and further improving data transmission efficiency.

[0058] In this embodiment, in response to the user device performing an upload operation on the program running data in the program code editor, the data transmission strategy corresponding to the program running data is determined based on the destination server corresponding to the program running data, and the destination server is the server that receives the program running data; when the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled as the intra-LAN transmission protocol, and an intra-network information configuration template corresponding to the intra-LAN transmission protocol is generated, and the program running data is transmitted to the destination server according to the user configuration requirements corresponding to the intra-network information configuration template; when the data transmission strategy corresponding to the program running data is the extra-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled as the cross-LAN transmission protocol, and an extra-network information configuration template corresponding to the cross-LAN transmission protocol is generated, and the program running data is transmitted to the destination server according to the user configuration requirements corresponding to the extra-network information configuration template. In this way, the user can directly send the program running data to the destination server through the data transmission strategy in the code editor, effectively improving the data transmission efficiency.

[0059] In some embodiments, the method of this embodiment further includes:

[0060] In response to the user device executing the download operation on the program running data in the program code editor, a download information configuration template corresponding to the program running data is generated; and according to the user configuration requirements corresponding to the download information configuration template, the program running data is downloaded to the corresponding target download address.

[0061] Among them, the user can perform download instructions on the program running data written in the program code editor in the user device. There is a "data download" control function for the program running data in the running interface of the program code editor, which generates a download execution operation for the program running data through triggering behaviors such as clicking.

[0062] Therefore, by providing a download instruction for the program running data in the program code editor, the program running data is downloaded to the corresponding target download address, thereby achieving fast download of the data.

[0063] In some embodiments, the method of this embodiment further includes:

[0064] If the program running data is not successfully transmitted to the destination server according to the user configuration requirements corresponding to the in-network information configuration template, or if the program running data is not successfully transmitted to the destination server according to the user configuration requirements corresponding to the out-of-network information configuration template, a first prompt message is generated; based on the reason for the unsuccessful transmission, a transmission timestamp for transmitting the program running data to the destination server again is determined, and the transmission timestamp for transmitting the program running data to the destination server again and the first prompt message are sent to the destination server.

[0065] The transmission time for retransmitting the program execution data to the destination server can be estimated based on the reason for the unsuccessful transmission to generate a transmission timestamp. For example, if the transmission failure was caused by a network interruption, the current time is t1, and the network interruption repair time is t2, then the estimated transmission time for retransmitting the program execution data to the destination server is t1 + t2.

[0066] Therefore, by sending a first prompt message to the destination server, the destination server can be informed of the data transmission failure message in a timely manner, and by sending a transmission timestamp for transmitting the program running data to the destination server again, the destination server can be notified of the data re-sending time, so that the destination server can understand the data transmission progress in a timely manner.

[0067] In some embodiments, the method of this embodiment further includes:

[0068] If the program running data has been successfully transmitted to the destination server according to the user configuration requirements corresponding to the network information configuration template, or if the program running data has been successfully transmitted to the destination server according to the user configuration requirements corresponding to the external information configuration template, a second prompt message is generated; and the second prompt message is sent to the user device and the destination server.

[0069] The second prompt message may be used to describe that the data is successfully sent. Thus, by sending the second prompt message to the user device and the destination server, the user device and the destination server can be informed of the successful data sending in a timely manner.

[0070] Figure 5 This is a schematic structural diagram of a data transmission device applied to a code editor provided in this embodiment. The data transmission device applied to a code editor may include: a determination module 510, a first processing module 520 and a second processing module 530.

[0071] The determination module 510 is used to determine the data transmission strategy corresponding to the program execution data based on the destination server corresponding to the program execution data in response to the user device performing an operation of uploading the program execution data in the program code editor, where the destination server is the server receiving the program execution data.

[0072] The first processing module 520 is used to schedule the data transmission protocol corresponding to the program running data to be the local area network transmission protocol when the data transmission strategy corresponding to the program running data is the in-network transmission strategy, and generate an in-network information configuration template corresponding to the in-local area network transmission protocol, and transmit the program running data to the destination server according to the user configuration requirements corresponding to the in-network information configuration template.

[0073] The second processing module 530 is used to schedule the data transmission protocol corresponding to the program running data to be a cross-LAN transmission protocol when the data transmission strategy corresponding to the program running data is an off-network transmission strategy, and generate an off-network information configuration template corresponding to the cross-LAN transmission protocol, and transmit the program running data to the destination server according to the user configuration requirements corresponding to the off-network information configuration template.

[0074] In this embodiment, optionally, the determining module 510 is specifically configured to:

[0075] Obtain a network communication identifier corresponding to the user device, and obtain a network communication identifier corresponding to the destination server; when it is determined based on the network communication identifier corresponding to the user device and the network communication identifier corresponding to the destination server that the user device and the destination server are in the same local area network, determine that the data transmission strategy corresponding to the program running data is the transmission strategy; when it is determined based on the network communication identifier corresponding to the user device and the network communication identifier corresponding to the destination server that the user device and the destination server are not in the same local area network, determine that the data transmission strategy corresponding to the program running data is the off-network transmission strategy.

[0076] In this embodiment, optionally, the destination server includes: at least two in-network servers.

[0077] The first processing module 520 is specifically configured to:

[0078] Based on the destination transmission address corresponding to each subroutine data in the program running data, the subroutine data is divided into network servers to obtain the subroutine data corresponding to each network server; based on the subroutine data corresponding to each network server, a network information configuration template corresponding to each network server is generated.

[0079] In this embodiment, optionally, the destination server includes: at least two off-network servers.

[0080] The second processing module 530 is specifically configured to:

[0081] Based on the destination transmission address corresponding to each subroutine data in the program running data, the subroutine data is divided into off-network servers to obtain the subroutine data corresponding to each off-network server; based on the subroutine data corresponding to each off-network server, an off-network information configuration template corresponding to each off-network server is generated.

[0082] In this embodiment, optionally, it further includes: a generation module and a download module.

[0083] The generating module is configured to generate a download information configuration template corresponding to the program running data in response to a user device executing an operation to download the program running data in the program code editor.

[0084] The download module is used to download the program running data to the corresponding target download address according to the user configuration requirements corresponding to the download information configuration template.

[0085] In this embodiment, optionally, it further includes: a sending module.

[0086] The generation module is also used to generate a first prompt message if the program running data is not successfully transmitted to the destination server according to the user configuration requirements corresponding to the network information configuration template, or if the program running data is not successfully transmitted to the destination server according to the user configuration requirements corresponding to the external information configuration template.

[0087] The sending module is used to determine a transmission timestamp for transmitting the program running data to the destination server again according to the reason for unsuccessful transmission, and send the transmission timestamp and a first prompt message to the destination server.

[0088] In this embodiment, optionally, the generation module is also used to generate a second prompt message if the program running data has been successfully transmitted to the destination server according to the user configuration requirements corresponding to the in-network information configuration template, or if the program running data has been successfully transmitted to the destination server according to the user configuration requirements corresponding to the out-of-network information configuration template.

[0089] The sending module is further configured to send a second prompt message to the user equipment and the destination server.

[0090] The data transmission device provided by the present disclosure and applied to the code editor can execute the above method embodiments. Its specific implementation principles and technical effects can be found in the above method embodiments, and the present disclosure will not repeat them here.

[0091] The present application also provides a computer device. Figure 6 , Figure 6 This is a basic structural block diagram of the computer device in this embodiment.

[0092] The computer device includes a memory 610 and a processor 620 that are interconnected and communicate with each other via a system bus. It should be noted that the figure only shows a computer device with a memory 610 and a processor 620, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.

[0093] Computer devices can be desktop computers, laptops, PDAs, cloud servers, etc. Computer devices can interact with users through keyboards, mice, remote controls, touchpads, or voice-activated devices.

[0094] The memory 610 includes at least one type of readable storage medium, including non-volatile memory or volatile memory, such as flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, magnetic disk, optical disk, etc. The RAM may include static RAM or dynamic RAM. In some embodiments, the memory 610 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 610 may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, or a Flash Card equipped on the computer device. Of course, the memory 610 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 610 is generally used to store the operating system and various application software installed on the computer device, such as the program code of the above-mentioned method. In addition, the memory 610 may also be used to temporarily store various types of data that have been output or are about to be output.

[0095] The processor 620 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 610 is used to store program code or instructions, which include computer operating instructions. The processor 620 is used to execute the program code or instructions stored in the memory 610 or process data, such as the program code for running the above method.

[0096] In this document, a bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus system can be divided into address buses, data buses, and control buses. For ease of illustration, the figure uses only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0097] Another embodiment of the present application further provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads the computer-readable program code stored in the computer-readable medium, enabling the processor to execute the functional actions specified in each step or combination of steps in the above method, and to generate a device that implements the functional actions specified in each block or combination of blocks in the block diagram.

[0098] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above-mentioned methods stored in the memory.

[0099] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0101] Each functional unit or module in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or software functional units.

[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0103] In the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" described in the present application does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented with the aid of hardware comprising several different elements and with the aid of a suitably programmed computer. In a unit claim that lists several means, several units of these means may be embodied by the same hardware item. The use of first, second, and third etc. does not indicate any order and these words may be interpreted as names. The steps in the above embodiments should not be understood as limiting the order of execution unless otherwise specified.

[0104] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data transmission method applied to a code editor, characterized in that: include: In response to a user device performing an upload operation on program execution data in a program code editor, determining a data transmission policy corresponding to the program execution data based on a destination server corresponding to the program execution data, the destination server being a server that receives the program execution data; When the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, scheduling the data transmission protocol corresponding to the program running data to be the intra-local area network transmission protocol, generating an intra-network information configuration template corresponding to the intra-local area network transmission protocol, and transmitting the program running data to the destination server according to the user configuration requirements corresponding to the intra-network information configuration template; When the data transmission strategy corresponding to the program running data is an off-network transmission strategy, the data transmission protocol corresponding to the program running data is scheduled to be a cross-LAN transmission protocol, and an off-network information configuration template corresponding to the cross-LAN transmission protocol is generated, and the program running data is transmitted to the destination server according to the user configuration requirements corresponding to the off-network information configuration template.

2. The method according to claim 1, characterized in that The determining, based on the destination server corresponding to the program execution data, a data transmission strategy corresponding to the program execution data includes: Obtaining a network communication identifier corresponding to the user equipment and a network communication identifier corresponding to the destination server; When it is determined based on the network communication identifier corresponding to the user device and the network communication identifier corresponding to the destination server that the user device and the destination server are in the same local area network, determining that the data transmission policy corresponding to the program execution data is the transmission policy; When it is determined based on the network communication identifier corresponding to the user device and the network communication identifier corresponding to the destination server that the user device and the destination server are not in the same local area network, the data transmission strategy corresponding to the program running data is determined to be the off-network transmission strategy.

3. The method according to claim 1, characterized in that The destination server includes: at least two in-network servers; The generating of the network information configuration template corresponding to the transmission protocol within the local area network includes: Based on the destination transmission address corresponding to each subroutine data in the program running data, the subroutine data is divided into servers within the network to obtain subroutine data corresponding to each server within the network; Based on the corresponding subroutine data transmitted to each server in the network, an in-network information configuration template is generated and transmitted to each server in the network.

4. The method according to claim 3, characterized in that The destination server includes: at least two off-network servers; The generating of the off-network information configuration template corresponding to the cross-LAN transmission protocol includes: Based on the destination transmission address corresponding to each subroutine data in the program running data, the subroutine data is divided into off-network servers to obtain the subroutine data corresponding to each off-network server; Based on the corresponding subroutine data transmitted to each off-network server, an off-network information configuration template corresponding to each off-network server is generated.

5. The method according to claim 1, wherein Also includes: In response to the user device executing an operation on downloading the program execution data in the program code editor, generating a download information configuration template corresponding to the program execution data; According to the user configuration requirements corresponding to the download information configuration template, the program running data is downloaded to the corresponding target download address.

6. The method according to claim 1, characterized in that Also includes: If the program running data is not successfully transmitted to the destination server according to the user configuration requirement corresponding to the in-network information configuration template, or if the program running data is not successfully transmitted to the destination server according to the user configuration requirement corresponding to the out-network information configuration template, a first prompt message is generated; Determine a transmission timestamp for transmitting the program execution data to the destination server again according to the reason for unsuccessful transmission, and send the transmission timestamp for transmitting the program execution data to the destination server again and the first prompt message to the destination server.

7. The method according to claim 1, characterized in that Also includes: If the program running data has been successfully transmitted to the destination server according to the user configuration requirements corresponding to the in-network information configuration template, or if the program running data has been successfully transmitted to the destination server according to the user configuration requirements corresponding to the out-network information configuration template, a second prompt message is generated; The second prompt message is sent to the user equipment and the destination server.

8. A data transmission device used in a code editor, characterized in that: include: a determining module, configured to, in response to a user device performing an operation on uploading program execution data in a program code editor, determine a data transmission policy corresponding to the program execution data based on a destination server corresponding to the program execution data, the destination server being a server that receives the program execution data; a first processing module, configured to, when the data transmission strategy corresponding to the program running data is the intra-network transmission strategy, schedule the data transmission protocol corresponding to the program running data to be an intra-local area network transmission protocol, generate an intra-network information configuration template corresponding to the intra-local area network transmission protocol, and transmit the program running data to the destination server according to a user configuration requirement corresponding to the intra-network information configuration template; The second processing module is used to schedule the data transmission protocol corresponding to the program running data to be a cross-LAN transmission protocol when the data transmission strategy corresponding to the program running data is an off-network transmission strategy, and generate an off-network information configuration template corresponding to the cross-LAN transmission protocol, and transmit the program running data to the destination server according to the user configuration requirements corresponding to the off-network information configuration template.

9. A computer device, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method for transmitting data in a code editor as claimed in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for transmitting data in a code editor as claimed in any one of claims 1 to 7 is implemented.