CN103888505B - A kind of method, system, terminal device and the server of file transmission - Google Patents
A kind of method, system, terminal device and the server of file transmission Download PDFInfo
- Publication number
- CN103888505B CN103888505B CN201310612854.0A CN201310612854A CN103888505B CN 103888505 B CN103888505 B CN 103888505B CN 201310612854 A CN201310612854 A CN 201310612854A CN 103888505 B CN103888505 B CN 103888505B
- Authority
- CN
- China
- Prior art keywords
- file
- server
- terminal equipment
- resource
- terminal device
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种文件传输的方法、系统、终端设备以及服务器,其中所述方法包括:当第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;在第一终端设备侧接收第二终端设备返回的文件接收响应信息。本发明降低了服务器的通信压力,提高了服务器的性能,并提高了文件传输的效率,节省了文件传输的时间。
The present invention discloses a file transmission method, system, terminal device and server, wherein the method includes: when the second terminal device wirelessly accesses the first terminal device, uploading the target file through the floating window on the side of the first terminal device The resource is sent to the first server; the download address of the target file resource returned by the first server is received at the first terminal device side, and the download address of the target file resource is the first server according to the target file resource. Resource generation; building an information package on the first terminal device side according to the download address of the target file resource and sending it to the second server; receiving the file reception response information returned by the second terminal device on the first terminal device side. The invention reduces the communication pressure of the server, improves the performance of the server, improves the efficiency of file transmission, and saves the time of file transmission.
Description
技术领域technical field
本发明涉及数据传输技术领域,具体涉及一种文件传输的方法、一种用于文件传输的终端设备、一种文件传输的系统,以及一种用于文件传输的服务器。The present invention relates to the technical field of data transmission, in particular to a file transmission method, a terminal device for file transmission, a file transmission system, and a file transmission server.
背景技术Background technique
随着移动通信技术的快速发展,如手机等移动设备已经广泛应用在学习、娱乐、工作等方面,在人们的日常生活中扮演着越来越重要的角色。With the rapid development of mobile communication technology, mobile devices such as mobile phones have been widely used in learning, entertainment, work, etc., and play an increasingly important role in people's daily life.
由于移动设备的功能越来越多样,因此就需要与计算设备连接,进行数据传输。例如,将计算设备中的办公文件传输到移动设备中,方便随时查看;又如,将移动设备中的照片等传输到计算设备中,进行图像处理、保存等操作。Since mobile devices have more and more functions, they need to be connected with computing devices for data transmission. For example, transfer office files from the computing device to the mobile device for easy viewing at any time; another example, transfer photos from the mobile device to the computing device for image processing and storage.
通常,移动设备可以采用数据线和计算设备进行连接,此时,可以将移动设备看作是计算设备上的一个移动存储设备,从而通过数据线可以使移动设备和计算设备实现数据传输。但通过数据线的方式进行移动设备和计算设备的连接,需要时刻携带数据线,操作麻烦,并且长期使用容易导致USB接口磨损。Usually, the mobile device can be connected with the computing device through a data cable. At this time, the mobile device can be regarded as a mobile storage device on the computing device, so that the mobile device and the computing device can realize data transmission through the data cable. However, the connection between the mobile device and the computing device through the data cable requires the data cable to be carried at all times, which is cumbersome to operate, and long-term use is likely to cause wear and tear on the USB interface.
因此,移动设备与计算设备之间进行无线连接的方式应运而生。对于无线连接而言,主要有以下情况:Therefore, a wireless connection method between a mobile device and a computing device has emerged. For wireless connections, the main situations are as follows:
1、有无线路由1. There is a wireless router
这种方式是移动设备通过wifi连到路由,计算设备通过wifi或网线连到路由;在移动设备上用websharing、虚拟数据线、文件大师等软件开通ftp服务,计算设备上用浏览器打开ftp后,进行文件传输。In this way, the mobile device is connected to the router through wifi, and the computing device is connected to the router through wifi or a network cable; the ftp service is opened on the mobile device with software such as websharing, virtual data cable, and file master, and the ftp service is opened on the computing device with a browser. , to perform file transfer.
2、没有无线路由,计算设备有无线网卡2. There is no wireless router, and the computing device has a wireless network card
2.1无线网卡支持mywifi技术2.1 wireless network card supports mywifi technology
把计算设备设为wifi热点(xp下手工设置,win7下手工设置或用connectify软件),移动设备通过wifi连到计算设备;在移动设备上用websharing、虚拟数据线、文件大师等软件开通ftp服务,计算设备上用浏览器打开ftp后进行文件传输。Set the computing device as a wifi hotspot (manual setting under xp, manual setting under win7 or use connectify software), connect the mobile device to the computing device through wifi; use websharing, virtual data line, file master and other software to open ftp service on the mobile device , file transfer is performed after opening ftp with a browser on the computing device.
2.2无线网卡不支持mywifi技术2.2 The wireless network card does not support mywifi technology
把移动设备wifi热点打开,计算设备通过wifi连到移动设备;在移动设备上用websharing、虚拟数据线、文件大师等软件开通ftp服务,计算设备上用浏览器打开ftp后进行文件传输。Turn on the wifi hotspot of the mobile device, and connect the computing device to the mobile device through wifi; use software such as websharing, virtual data cable, and file master to open the ftp service on the mobile device, and use the browser to open ftp on the computing device to transfer files.
然而,无线连接的情况下,若需要传输的文件比较大,移动设备与计算设备在进行文件传输时的传输速度就比较慢,文件传输花费的时间比较长,从而给使用者带来了不便,降低了用户体验。However, in the case of a wireless connection, if the file to be transferred is relatively large, the transfer speed between the mobile device and the computing device is relatively slow, and the file transfer takes a long time, which brings inconvenience to the user. Reduced user experience.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种文件传输的方法和相应的一种文件传输的系统、一种用于文件传输的终端设备、一种用于文件传输的服务器。In view of the above problems, the present invention is proposed to provide a file transfer method and a corresponding file transfer system, a terminal device for file transfer, a A server for file transfers.
依据本发明的一个方面,提供了一种文件传输的方法,包括:According to one aspect of the present invention, a method for file transfer is provided, including:
当第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;When the second terminal device wirelessly accesses the first terminal device, the target file resource is sent to the first server through the floating window on the side of the first terminal device;
在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;receiving the download address of the target file resource returned by the first server at the first terminal device side, where the download address of the target file resource is generated by the first server according to the target file resource;
在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;Constructing an information packet on the side of the first terminal device according to the download address of the target file resource and sending it to the second server;
在第一终端设备侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成。The file reception response information returned by the second terminal device is received at the first terminal device side. The file reception response information is that the second terminal device receives the file acquisition message sent by the second server through the third server, according to the file The acquisition message acquires the information package from the second server, and is generated after downloading the corresponding target file resource from the first server according to the target file resource download address carried in the information package.
可选地,所述在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中的步骤包括:Optionally, the step of sending the target file resource to the first server through the floating window on the side of the first terminal device includes:
在第一终端设备侧依据用户针对悬浮窗口的指定操作生成文件发送请求,所述指定操作包括用户将目标文件资源拖送到悬浮窗口的操作,和/或,用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作;On the side of the first terminal device, a file sending request is generated according to the user's specified operation on the floating window, the specified operation includes the operation of the user dragging the target file resource to the floating window, and/or, the user clicks on the file selection on the floating window button, the operation of selecting the path of the target file resource in the file path selection window popped up by the first terminal device;
在第一终端设备侧将所述文件发送请求发送至第一服务器中;Sending the file sending request to the first server at the first terminal device side;
在第一终端设备侧接收所述第一服务器返回的文件响应消息;receiving the file response message returned by the first server at the first terminal device side;
在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中。The first terminal device side sends the target file resource to the first server according to the file response message.
可选地,所述在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中的步骤包括:Optionally, the step of sending the target file resource to the first server according to the file response message at the first terminal device side includes:
在第一终端设备侧依据所述文件响应消息对将所述目标文件资源进行加密;Encrypting the target file resource at the first terminal device side according to the file response message;
将所述加密后的目标文件资源发送至第一服务器中。Send the encrypted target file resource to the first server.
可选地,所述目标文件资源为第一终端侧依据用户发出的文件资源选定指令获得的文件资源;所述文件资源选定指令为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令,或者,所述文件资源选定指令为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。Optionally, the target file resource is a file resource obtained by the first terminal side according to a file resource selection instruction issued by the user; the file resource selection instruction is a file resource download list displayed by the user on the first terminal device side The selected download instruction for a certain file resource, or, the file resource selection instruction is a selection instruction for a certain file resource selected by the user from the file resources stored on the side of the first terminal device.
可选地,所述在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中的步骤包括:Optionally, the step of constructing an information package on the side of the first terminal device according to the download address of the target file resource and sending it to the second server includes:
在第一终端设备侧获取所述第二终端设备的标识;Acquiring the identity of the second terminal device at the first terminal device side;
在第一终端设备侧获取所述目标文件资源的文件属性信息;Acquiring file attribute information of the target file resource at the first terminal device side;
在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包;Constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device at the first terminal device side;
在第一终端设备侧将所述信息包发送至第二服务器中。The information packet is sent to the second server at the side of the first terminal device.
可选地,所述方法还包括:Optionally, the method also includes:
在第一终端设备侧接收第三服务器发送的信息确认指令;receiving an information confirmation instruction sent by the third server at the first terminal device side;
在第一终端设备侧将所述信息确认指令展示给用户;presenting the information confirmation instruction to the user at the first terminal device side;
接收用户选择的确认信息,并将所述确认信息发送至第二服务器中。The confirmation information selected by the user is received, and the confirmation information is sent to the second server.
可选地,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息。Optionally, the information confirmation instruction includes the identity of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is to confirm the second terminal device according to the user selection. Information generated by the second terminal device corresponding to the device identifier as the file recipient; the second confirmation information is based on the user's selection of not confirming that the second terminal device corresponding to the second terminal device identifier is the file recipient information generated.
可选地,所述方法还包括:Optionally, the method also includes:
在第一终端设备侧生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表。A file sending list is generated on the side of the first terminal device, and the file sending list is a list organized by target file resources sent through the floating window.
可选地,所述文件发送列表中针对每个目标文件资源具有文件发送状态信息,所述文件发送状态信息包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。Optionally, the file sending list has file sending status information for each target file resource, and the file sending status information includes a successful sending status, a sending status, a waiting status for sending, and a sending failure status.
可选地,所述目标文件资源的文件属性信息还包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。Optionally, the file attribute information of the target file resource further includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource.
可选地,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。Optionally, the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, and e-books.
可选地,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。Optionally, the first server is a file server, the second server is an application server, and the third server is a push server.
依据本发明的另一方面,提供了一种文件传输的方法,包括:According to another aspect of the present invention, a method for file transfer is provided, including:
在第二服务器侧接收第一终端设备侧发送的信息包,所述信息包包括第二终端设备的标识;receiving an information packet sent by the first terminal device at the second server side, the information packet including the identifier of the second terminal device;
在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中;generating a file acquisition message on the second server side according to the identity of the second terminal device and sending it to the third server;
在第二服务器侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成;The file receiving response information returned by the second terminal device is received at the second server side. The file receiving response information is that the second terminal device obtains the file according to the file after receiving the file obtaining message sent by the second server through the third server. The message obtains the information package from the second server, and generates it after downloading the corresponding target file resource from the first server according to the target file resource download address carried in the information package;
在第二服务器侧将所述文件接收响应信息发送至第一终端设备。The second server side sends the file receiving response information to the first terminal device.
可选地,在所述依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中的步骤之前,还包括:Optionally, before the step of generating a file acquisition message according to the identifier of the second terminal device and sending it to the third server, the method further includes:
在第二服务器侧生成信息确认指令;generating an information confirmation instruction at the second server side;
在第二服务器侧将所述信息确认指令发送至第三服务器中,由第三服务器发送至第一终端设备侧;Sending the information confirmation instruction to the third server at the second server side, and sending it to the first terminal device side by the third server;
在第二服务器侧接收第一终端设备返回的确认信息。The confirmation information returned by the first terminal device is received at the second server side.
可选地,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;Optionally, the information confirmation instruction includes the identity of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is to confirm the second terminal device according to the user selection. Information generated by the second terminal device corresponding to the device identifier as the file recipient; the second confirmation information is based on the user's selection of not confirming that the second terminal device corresponding to the second terminal device identifier is the file recipient information generated by;
所述方法还包括:The method also includes:
若所述确认信息为第一确认信息,则执行所述在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中的步骤;If the confirmation information is the first confirmation information, execute the step of generating a file acquisition message on the second server side according to the identification of the second terminal device and sending it to the third server;
若所述确认信息为第二确认信息,则在第二服务器侧重新获取第二终端设备的标识。If the confirmation information is the second confirmation information, the identifier of the second terminal device is reacquired at the second server side.
依据本发明的另一方面,提供了一种文件传输的方法,包括:According to another aspect of the present invention, a method for file transfer is provided, including:
在第三服务器侧接收第二服务器发送的文件获取消息,所述文件获取消息包括第二终端设备的标识;receiving, at the third server side, a file acquisition message sent by the second server, where the file acquisition message includes the identifier of the second terminal device;
在第三服务器侧将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧。Sending the file acquisition message to the second terminal device side corresponding to the identifier of the second terminal device at the third server side.
可选地,所述方法还包括:Optionally, the method also includes:
在第三服务器侧接收第二服务器发送的信息确认指令;receiving an information confirmation instruction sent by the second server at the third server side;
在第三服务器侧将所述信息确认指令发送至第一终端设备中。The third server side sends the information confirmation instruction to the first terminal device.
依据本发明的另一方面,提供了一种文件传输的方法,包括:According to another aspect of the present invention, a method for file transfer is provided, including:
在第二终端设备侧接收第三服务器发送的文件获取消息;receiving a file acquisition message sent by the third server at the second terminal device side;
在第二终端设备侧依据所述文件获取消息从第二服务器中获取对应的信息包,所述信息包包括目标文件资源的下载地址;Obtain a corresponding information package from the second server according to the file acquisition message at the second terminal device side, where the information package includes the download address of the target file resource;
在第二终端设备侧依据所述目标文件资源的下载地址从第一服务器中下载对应的目标文件资源;Downloading the corresponding target file resource from the first server according to the download address of the target file resource at the second terminal device side;
在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至第二服务器中。The second terminal device generates file reception response information according to the target file resource and sends it to the second server.
可选地,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的类型,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书,所述的方法还包括:Optionally, the information package includes file attribute information, the file attribute information includes the type of the target file resource, and the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, e-books, The method also includes:
若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书,则将所述目标文件资源存储在第二终端设备侧;If the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, then store the target file resource on the side of the second terminal device;
若所述目标文件资源的类型为软件和/或游戏,则直接安装所述目标文件资源。If the type of the target file resource is software and/or game, then directly install the target file resource.
可选地,在所述在第二终端设备侧接收第三服务器发送的文件获取消息的步骤之前,还包括:Optionally, before the step of receiving the file acquisition message sent by the third server at the second terminal device side, the method further includes:
在第二终端设备侧监听网络状态,所述网络状态包括当前网络可用;Monitoring network status at the second terminal device side, where the network status includes that the current network is available;
若当前网络可用,则在第二终端设备侧连接当前网络;If the current network is available, connect to the current network at the second terminal device side;
在第二终端设备侧连接所述第三服务器。The third server is connected to the second terminal device side.
可选地,若所述第二终端设备为移动设备,所述在第二终端设备侧监听网络状态的步骤包括:Optionally, if the second terminal device is a mobile device, the step of monitoring network status on the second terminal device side includes:
在所述第二终端设备侧注册网络状态变化接收服务ConnctionChangeReceiver;Registering the network state change receiving service ConnctionChangeReceiver on the second terminal device side;
在第二终端设备侧采用所述网络状态变化接收服务ConnctionChangeReceiver接收系统服务SystemService发出的广播CONNECTIVITY_CHANGE;Use the network status change receiving service ConnctionChangeReceiver on the second terminal device side to receive the broadcast CONNECTIVITY_CHANGE sent by the system service SystemService;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为真,则判定当前网络可用;If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is true, it is determined that the current network is available;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为假,则判定当前网络不可用。If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is false, it is determined that the current network is unavailable.
可选地,若所述第二终端设备为计算设备,所述在第二终端设备侧监听网络状态的步骤包括:Optionally, if the second terminal device is a computing device, the step of monitoring network status on the second terminal device side includes:
在第二终端设备侧调用网络接口API查询当前的网络状态。Calling the network interface API on the side of the second terminal device to query the current network status.
依据本发明的另一方面,提供了一种用于文件传输的终端设备,包括:According to another aspect of the present invention, a terminal device for file transfer is provided, including:
目标文件资源发送模块,适于在第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;The target file resource sending module is adapted to send the target file resource to the first server through the floating window on the side of the first terminal device when the second terminal device wirelessly accesses the first terminal device;
下载地址接收模块,适于在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;The download address receiving module is adapted to receive the download address of the target file resource returned by the first server at the first terminal device side, and the download address of the target file resource is determined by the first server according to the target file resource. generate;
下载地址发送模块,适于在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;The download address sending module is adapted to construct an information packet on the first terminal device side according to the download address of the target file resource and send it to the second server;
文件接收响应信息接收模块,适于在第一终端设备侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成。The file receiving response information receiving module is adapted to receive the file receiving response information returned by the second terminal device on the side of the first terminal device. After the file acquisition message, the information package is obtained from the second server according to the file acquisition message, and the corresponding target file resource is downloaded from the first server according to the target file resource download address carried in the information package and generated.
可选地,所述目标文件资源发送模块还适于:Optionally, the target file resource sending module is also suitable for:
在第一终端设备侧依据用户针对悬浮窗口的指定操作生成文件发送请求,所述指定操作包括用户将目标文件资源拖送到悬浮窗口的操作,和/或,用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作;On the side of the first terminal device, a file sending request is generated according to the user's specified operation on the floating window, the specified operation includes the operation of the user dragging the target file resource to the floating window, and/or, the user clicks on the file selection on the floating window button, the operation of selecting the path of the target file resource in the file path selection window popped up by the first terminal device;
在第一终端设备侧将所述文件发送请求发送至第一服务器中;Sending the file sending request to the first server at the first terminal device side;
在第一终端设备侧接收所述第一服务器返回的文件响应消息;receiving the file response message returned by the first server at the first terminal device side;
在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中。The first terminal device side sends the target file resource to the first server according to the file response message.
可选地,所述目标文件资源发送模块还适于:Optionally, the target file resource sending module is also suitable for:
在第一终端设备侧依据所述文件响应消息对将所述目标文件资源进行加密;Encrypting the target file resource at the first terminal device side according to the file response message;
将所述加密后的目标文件资源发送至第一服务器中。Send the encrypted target file resource to the first server.
可选地,所述目标文件资源为第一终端侧依据用户发出的文件资源选定指令获得的文件资源;所述文件资源选定指令为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令,或者,所述文件资源选定指令为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。Optionally, the target file resource is a file resource obtained by the first terminal side according to a file resource selection instruction issued by the user; the file resource selection instruction is a file resource download list displayed by the user on the first terminal device side The selected download instruction for a certain file resource, or, the file resource selection instruction is a selection instruction for a certain file resource selected by the user from the file resources stored on the side of the first terminal device.
可选地,所述下载地址发送模块还适于:Optionally, the download address sending module is also suitable for:
在第一终端设备侧获取所述第二终端设备的标识;Acquiring the identity of the second terminal device at the first terminal device side;
在第一终端设备侧获取所述目标文件资源的文件属性信息;Acquiring file attribute information of the target file resource at the first terminal device side;
在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包;Constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device at the first terminal device side;
在第一终端设备侧将所述信息包发送至第二服务器中。The information packet is sent to the second server at the side of the first terminal device.
可选地,所述终端设备还包括:Optionally, the terminal device also includes:
信息确认指令发送模块,适于在第一终端设备侧接收第三服务器发送的信息确认指令;The information confirmation instruction sending module is adapted to receive the information confirmation instruction sent by the third server on the side of the first terminal device;
展示模块,适于在第一终端设备侧将所述信息确认指令展示给用户;A display module, adapted to display the information confirmation instruction to the user on the side of the first terminal device;
确认信息接收模块,适于接收用户选择的确认信息,并将所述确认信息发送至第二服务器中。The confirmation information receiving module is adapted to receive the confirmation information selected by the user, and send the confirmation information to the second server.
可选地,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息。Optionally, the information confirmation instruction includes the identity of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is to confirm the second terminal device according to the user selection. Information generated by the second terminal device corresponding to the device identifier as the file recipient; the second confirmation information is based on the user's selection of not confirming that the second terminal device corresponding to the second terminal device identifier is the file recipient information generated.
可选地,所述终端设备还包括:Optionally, the terminal device also includes:
文件发送列表生成模块,适于在第一终端设备侧生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表。The file sending list generating module is adapted to generate a file sending list on the side of the first terminal device, and the file sending list is a list organized by target file resources to be sent through the floating window.
可选地,所述文件发送列表中针对每个目标文件资源具有文件发送状态信息,所述文件发送状态信息包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。Optionally, the file sending list has file sending status information for each target file resource, and the file sending status information includes a successful sending status, a sending status, a waiting status for sending, and a sending failure status.
可选地,所述目标文件资源的文件属性信息还包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。Optionally, the file attribute information of the target file resource further includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource.
可选地,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。Optionally, the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, and e-books.
可选地,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。Optionally, the first server is a file server, the second server is an application server, and the third server is a push server.
依据本发明的另一方面,提供了一种用于文件传输的服务器,包括:According to another aspect of the present invention, a server for file transfer is provided, including:
信息包接收模块,适于在第二服务器侧接收第一终端设备侧发送的信息包,所述信息包包括第二终端设备的标识;An information packet receiving module, adapted to receive, on the second server side, an information packet sent by the first terminal device side, where the information packet includes an identifier of the second terminal device;
第一文件获取消息发送模块,适于在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中;The first file acquisition message sending module is adapted to generate a file acquisition message on the second server side according to the identification of the second terminal device and send it to the third server;
文件接收响应信息接收模块,适于在第二服务器侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成;The file reception response information receiving module is adapted to receive the file reception response information returned by the second terminal device on the second server side, and the file reception response information is the second terminal device receiving the file sent by the second server through the third server After obtaining the message, obtain the information packet from the second server according to the file obtaining message, and download the corresponding target file resource from the first server according to the download address of the target file resource carried in the information packet, and then generate it;
文件接收响应信息发送模块,适于在第二服务器侧将所述文件接收响应信息发送至第一终端设备。The file receiving response information sending module is adapted to send the file receiving response information to the first terminal device at the second server side.
可选地,所述服务器还包括:Optionally, the server also includes:
信息确认指令生成模块,适于在所述依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中之前,在第二服务器侧生成信息确认指令;An information confirmation instruction generation module, adapted to generate an information confirmation instruction on the second server side before the file acquisition message generated according to the identification of the second terminal device is sent to the third server;
信息确认指令发送模块,适于在第二服务器侧将所述信息确认指令发送至第三服务器中,由第三服务器发送至第一终端设备侧;The information confirmation instruction sending module is adapted to send the information confirmation instruction to the third server on the second server side, and the third server sends it to the first terminal device side;
确认消息接收模块,适于在第二服务器侧接收第一终端设备返回的确认信息。The confirmation message receiving module is adapted to receive confirmation information returned by the first terminal device at the second server side.
可选地,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;Optionally, the information confirmation instruction includes the identity of the second terminal device, and the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is to confirm the second terminal device according to the user selection. Information generated by the second terminal device corresponding to the device identifier as the file recipient; the second confirmation information is based on the user's selection of not confirming that the second terminal device corresponding to the second terminal device identifier is the file recipient information generated by;
所述服务器还包括:The server also includes:
调用模块,适于在所述确认信息为第一确认信息时,调用第一文件获取消息发送模块;The calling module is adapted to call the first file acquisition message sending module when the confirmation information is the first confirmation information;
标识获取模块,适于在所述确认信息为第二确认信息时,在第二服务器侧重新获取第二终端设备的标识。The identification obtaining module is adapted to re-acquire the identification of the second terminal device at the second server side when the confirmation information is the second confirmation information.
依据本发明的另一方面,提供了一种用于文件传输的服务器,包括:According to another aspect of the present invention, a server for file transfer is provided, including:
第一文件获取消息接收模块,适于在第三服务器侧接收第二服务器发送的文件获取消息,所述文件获取消息包括第二终端设备的标识;The first file acquisition message receiving module is adapted to receive the file acquisition message sent by the second server at the third server side, the file acquisition message including the identifier of the second terminal device;
第二文件获取消息发送模块,适于将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧。The second file acquisition message sending module is adapted to send the file acquisition message to the side of the second terminal device corresponding to the identifier of the second terminal device.
可选地,所述服务器还包括:Optionally, the server also includes:
信息确认指令接收模块,适于在第三服务器侧接收第二服务器发送的信息确认指令;The information confirmation instruction receiving module is adapted to receive the information confirmation instruction sent by the second server on the third server side;
信息确认指令发送模块,适于在第三服务器侧将所述信息确认指令发送至第一终端设备中。The information confirmation instruction sending module is adapted to send the information confirmation instruction to the first terminal device at the third server side.
依据本发明的另一方面,提供了一种用于文件传输的终端设备,包括:According to another aspect of the present invention, a terminal device for file transfer is provided, including:
第二文件获取消息接收模块,适于在第二终端设备侧接收第三服务器发送的文件获取消息;The second file acquisition message receiving module is adapted to receive the file acquisition message sent by the third server on the side of the second terminal device;
信息包获取模块,适于在第二终端设备侧依据所述文件获取消息从第二服务器中获取对应的信息包,所述信息包包括目标文件资源的下载地址;The information package acquisition module is adapted to acquire the corresponding information package from the second server according to the file acquisition message on the side of the second terminal device, the information package including the download address of the target file resource;
目标文件资源下载模块,适于在第二终端设备侧依据所述目标文件资源的下载地址从第一服务器中下载对应的目标文件资源;The target file resource download module is adapted to download the corresponding target file resource from the first server according to the download address of the target file resource on the second terminal device side;
文件接收响应信息生成模块,适于在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至第二服务器中。The file receiving response information generating module is adapted to generate file receiving response information on the second terminal device side according to the target file resource and send it to the second server.
可选地,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的类型,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书,所述的终端设备还包括:Optionally, the information package includes file attribute information, the file attribute information includes the type of the target file resource, and the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, e-books, The terminal equipment also includes:
若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书,则将所述目标文件资源存储在第二终端设备侧;If the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, then store the target file resource on the side of the second terminal device;
若所述目标文件资源的类型为软件和/或游戏,则直接安装所述目标文件资源。If the type of the target file resource is software and/or game, then directly install the target file resource.
可选地,所述终端设备还包括:Optionally, the terminal device further includes:
监听模块,适于在所述在第二终端设备侧接收第三服务器发送的文件获取消息之前,在第二终端设备侧监听网络状态,所述网络状态包括当前网络可用;The monitoring module is adapted to monitor the network status on the second terminal device side before receiving the file acquisition message sent by the third server at the second terminal device side, and the network status includes the current network availability;
第一连接模块,适于若当前网络可用,则在第二终端设备侧连接当前网络;The first connection module is adapted to connect to the current network on the side of the second terminal device if the current network is available;
第二连接模块,适于在第二终端设备侧连接所述第三服务器。The second connection module is adapted to connect to the third server at the side of the second terminal device.
可选地,若所述第二终端设备为移动设备,所述监听模块还适于:Optionally, if the second terminal device is a mobile device, the monitoring module is further adapted to:
在所述第二终端设备侧注册网络状态变化接收服务ConnctionChangeReceiver;Registering the network state change receiving service ConnctionChangeReceiver on the second terminal device side;
在第二终端设备侧采用所述网络状态变化接收服务ConnctionChangeReceiver接收系统服务SystemService发出的广播CONNECTIVITY_CHANGE;Use the network status change receiving service ConnctionChangeReceiver on the second terminal device side to receive the broadcast CONNECTIVITY_CHANGE sent by the system service SystemService;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为真,则判定当前网络可用;If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is true, it is determined that the current network is available;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为假,则判定当前网络不可用。If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is false, it is determined that the current network is unavailable.
可选地,若所述第二终端设备为计算设备,所述在第二终端设备侧监听网络状态的步骤包括:Optionally, if the second terminal device is a computing device, the step of monitoring network status on the second terminal device side includes:
在第二终端设备侧调用网络接口API查询当前的网络状态。Calling the network interface API on the side of the second terminal device to query the current network status.
依据本发明的另一方面,提供了一种文件传输的系统,包括:第一终端设备、文件服务器、应用服务器,推送服务器、第二终端设备,其中,According to another aspect of the present invention, a file transmission system is provided, including: a first terminal device, a file server, an application server, a push server, and a second terminal device, wherein,
所述第一终端设备,适于在第二终端设备无线接入第一终端设备时,通过悬浮窗口将待发送的目标文件资源发送至文件服务器中,并接收所述文件服务器返回的所述目标文件资源的下载地址,以及,将所述目标文件资源的下载地址构建信息包发送至应用服务器中,以及接收第二终端设备发送的文件接收响应信息;The first terminal device is adapted to send the target file resource to be sent to the file server through the floating window when the second terminal device wirelessly accesses the first terminal device, and receive the target file resource returned by the file server. The download address of the file resource, and, sending the download address construction information package of the target file resource to the application server, and receiving the file reception response information sent by the second terminal device;
所述文件服务器,适于接收所述目标文件资源,依据所述目标文件资源生成对应的目标文件资源的下载地址并发送至第一终端设备中;The file server is adapted to receive the target file resource, generate a download address of the corresponding target file resource according to the target file resource, and send it to the first terminal device;
所述应用服务器,适于接收所述信息包,依据所述信息包中携带的第二终端设备的标识生成文件获取消息发送至推送服务器中,以及接收第二终端设备发送的文件接收响应信息;The application server is adapted to receive the information packet, generate a file acquisition message according to the identifier of the second terminal device carried in the information packet and send it to the push server, and receive a file reception response message sent by the second terminal device;
所述推送服务器,适于将所述文件获取消息发送至所述第二终端设备侧,以及将所述文件接收响应信息发送至第一终端设备侧;The push server is adapted to send the file acquisition message to the second terminal device side, and send the file reception response information to the first terminal device side;
所述第二终端设备,适于依据所述文件获取消息从应用服务器中获取对应的信息包,以及,依据所述信息包携带的目标文件资源的下载地址从文件服务器中下载对应的目标文件资源,以及,依据所述目标文件资源生成文件接收响应信息发送至应用服务器。The second terminal device is adapted to obtain the corresponding information package from the application server according to the file acquisition message, and download the corresponding target file resource from the file server according to the download address of the target file resource carried in the information package , and, according to the target file resource, generate file reception response information and send it to the application server.
可选地,所述第一终端设备还适于:Optionally, the first terminal device is further adapted to:
依据用户针对悬浮窗口的指定操作生成文件发送请求;Generate a file sending request according to the user's specified operation on the floating window;
将所述文件发送请求发送至文件服务器中;Send the file sending request to the file server;
接收所述文件服务器返回的文件响应消息;receiving a file response message returned by the file server;
依据所述文件响应消息将所述目标文件资源发送至文件服务器中。Sending the target file resource to the file server according to the file response message.
可选地,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。Optionally, the information package includes file attribute information, and the file attribute information includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identifier of the target file resource.
可选地,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。Optionally, the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, and e-books.
可选地,所述第二终端设备还适于:Optionally, the second terminal device is further adapted to:
在所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书时,将所述目标文件资源存储在第二终端设备侧;When the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, storing the target file resource on the side of the second terminal device;
在所述目标文件资源的类型为软件和/或游戏时,直接安装所述目标文件资源。When the type of the target file resource is software and/or game, the target file resource is directly installed.
与背景技术相比,本发明具有如下有益效果:Compared with the background technology, the present invention has the following beneficial effects:
在本发明中,第一终端设备与第二终端设备在进行文件资源的传输时,第一终端设备可以首先将文件发送至文件服务器中进行存储,在接收到文件服务器返回的文件的下载地址后,将该下载地址发送至应用服务器进行存储,由应用服务器发送消息通知第二终端设备到文件服务器进行文件的下载,与直接将文件传输至第二终端设备相比,降低了服务器的通信压力,提高了服务器的性能,并提高了文件传输的效率,节省了文件传输的时间。In the present invention, when the first terminal device and the second terminal device are transferring file resources, the first terminal device may first send the file to the file server for storage, and after receiving the download address of the file returned by the file server , sending the download address to the application server for storage, and the application server sends a message to notify the second terminal device to download the file to the file server, which reduces the communication pressure on the server compared with directly transferring the file to the second terminal device, Improve the performance of the server, improve the efficiency of file transfer, and save the time of file transfer.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了本发明的一种文件传输的方法实施例一的步骤流程图;FIG. 1 shows a flow chart of the steps of Embodiment 1 of a file transfer method of the present invention;
图2示出了本发明的一种文件传输的方法实施例二的步骤流程图;FIG. 2 shows a flow chart of the steps of Embodiment 2 of a file transfer method of the present invention;
图3示出了本发明的一种文件传输的方法实施例三的步骤流程图;FIG. 3 shows a flow chart of steps in Embodiment 3 of a file transfer method of the present invention;
图4示出了本发明的一种文件传输的方法实施例四的步骤流程图;FIG. 4 shows a flow chart of steps in Embodiment 4 of a file transfer method of the present invention;
图5示出了本发明的一种文件传输的方法实施例五的步骤流程图;FIG. 5 shows a flow chart of the steps of Embodiment 5 of a file transfer method of the present invention;
图6示出了本发明的一种文件传输的方法实施例五中悬浮窗口指定操作示意图;FIG. 6 shows a schematic diagram of a floating window designation operation in Embodiment 5 of a file transfer method of the present invention;
图7示出了本发明的一种文件传输的方法实施例五中自动关联询问窗口示意图;FIG. 7 shows a schematic diagram of the automatic association query window in Embodiment 5 of a file transfer method of the present invention;
图8示出了本发明的一种用于文件传输的终端设备实施例一的结构框图;FIG. 8 shows a structural block diagram of Embodiment 1 of a terminal device for file transfer according to the present invention;
图9示出了本发明的一种用于文件传输的服务器实施例一的结构框图;FIG. 9 shows a structural block diagram of Embodiment 1 of a server for file transfer according to the present invention;
图10示出了本发明的一种用于文件传输的服务器实施例二的结构框图;FIG. 10 shows a structural block diagram of Embodiment 2 of a server for file transfer of the present invention;
图11示出了本发明的一种用于文件传输的终端设备实施例二的结构框图;FIG. 11 shows a structural block diagram of Embodiment 2 of a terminal device for file transfer according to the present invention;
图12示出了本发明的一种文件传输的系统实施例的结构框图。Fig. 12 shows a structural block diagram of a file transmission system embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参照图1,示出了本发明的一种文件传输的方法实施例一的步骤流程图,本发明实施例从第一终端设备侧进行说明,其中,所述第一终端设备为目标文件资源的发送方,本发明实施例可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a file transfer method of the present invention. The embodiment of the present invention is described from the side of the first terminal device, wherein the first terminal device is the target file resource The sender, the embodiment of the present invention may include the following steps:
步骤101,当第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;Step 101, when the second terminal device wirelessly accesses the first terminal device, send the target file resource to the first server through the floating window on the side of the first terminal device;
其中,所述目标文件资源为第一终端侧依据用户发出的文件资源选定指令获得的文件资源;所述文件资源选定指令为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令,或者,所述文件资源选定指令为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。Wherein, the target file resource is the file resource obtained by the first terminal side according to the file resource selection instruction issued by the user; the file resource selection instruction is the file resource selected by the user from the file resource download list displayed on the first terminal device side A download instruction for a certain file resource, or, the file resource selection instruction is a selection instruction for a certain file resource selected by the user from the file resources stored on the first terminal device side.
在本发明的一种优选实施例中,所述步骤101可以包括如下子步骤:In a preferred embodiment of the present invention, the step 101 may include the following sub-steps:
子步骤S11,在第一终端设备侧依据用户针对悬浮窗口的指定操作生成文件发送请求,所述指定操作包括用户将目标文件资源拖送到悬浮窗口的操作,和/或,用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作;Sub-step S11, on the side of the first terminal device, a file sending request is generated according to the user's specified operation on the floating window, the specified operation includes the operation of the user dragging the target file resource to the floating window, and/or, the user clicks on the floating window The file selection button, the operation of selecting the path of the target file resource in the file path selection window popped up by the first terminal device;
子步骤S12,在第一终端设备侧将所述文件发送请求发送至第一服务器中;Sub-step S12, sending the file sending request to the first server at the first terminal device side;
子步骤S13,在第一终端设备侧接收所述第一服务器返回的文件响应消息;Sub-step S13, receiving the file response message returned by the first server at the first terminal device side;
子步骤S14,在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中。In sub-step S14, the first terminal device sends the target file resource to the first server according to the file response message.
在本发明的一种优选实施例中,所述子步骤S14进一步可以包括如下子步骤:In a preferred embodiment of the present invention, the substep S14 may further include the following substeps:
子步骤S141,在第一终端设备侧依据所述文件响应消息对将所述目标文件资源进行加密;Sub-step S141, encrypting the target file resource on the first terminal device side according to the file response message;
子步骤S142,将所述加密后的目标文件资源发送至第一服务器中。Sub-step S142, sending the encrypted target file resource to the first server.
步骤102,在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;Step 102, receiving, at the first terminal device, the download address of the target file resource returned by the first server, where the download address of the target file resource is generated by the first server according to the target file resource;
步骤103,在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;Step 103, constructing an information package on the first terminal device side according to the download address of the target file resource and sending it to the second server;
在本发明的一种优选实施例中,所述步骤103可以包括如下子步骤:In a preferred embodiment of the present invention, the step 103 may include the following sub-steps:
在第一终端设备侧获取所述第二终端设备的标识;Acquiring the identity of the second terminal device at the first terminal device side;
在第一终端设备侧获取所述目标文件资源的文件属性信息;Acquiring file attribute information of the target file resource at the first terminal device side;
在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包;Constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device at the first terminal device side;
在第一终端设备侧将所述信息包发送至第二服务器中。The information packet is sent to the second server at the side of the first terminal device.
其中,所述目标文件资源的文件属性信息可以包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。Wherein, the file attribute information of the target file resource may include the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource.
作为本发明实施例的一种优选示例,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。As a preferred example of the embodiment of the present invention, the types of the target file resources include themes, wallpapers, ringtones, software, music, games, videos, and e-books.
步骤104,在第一终端设备侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成。Step 104: Receive the file receiving response information returned by the second terminal device at the first terminal device side, the file receiving response information is the second terminal device after receiving the file obtaining message sent by the second server through the third server, according to The file obtaining message obtains the information packet from the second server, and is generated after downloading the corresponding target file resource from the first server according to the download address of the target file resource carried in the information packet.
在本发明的一种优选实施例中,所述方法还可以包括:In a preferred embodiment of the present invention, the method may also include:
在第一终端设备侧接收第三服务器发送的信息确认指令;receiving an information confirmation instruction sent by the third server at the first terminal device side;
在第一终端设备侧将所述信息确认指令展示给用户;presenting the information confirmation instruction to the user at the first terminal device side;
接收用户选择的确认信息,并将所述确认信息发送至第二服务器中。The confirmation information selected by the user is received, and the confirmation information is sent to the second server.
在本发明的一种优选实施例中,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息。In a preferred embodiment of the present invention, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is based on the information selected by the user. The information generated by confirming that the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the user's selection of not confirming the second 2. The information generated by the terminal device as the recipient of the file.
在本发明的一种优选实施例中,所述方法还可以包括:In a preferred embodiment of the present invention, the method may also include:
在第一终端设备侧生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表。A file sending list is generated on the side of the first terminal device, and the file sending list is a list organized by target file resources sent through the floating window.
在本发明的一种优选实施例中,所述文件发送列表中针对每个目标文件资源具有文件发送状态信息,所述文件发送状态信息包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。In a preferred embodiment of the present invention, the file sending list has file sending status information for each target file resource, and the file sending status information includes successful sending status, sending status, waiting to send status, and sending failure state.
需要说明的是,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。It should be noted that the first server is a file server, the second server is an application server, and the third server is a push server.
参照图2,示出了本发明的一种文件传输的方法实施例二的步骤流程图,本发明实施例从第二服务器侧进行说明,其中,所述第二服务器为应用服务器,本发明实施例可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 2 of a file transfer method of the present invention. The embodiment of the present invention is described from the side of the second server, wherein the second server is an application server, and the present invention implements An example may include the following steps:
步骤201,在第二服务器侧接收第一终端设备侧发送的信息包,所述信息包包括第二终端设备的标识;Step 201, receiving an information packet sent by the first terminal device at the second server side, the information packet including the identifier of the second terminal device;
步骤202,在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中;Step 202, generating a file acquisition message on the second server side according to the identity of the second terminal device and sending it to the third server;
步骤203,在第二服务器侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成;Step 203: Receive the file reception response information returned by the second terminal device at the second server side, the file reception response information is that the second terminal device receives the file acquisition message sent by the second server through the third server, according to the The file obtaining message obtains the information packet from the second server, and generates after downloading the corresponding target file resource from the first server according to the target file resource download address carried in the information packet;
步骤204,在第二服务器侧将所述文件接收响应信息发送至第一终端设备。Step 204: Send the file receiving response information to the first terminal device at the second server side.
在本发明的一种优选实施例中,在步骤202之前,还包括:In a preferred embodiment of the present invention, before step 202, it also includes:
在第二服务器侧生成信息确认指令;generating an information confirmation instruction at the second server side;
在第二服务器侧将所述信息确认指令发送至第三服务器中,由第三服务器发送至第一终端设备侧;Sending the information confirmation instruction to the third server at the second server side, and sending it to the first terminal device side by the third server;
在第二服务器侧接收第一终端设备返回的确认信息。The confirmation information returned by the first terminal device is received at the second server side.
在本发明的一种优选实施例中,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;In a preferred embodiment of the present invention, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is based on the information selected by the user. The information generated by confirming that the second terminal device corresponding to the identity of the second terminal device is the file recipient; 2. Information generated by the terminal device as the recipient of the file;
所述方法还包括:The method also includes:
若所述确认信息为第一确认信息,则执行所述在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中的步骤;If the confirmation information is the first confirmation information, execute the step of generating a file acquisition message on the second server side according to the identification of the second terminal device and sending it to the third server;
若所述确认信息为第二确认信息,则在第二服务器侧重新获取第二终端设备的标识。If the confirmation information is the second confirmation information, the identifier of the second terminal device is reacquired at the second server side.
其中,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。Wherein, the first server is a file server, the second server is an application server, and the third server is a push server.
参照图3,示出了本发明的一种文件传输的方法实施例三的步骤流程图,本发明实施例从第三服务器侧进行说明,其中,所述第三服务器为推送服务器,本发明实施例可以包括如下步骤:Referring to FIG. 3 , it shows a flow chart of the steps of Embodiment 3 of a file transfer method of the present invention. The embodiment of the present invention is described from the side of the third server, wherein the third server is a push server, and the present invention implements An example may include the following steps:
步骤301,在第三服务器侧接收第二服务器发送的文件获取消息,所述文件获取消息包括第二终端设备的标识;Step 301, receiving a file acquisition message sent by the second server at the third server side, where the file acquisition message includes the identifier of the second terminal device;
步骤302,在第三服务器侧将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧。Step 302, on the third server side, send the file acquisition message to the side of the second terminal device corresponding to the identifier of the second terminal device.
在本发明的一种优选实施例中,所述方法还包括:In a preferred embodiment of the present invention, the method also includes:
在第三服务器侧接收第二服务器发送的信息确认指令;receiving an information confirmation instruction sent by the second server at the third server side;
在第三服务器侧将所述信息确认指令发送至第一终端设备中。The third server side sends the information confirmation instruction to the first terminal device.
需要说明的是,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。It should be noted that the first server is a file server, the second server is an application server, and the third server is a push server.
参照图4,示出了本发明的一种文件传输的方法实施例四的步骤流程图,本发明实施例从第二终端设备侧进行说明,其中,所述第二终端设备为目标文件资源的接收方,本发明实施例可以包括如下步骤:Referring to FIG. 4 , it shows a flow chart of the steps of Embodiment 4 of a file transfer method of the present invention. The embodiment of the present invention is described from the side of the second terminal device, wherein the second terminal device is the target file resource For the recipient, this embodiment of the present invention may include the following steps:
步骤401,在第二终端设备侧接收第三服务器发送的文件获取消息;Step 401, receiving a file acquisition message sent by a third server at the second terminal device side;
步骤402,在第二终端设备侧依据所述文件获取消息从第二服务器中获取对应的信息包,所述信息包包括目标文件资源的下载地址;Step 402: Obtain a corresponding information packet from the second server according to the file acquisition message on the side of the second terminal device, where the information packet includes the download address of the target file resource;
步骤403,在第二终端设备侧依据所述目标文件资源的下载地址从第一服务器中下载对应的目标文件资源;Step 403, downloading the corresponding target file resource from the first server according to the download address of the target file resource at the second terminal device side;
步骤404,在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至第二服务器中。Step 404: Generate file receiving response information on the second terminal device side according to the target file resource and send it to the second server.
在本发明的一种优选实施例中,所述信息包还可以包括文件属性信息,所述文件属性信息可以包括目标文件资源的类型,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书,所述的方法还可以包括:In a preferred embodiment of the present invention, the information package may also include file attribute information, and the file attribute information may include the type of target file resource, and the type of target file resource includes theme, wallpaper, ringtone, software , music, games, videos, e-books, the method can also include:
若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书,则将所述目标文件资源存储在第二终端设备侧;If the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, then store the target file resource on the side of the second terminal device;
若所述目标文件资源的类型为软件和/或游戏,则直接安装所述目标文件资源。If the type of the target file resource is software and/or game, then directly install the target file resource.
在本发明的一种优选实施例中,在所述步骤401之前,还可以包括:In a preferred embodiment of the present invention, before step 401, it may also include:
在第二终端设备侧监听网络状态,所述网络状态包括当前网络可用以及当前网络不可用;Monitoring the network status on the second terminal device side, the network status includes the current network available and the current network unavailable;
若当前网络可用,则在第二终端设备侧连接当前网络;If the current network is available, connect to the current network at the second terminal device side;
在第二终端设备侧连接所述第三服务器。The third server is connected to the second terminal device side.
在本发明的一种优选实施例中,若所述第二终端设备为移动设备,所述在第二终端设备侧监听网络状态的步骤包括:In a preferred embodiment of the present invention, if the second terminal device is a mobile device, the step of monitoring the network status on the second terminal device side includes:
在所述第二终端设备侧注册网络状态变化接收服务ConnctionChangeReceiver;Registering the network state change receiving service ConnctionChangeReceiver on the second terminal device side;
在第二终端设备侧采用所述网络状态变化接收服务ConnctionChangeReceiver接收系统服务SystemService发出的广播CONNECTIVITY_CHANGE;Use the network status change receiving service ConnctionChangeReceiver on the second terminal device side to receive the broadcast CONNECTIVITY_CHANGE sent by the system service SystemService;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为真,则判定当前网络可用;If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is true, it is determined that the current network is available;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为假,则判定当前网络不可用。If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is false, it is determined that the current network is unavailable.
在本发明的另一种优选实施例中,若所述第二终端设备为计算设备,所述在第二终端设备侧监听网络状态的步骤包括:In another preferred embodiment of the present invention, if the second terminal device is a computing device, the step of monitoring the network status at the second terminal device side includes:
在第二终端设备侧调用网络接口API查询当前的网络状态。Calling the network interface API on the side of the second terminal device to query the current network status.
需要说明的是,所述第一服务器为文件服务器,所述第二服务器为应用服务器,第三服务器为推送服务器。It should be noted that the first server is a file server, the second server is an application server, and the third server is a push server.
参照图5,示出了本发明的一种文件传输的方法实施例五的步骤流程图,在本发明实施例中,所述第一终端设备为目标文件资源的发送方,所述第二终端设备为目标文件资源的接收方,所述第一终端设备和/或所述第二终端设备可以为移动设备或计算设备,其中,所述计算设备是一种能够按照程序运行,自动、高速处理海量数据的智能电子设备,如台式电脑、笔记本电脑等。所述移动设备是一种可以在移动中使用的计算设备,如手机,本发明实施例对第一终端设备以及第二终端设备的类型无需加以限制。Referring to FIG. 5 , it shows a flow chart of the steps of Embodiment 5 of a file transfer method of the present invention. In this embodiment of the present invention, the first terminal device is the sender of the target file resource, and the second terminal The device is the recipient of the target file resource, and the first terminal device and/or the second terminal device may be a mobile device or a computing device, wherein the computing device is a device that can run according to a program and automatically and high-speed process Smart electronic devices with massive amounts of data, such as desktop computers, laptops, etc. The mobile device is a computing device that can be used on the move, such as a mobile phone, and the embodiment of the present invention does not need to limit the types of the first terminal device and the second terminal device.
本发明实施例可以包括如下步骤:Embodiments of the present invention may include the following steps:
步骤501,在第一终端设备侧依据用户发出的文件资源选定指令获取对应的目标文件资源;Step 501: Obtain the corresponding target file resource on the side of the first terminal device according to the file resource selection instruction issued by the user;
在本发明的一种优选实施例中,所述文件资源选定指令可以为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令。具体而言,在第一终端设备侧安装有第一客户端程序,所述第一客户端程序中展示有海量免费的文件资源以供用户下载,用户可以从该第一客户端程序的文件资源中选择自己喜欢的文件资源进行下载。在实际中,当用户通过鼠标或点触操作在第一客户端程序展示的文件资源的下载列表中选定自己喜欢的文件资源后,即生成对应的文件资源下载指令,第一客户端程序接收到所述文件资源下载指令后,从服务器中下载对应的文件资源作为目标文件资源存储到第一终端设备侧。In a preferred embodiment of the present invention, the file resource selection instruction may be a download instruction for a certain file resource selected by the user from the file resource download list displayed on the first terminal device side. Specifically, a first client program is installed on the side of the first terminal device, and a large amount of free file resources are displayed in the first client program for users to download, and users can download from the file resources of the first client program Select your favorite file resources to download. In practice, when the user selects a file resource he or she likes in the download list of file resources displayed by the first client program through a mouse or touch operation, a corresponding file resource download instruction is generated, and the first client program receives After the file resource download instruction is received, the corresponding file resource is downloaded from the server as the target file resource and stored on the side of the first terminal device.
在实际中,所述第一客户端程序在计算机侧开启一悬浮窗口用于目标文件资源的传输,具体来说,悬浮窗口的作用在于,当主程序的窗口在最小化时,还可以提示用户看到该程序的运行状态,并可以通过点击这些小窗口,快捷地打开主程序的窗口。悬浮窗口包含了一个可以供用户访问的预设入口,在屏幕上显示悬浮窗口后,用户可以通过该预设入口访问预设内容或执行预设操作。例如,用户通过点击预设入口可以启动托送发文件的操作。In practice, the first client program opens a floating window on the computer side for the transmission of target file resources. Specifically, the function of the floating window is to prompt the user when the window of the main program is minimized. You can see the running status of the program, and you can quickly open the main program window by clicking on these small windows. The floating window includes a preset entry that can be accessed by the user. After the floating window is displayed on the screen, the user can access preset content or perform preset operations through the preset entry. For example, the user can start the operation of sending a file by clicking a preset entry.
在本发明的另一种优选实施例中,所述文件资源选定指令可以为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。具体而言,用户还可以在第一终端侧存储的已有文件资源中选择某文件资源作为目标文件资源。In another preferred embodiment of the present invention, the instruction for selecting a file resource may be an instruction for selecting a certain file resource selected by the user from the file resources stored on the side of the first terminal device. Specifically, the user may also select a certain file resource from existing file resources stored on the first terminal side as the target file resource.
作为本实施例的一种优选示例,所述目标文件资源具有文件属性信息,所述文件属性信息可以包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识等等。其中,所述目标文件资源的类型可以包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书等多种类型。As a preferred example of this embodiment, the target file resource has file attribute information, and the file attribute information may include the size of the target file resource, the type of the target file resource, the version number of the target file resource, the logo and so on. Wherein, the type of the target file resource may include various types such as theme, wallpaper, ringtone, software, music, game, video, and e-book.
步骤502,当第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将所述目标文件资源发送至文件服务器中;Step 502, when the second terminal device wirelessly accesses the first terminal device, send the target file resource to the file server through the floating window on the side of the first terminal device;
具体而言,在第一终端设备侧获取到目标文件资源后,第一终端设备采用所述第一客户端程序检测是否有第二终端设备接入,在有第二终端设备接入的情况下,第一客户端程序检测用户有没有针对悬浮窗口发起指定操作。其中,所述针对悬浮窗口发起的指定操作可以有多种方式,参考图6所示的悬浮窗口指定操作示意图,作为本实施例的一种优选示例,所述用户针对悬浮窗口发起的指定操作可以包括用户将目标文件资源拖送到悬浮窗口的操作,即用户从第一终端侧存储的文件资源中选择目标文件资源后,直接将目标文件资源拖到悬浮窗口中的操作。作为本实施例的另一种优选示例,所述用户针对悬浮窗口发起的指定操作可以包括用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作,例如,所述文件选定按钮可以为图6所示的“选择要发送的文件”的功能按钮,点击文件选定按钮后,第一终端设备侧会弹出文件路径选择窗口,用户可以在该文件路径选择窗口中选择目标文件资源的路径。Specifically, after the first terminal device obtains the target file resource, the first terminal device uses the first client program to detect whether there is a second terminal device accessing, and if there is a second terminal device accessing , the first client program detects whether the user initiates a specified operation on the floating window. Wherein, the specified operation initiated for the floating window can be in various ways. Referring to the schematic diagram of the specified operation for the floating window shown in FIG. 6, as a preferred example of this embodiment, the specified operation initiated by the user for the floating window can be It includes an operation for the user to drag the target file resource to the floating window, that is, an operation for the user to directly drag the target file resource to the floating window after selecting the target file resource from the file resources stored on the first terminal side. As another preferred example of this embodiment, the specified operation initiated by the user on the floating window may include the user clicking a file selection button on the floating window, and selecting the target file resource in the file path selection window popped up by the first terminal device The operation of the path, for example, the file selection button can be the function button of "select the file to be sent" shown in Figure 6, after clicking the file selection button, the first terminal device side will pop up a file path selection window, The user can select the path of the target file resource in the file path selection window.
第一客户端程序在检测到用户针对悬浮窗口发起指定操作时,依据用户触发的发送指令将所述目标文件资源发送至第一服务器侧。在实际应用中,用户触发的发送指令的方式可以有多种,例如可以点击“发送文件”等类似功能按钮,以实现目标文件资源的发送;或者,若第一终端设备中安装有重力感应装置,还可以通过摇动第一终端设备来触发重力感应装置,进而实现对所述目标文件资源的发送。本发明实施例中,所述摇动可以理解为能够触发重力感应装置的任意操作,如上下或左右晃动所述移动设备等,本发明实施例对具体的操作不做限定。When the first client program detects that the user initiates a specified operation on the floating window, it sends the target file resource to the first server side according to a sending instruction triggered by the user. In practical applications, there are many ways for the user to trigger the sending instruction. For example, you can click on a similar function button such as "send file" to realize the sending of the target file resource; or, if the first terminal device is equipped with a gravity sensing device , the gravity sensing device may also be triggered by shaking the first terminal device, so as to realize the sending of the target file resource. In the embodiment of the present invention, the shaking can be understood as being able to trigger any operation of the gravity sensing device, such as shaking the mobile device up and down or left and right, and the embodiment of the present invention does not limit the specific operation.
在本发明的一种优选实施例中,当接收到用户发送的发送指令后,步骤502进一步可以为,在第一终端设备侧依据所述用户针对悬浮窗口的指定操作生成文件发送请求;在第一终端设备侧将所述文件发送请求发送至文件服务器中;在第一终端设备侧接收所述文件服务器返回的文件响应消息;在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至文件服务器中。In a preferred embodiment of the present invention, after receiving the sending instruction sent by the user, step 502 may further include generating a file sending request on the first terminal device side according to the user's specified operation on the floating window; A terminal device side sends the file sending request to the file server; the first terminal device side receives the file response message returned by the file server; the first terminal device side sends the target file according to the file response message Resources are sent to the file server.
具体来说,所述文件发送请求可以包括目标文件资源的大小,文件服务器接收到所述文件发送请求后,依据所述目标文件资源的大小判断自身的内存大小是否大于所述目标文件资源的大小,若大于,则文件服务器返回文件响应消息,以通知第一终端设备上传目标文件资源;否则,文件服务器不返回文件响应消息。若第一终端设备在预设时间段内接收到文件响应消息,则将依据所述文件响应消息将所述目标文件资源发送至文件服务器中;若第一终端设备在预设时间段内没有接收到文件响应消息,则不将所述目标文件资源发送至文件服务器中,此时,所述目标文件资源在所述悬浮窗口中处于等待发送状态。Specifically, the file sending request may include the size of the target file resource. After receiving the file sending request, the file server judges whether its own memory size is larger than the size of the target file resource according to the size of the target file resource. , if greater than, the file server returns a file response message to notify the first terminal device to upload the target file resource; otherwise, the file server does not return a file response message. If the first terminal device receives the file response message within the preset time period, it will send the target file resource to the file server according to the file response message; if the first terminal device does not receive the file response message within the preset time period If a file response message is received, the target file resource is not sent to the file server, and at this time, the target file resource is in a state of waiting to be sent in the floating window.
在实际中,为了保障目标文件资源的安全,第一客户端程序在上传所述目标文件资源之前,可以先按照第一预设规则对所述目标文件资源进行加密后再上传至文件服务器中,所述第一预设规则可以为所述第一客户端程序与后台服务器预先约定的加密解密规则。In practice, in order to ensure the security of the target file resource, before uploading the target file resource, the first client program may encrypt the target file resource according to a first preset rule before uploading it to the file server. The first preset rule may be an encryption and decryption rule pre-agreed between the first client program and the background server.
在具体实现中,第二终端设备可以通过扫描第一终端设备上的二维码,与第一终端设备进行关联,以无线接入第一终端设备,其过程可以为(以第一终端设备为计算设备,第二终端设备为移动设备的情况举例):In a specific implementation, the second terminal device can associate with the first terminal device by scanning the two-dimensional code on the first terminal device to wirelessly access the first terminal device, and the process can be (taking the first terminal device as Computing device, the case where the second terminal device is a mobile device is an example):
首先计算设备接收移动设备发送的建立长连接的通知消息,通知消息中包括移动设备的标识;若计算设备允许建立长连接,则计算设备将移动设备的标识和计算设备的标识发送至应用服务器,由应用服务器在关联关系列表中记录移动设备和计算设备的关联关系。First, the computing device receives the notification message of establishing a persistent connection sent by the mobile device, and the notification message includes the identification of the mobile device; if the computing device allows the establishment of a persistent connection, the computing device sends the identification of the mobile device and the identification of the computing device to the application server, The application server records the association relationship between the mobile device and the computing device in the association relationship list.
具体地,建立移动设备和计算设备之间的关联关系,主要包括如下步骤:Specifically, establishing an association relationship between the mobile device and the computing device mainly includes the following steps:
1、移动设备在应用服务器上进行认证;1. The mobile device is authenticated on the application server;
1.1在移动设备启动第二客户端程序(即手机助手);1.1 Start the second client program (i.e. mobile assistant) on the mobile device;
1.2在移动设备上输入手机号后,移动设备将该设备的IMEI和手机号一并发送给应用服务器;1.2 After entering the mobile phone number on the mobile device, the mobile device sends the device's IMEI and mobile phone number to the application server;
1.3应用服务器向移动设备发送带有认证码的短信;1.3 The application server sends a text message with an authentication code to the mobile device;
1.4在移动设备上输入该认证码,然后发给应用服务器;1.4 Enter the authentication code on the mobile device and send it to the application server;
1.5应用服务器根据该认证码、移动设备号以及IMEI来确定该移动设备的标识为该移动设备所拥有。1.5 The application server determines that the identity of the mobile device is owned by the mobile device according to the authentication code, the mobile device number and the IMEI.
2.在计算设备处2. At the Computing Device
2.1在计算设备上启动手机助手;2.1 Start the mobile assistant on the computing device;
2.2输入移动设备的手机号后,计算设备将移动设备的手机号和MID一并发送给应用服务器;2.2 After inputting the mobile phone number of the mobile device, the computing device sends the mobile phone number and MID of the mobile device to the application server;
2.3应用服务器根据接收到的计算设备的MID、手机号在数据库中查询该手机号所对应的移动设备是否在该应用服务器处进行了认证,如果进行了认证,则在关联关系列表中建立计算设备的MID、手机号、该移动设备的IMEI的对应关系,例如把它们作为一条记录存储在关联关系列表中;否则向移动设备发出邀请,邀请流程如下:2.3 The application server inquires in the database whether the mobile device corresponding to the mobile phone number has been authenticated at the application server according to the received MID and mobile phone number of the computing device. If it is authenticated, the computing device is established in the association list The corresponding relationship between the MID, mobile phone number, and the IMEI of the mobile device, for example, store them as a record in the association list; otherwise, send an invitation to the mobile device, and the invitation process is as follows:
2.3.1应用服务器向移动设备发送一条邀请短信,邀请短信中为一激活链接地址;2.3.1 The application server sends an invitation message to the mobile device, and the invitation message contains an activation link address;
2.3.2移动设备接收到该短信时,会弹出一个绑定允许对话框,用户点击确定后,会将该激活链接中的信息发送给应用服务器,应用服务器接收到绑定确认请求后,将该移动设备和对应计算设备绑定。2.3.2 When the mobile device receives the text message, a binding permission dialog box will pop up. After the user clicks OK, the information in the activation link will be sent to the application server. After receiving the binding confirmation request, the application server will send the The mobile device is bound to the corresponding computing device.
关联关系列表结构是The relationship list structure is
消息的数据库表是:The database tables for messages are:
CREATE TABLE`msg`(CREATE TABLE `msg`(
`msgid`INT(10)UNSIGNED NOT NULL AUTO_INCREMENT,`msgid` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`toid`INT(10)UNSIGNED NOT NULL DEFAULT'0'COMMENT'初始速递号【分表KEY】',`toid`INT(10)UNSIGNED NOT NULL DEFAULT'0'COMMENT'initial courier number [sub-table KEY]',
`title`CHAR(255)NOT NULL DEFAULT”COMMENT'消息标题',`title`CHAR(255) NOT NULL DEFAULT”COMMENT’message title’,
`content`TEXT NOT NULL,`content` TEXT NOT NULL,
`isupload`TINYINT(4)UNSIGNED NOT NULL COMMENT'是否本地上传',`isupload`TINYINT(4)UNSIGNED NOT NULL COMMENT'whether to upload locally',
`signature`CHAR(255)NOT NULL DEFAULT”COMMENT'发送者签名',`signature` CHAR(255) NOT NULL DEFAULT "COMMENT 'sender signature',
`fileurl`VARCHAR(2800)NOT NULL DEFAULT”COMMENT'文件下载url',`fileurl` VARCHAR(2800) NOT NULL DEFAULT”COMMENT’file download url’,
`filename`VARCHAR(1200)NOT NULL DEFAULT”COMMENT'文件名',`filename` VARCHAR(1200) NOT NULL DEFAULT "COMMENT'filename',
`filetype`TINYINT(3)UNSIGNED NOT NULL DEFAULT'0'COMMENT'文件类型号',`filetype`TINYINT(3)UNSIGNED NOT NULL DEFAULT'0'COMMENT'file type number',
`filehash`CHAR(32)NOT NULL DEFAULT”COMMENT'文件md5',`filehash` CHAR(32) NOT NULL DEFAULT "COMMENT' file md5',
`filethumb`CHAR(255)NOT NULL DEFAULT”COMMENT'缩略图url',`filethumb` CHAR(255) NOT NULL DEFAULT "COMMENT' thumbnail url',
`fileshorturl`CHAR(64)NOT NULL DEFAULT'0'COMMENT'短链接',`fileshorturl`CHAR(64)NOT NULL DEFAULT'0'COMMENT'short link',
`filesize`INT(10)UNSIGNED NOT NULL DEFAULT'0'COMMENT'文件大小',`filesize`INT(10)UNSIGNED NOT NULL DEFAULT'0'COMMENT'file size',
`status`TINYINT(4)NOT NULL DEFAULT'0',`status`TINYINT(4) NOT NULL DEFAULT'0',
`createtime`DATETIME NOT NULL COMMENT'创建时间',`createtime`DATETIME NOT NULL COMMENT'create time',
`updatetime`DATETIME NOT NULL COMMENT'更新时间',`updatetime`DATETIME NOT NULL COMMENT'Update time',
`flag`TINYINT(3)UNSIGNED NOT NULL DEFAULT'0',`flag`TINYINT(3) UNSIGNED NOT NULL DEFAULT'0',
`fromid`INT(10)UNSIGNED NOT NULL DEFAULT'0',`fromid`INT(10) UNSIGNED NOT NULL DEFAULT'0',
`appid`SMALLINT(5)UNSIGNED NOT NULL DEFAULT'0'COMMENT'应用ID',`appid`SMALLINT(5)UNSIGNED NOT NULL DEFAULT'0'COMMENT'App ID',
`batchid`INT(10)UNSIGNED NULL DEFAULT'0',`batchid` INT(10) UNSIGNED NULL DEFAULT '0',
`_batchid`VARCHAR(200)NULL DEFAULT”,`_batchid` VARCHAR(200) NULL DEFAULT",
PRIMARYKEY(`msgid`),PRIMARYKEY(`msgid`),
INDEX`idx_toid_flag_status_msgid`(`toid`,`flag`,`status`,`msgid`)INDEX `idx_toid_flag_status_msgid`(`toid`, `flag`, `status`, `msgid`)
))
COMMENT='消息表'COMMENT='Message table'
COLLATE='utf8_general_ci'COLLATE='utf8_general_ci'
ENGINE=InnoDB。ENGINE=InnoDB.
具体地,移动设备的标识是mobile1,计算设备的标识是desktop1,当移动设备要和计算设备进行关联的时候,长连接将这个关联请求发送给计算设备,计算设备同意确认后这个关联mobile1<-->desktop1建立起来了。Specifically, the identifier of the mobile device is mobile1, and the identifier of the computing device is desktop1. When the mobile device wants to associate with the computing device, the persistent connection sends the association request to the computing device. After the computing device agrees to confirm, the association mobile1<- ->desktop1 is established.
实际应用中,第一终端设备采用第一客户端程序通过长连接的通知消息获取到第二终端设备的标识,并建立了第一终端设备的标识与所述第二终端设备的标识的关联关系后,可以弹出窗口询问用户是否记住所述第二终端设备的标识(如图7所示),若用户选择“好的”以表示记住所述第二终端设备的标识,则在所述第一终端设备的标识与所述第二终端设备的标识的关联关系中添加记住标记,以便于在所述第二终端设备没有使用数据线连接第一终端设备时,第一终端设备自动无线连接第二终端设备;若用户选择“以后再说”,则不开启自动连接的功能,下一次所述第二终端设备的标识再次接入所述第一终端设备时,则再次询问用户是否需要记住所述第二终端设备的标识;若用户选择“不再提醒”,则不开启自动连接的功能,下一次所述第二终端设备的标识再次接入所述第一终端设备时,也不再询问用户是否需要记住所述第二终端设备的标识。In practical applications, the first terminal device obtains the identity of the second terminal device through the notification message of the persistent connection by using the first client program, and establishes an association relationship between the identity of the first terminal device and the identity of the second terminal device Afterwards, a pop-up window may pop up asking the user whether to remember the identity of the second terminal device (as shown in Figure 7), if the user selects "OK" to indicate that the identity of the second terminal device is remembered, then in the A remember mark is added to the association between the identifier of the first terminal device and the identifier of the second terminal device, so that when the second terminal device is not connected to the first terminal device with a data line, the first terminal device automatically wirelessly Connect to the second terminal device; if the user selects "Let's talk later", the automatic connection function will not be enabled, and the next time the logo of the second terminal device accesses the first terminal device again, the user will be asked again whether to record If the user selects "Never Remind", the function of automatic connection will not be enabled, and the next time the logo of the second terminal device accesses the first terminal device again, it will not Then ask the user whether to remember the identifier of the second terminal device.
在具体实现中,第二终端设备无线接入第一终端设备时,需要第二终端设备处于在线状态,而第二终端设备的在线与否依据监听得到的网络状态而定。具体而言,在本发明的一种优选实施例中,若所述第二终端设备为安装有安卓系统的移动设备,其按照如下方式监听网络状态:In a specific implementation, when the second terminal device wirelessly accesses the first terminal device, the second terminal device needs to be in an online state, and whether the second terminal device is online depends on the network state obtained through monitoring. Specifically, in a preferred embodiment of the present invention, if the second terminal device is a mobile device installed with an Android system, it monitors the network status in the following manner:
网络状态是一个SystemService,可以通过context.getSystemService(Stringname)获取,当网络状态发生变化的时候,SystemServic会发出android.net.conn.CONNECTIVITY_CHANGE广播,此时移动设备侧只需要注册一个service(服务),便可以在后台接收网络状态变化的广播,这个service可以为ConnctionChangeReceiver;处理接收到的广播,实现方法如下,在onReceive中添加网络状态判断:The network status is a SystemService, which can be obtained through context.getSystemService(Stringname). When the network status changes, SystemServic will send out an android.net.conn.CONNECTIVITY_CHANGE broadcast. At this time, the mobile device only needs to register a service (service). Then you can receive broadcasts of network status changes in the background. This service can be ConnctionChangeReceiver; process the received broadcasts. The implementation method is as follows. Add network status judgment in onReceive:
ConnectivityManager connectMgr=(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);NetworkInfo mobNetInfo=connectMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);NetworkInfowifiNetInfo=connectMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);ConnectivityManager connectMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo mobNetInfo = connectMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); NetworkInfowifiNetInfo = connectMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
其中,ConnectivityManager为获取当前系统服务信息;Among them, ConnectivityManager is to obtain the current system service information;
getNetworkInfo分别获取类型为MOBILE和WIFI两种联网方式的信息;getNetworkInfo obtains the information of the two networking modes of MOBILE and WIFI respectively;
通过判断mobNetInfo.isConnected()和wifiNetInfo.isConnected()返回的Boolean布尔值来确定当前联网状态,若返回的布尔值为true(或1),则说明当前网络可用,移动设备可进行连接;若返回的布尔值为false(或0),则说明当前的网络不可用,移动设备不可进行连接。Determine the current networking status by judging the Boolean value returned by mobNetInfo.isConnected() and wifiNetInfo.isConnected(). If the returned Boolean value is true (or 1), it means that the current network is available and the mobile device can be connected; if it returns The Boolean value of is false (or 0), indicating that the current network is unavailable and the mobile device cannot be connected.
在本发明的另一种优选实施例中,若所述第二终端设备为计算设备,其按照如下方式监听网络状态:若计算设备需要无线连接网络时,可以调用网络接口API获取当前的网络状态,若当前网络状态可用,则计算设备连接当前网络,否则,不连接当前网络。In another preferred embodiment of the present invention, if the second terminal device is a computing device, it monitors the network status as follows: if the computing device needs to connect to the network wirelessly, it can call the network interface API to obtain the current network status , if the current network status is available, the computing device connects to the current network, otherwise, does not connect to the current network.
步骤503,文件服务器生成所述目标文件资源的下载地址并返回第一终端设备侧;Step 503, the file server generates the download address of the target file resource and returns it to the first terminal device side;
具体而言,所述文件服务器是共享文件的服务器,用于存储目标文件资源。在实际应用中,所述文件服务器中只保存预设时间段内的目标文件资源,文件服务器可以对存储的目标文件资源进行周期性或不定期地检测,若检测到有目标文件资源的存储的时间超过预设时间段,则删除所述目标文件资源。其中,所述预设时间段可以为针对每个目标文件资源的存入时间为开始时间设置的时间段(如一个月,超过存入时间一个月的目标文件资源将被删除);或者,所述预设时间还可以为文件服务器为所有存储的文件资源统一设定的时间界限(如2013年7月10号前存储的目标文件资源将删除)。Specifically, the file server is a server for sharing files and is used to store target file resources. In practical applications, only the target file resources in the preset time period are stored in the file server, and the file server can periodically or irregularly detect the stored target file resources. If the time exceeds the preset time period, the target file resource is deleted. Wherein, the preset time period may be the time period set for the start time for the deposit time of each target file resource (such as one month, and the target file resource exceeding the deposit time for one month will be deleted); or, The preset time may also be a time limit uniformly set by the file server for all stored file resources (for example, target file resources stored before July 10, 2013 will be deleted).
文件服务器接收到目标文件资源后,获取该目标文件资源在文件服务器侧的存储地址,将所述存储地址按照第二预设规则生成所述目标文件资源的下载地址,对所述目标文件资源的下载地址按照第一预设规则加密后返回第一终端设备侧。After the file server receives the target file resource, it obtains the storage address of the target file resource on the file server side, generates the download address of the target file resource according to the second preset rule from the storage address, and generates the download address of the target file resource for the target file resource. The download address is encrypted according to the first preset rule and returned to the side of the first terminal device.
在具体实现中,用户可以选定一个或多个目标文件资源,并通过所述悬浮窗口进行发送,此时第一终端设备可以采用所述第一客户端程序生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表,第一终端侧将所述文件发送列表展示在悬浮窗口的预设位置或第一终端设备界面的其他预设位置。所述文件发送列表中具有针对每个目标文件资源的文件发送状态信息,所述文件发送状态信息可以包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。其中,所述文件发送状态信息是指文件发送至文件服务器的状态信息,所述成功发送状态为在预设时间段内接收到文件服务器返回的对应的下载地址的状态;所述发送失败状态为在预设时间段内没有接收到文件服务器返回的对应的下载地址的状态。In a specific implementation, the user can select one or more target file resources and send them through the floating window. At this time, the first terminal device can use the first client program to generate a file sending list, and the file sending The list is a list organized by target file resources sent through the floating window, and the first terminal side displays the file sending list at a preset position of the floating window or other preset positions on the interface of the first terminal device. The file sending list includes file sending state information for each target file resource, and the file sending state information may include a successful sending state, a sending state, a waiting state for sending, and a sending failure state. Wherein, the file sending state information refers to the state information that the file is sent to the file server, and the successful sending state is the state of receiving the corresponding download address returned by the file server within a preset time period; the sending failure state is The status of the corresponding download address returned by the file server is not received within the preset time period.
在实际应用中,文件状态列表中还可以展示查看向导信息,所述查看向导信息用于指导用户如何在第二终端设备中接收并查看文件资源。In practical applications, viewing guide information may also be displayed in the file status list, and the viewing guide information is used to guide the user on how to receive and view file resources in the second terminal device.
步骤504,在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包并发送至应用服务器中;Step 504, constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device on the first terminal device side, and sending it to the application server;
应用于本发明实施例,第一终端设备侧采用第一客户端程序接收到文件服务器返回的目标文件资源的下载地址后,对该目标文件资源的下载地址按照第一预设规则进行解密,然后构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包,并对所述信息包采用第一预设规则进行加密后发送至应用服务器中。Applied to the embodiment of the present invention, after receiving the download address of the target file resource returned by the file server using the first client program, the first terminal device side decrypts the download address of the target file resource according to the first preset rule, and then An information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device is constructed, and the information packet is encrypted using a first preset rule and then sent to the application server.
在实际中,若有多台第二终端设备无线接入第一终端设备侧,则在第一终端设备侧可以将所述多台第二终端设备的标识展示给用户,以供用户选择需要接收目标文件资源的第二终端设备。In practice, if there are multiple second terminal devices wirelessly accessing the first terminal device side, the identifications of the multiple second terminal devices can be displayed to the user on the first terminal device side for the user to choose to receive The second terminal device for the object file resource.
需要说明的是,所述信息包实际上是一种记录有目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的数据结构。It should be noted that the information package is actually a data structure that records the download address of the target file resource, the file attribute information, and the identifier of the second terminal device.
步骤505,应用服务器接收所述信息包,获取所述第一终端设备的标识;Step 505, the application server receives the information packet, and acquires the identifier of the first terminal device;
具体而言,应用服务器在接收到信息包后,对其进行解密,并获取所述第一终端设备的标识,记录所述第一终端设备的标识<-->信息包file1的映射关系。Specifically, after receiving the information packet, the application server decrypts it, obtains the identifier of the first terminal device, and records the mapping relationship of the identifier of the first terminal device<-->information packet file1.
此外,应用服务器解密所述信息包获得第二终端设备的标识后,生成信息确认指令,并通过推送服务器(push服务器)将所述信息确认指令发送至第一终端设备侧,所述信息确认指令包括第二终端设备的标识,所述信息确认指令用于告知第一终端设备确认是否将目标文件资源发送至所述第二终端设备的标识中。In addition, after the application server decrypts the information packet to obtain the identity of the second terminal device, it generates an information confirmation instruction, and sends the information confirmation instruction to the first terminal device through a push server (push server), and the information confirmation instruction Including the identification of the second terminal device, the information confirmation instruction is used to inform the first terminal device to confirm whether to send the target file resource to the identification of the second terminal device.
第一终端设备在接收到所述信息确认指令后,可以采用第一客户端程序将所述目标文件资源将要发送的第二设备的标识以弹窗等形式展示给用户,若用户选择“立即发送”,说明用户确认所述目标文件资源发送至所述第二终端设备的标识,则第一终端设备侧生成第一确认信息发送至应用服务器侧。此外,若用户的意图不是将所述目标文件资源发送至所述第二终端设备的标识中,用户可以选择“换台设备”等字样的按钮,则第一终端设备侧生成第二确认信息发送至应用服务器中,此时,用户可以将需要接收目标文件资源的第二终端设备接入第一终端设备中,以接收目标文件资源;若用户没有接入任何第二终端设备,则应用服务器在所述关联关系列表中查找是否存在其他与所述第一终端设备的标识关联的第二终端设备的标识,若存在,则分别获取发生过连接的第二终端设备的标识生成信息确认指令发送至第一终端设备侧,询问用户是否确认将目标文件资源发送至所述第二终端设备的标识,若用户确认将所述目标文件资源发送至所述第二终端设备的标识,则第一终端设备自动连接该第二终端设备的标识进行文件传输;另一方面,若所述关联关系列表中不存在其他与所述第一终端设备的标识关联的第二终端设备的标识,则应用服务器生成连接提醒消息发送至第一终端设备侧,以通知用户连接需要接受目标文件资源的第二终端设备。After receiving the information confirmation instruction, the first terminal device may use the first client program to display the identity of the second device to which the target file resource will be sent to the user in the form of a pop-up window, etc., if the user selects "send immediately ", indicating that the user confirms that the target file resource is sent to the identifier of the second terminal device, and then the first terminal device side generates first confirmation information and sends it to the application server side. In addition, if the user's intention is not to send the target file resource to the identifier of the second terminal device, the user can select a button with words such as "changing the device", and the first terminal device side generates a second confirmation message to send To the application server, at this time, the user can connect the second terminal device that needs to receive the target file resource to the first terminal device to receive the target file resource; if the user does not access any second terminal device, the application server will Check whether there are other identifiers of the second terminal device associated with the identifier of the first terminal device in the association relationship list, and if so, respectively obtain the identifiers of the second terminal devices that have been connected to generate information and send the confirmation instruction to On the side of the first terminal device, ask the user whether to confirm sending the target file resource to the identifier of the second terminal device, and if the user confirms to send the target file resource to the identifier of the second terminal device, the first terminal device Automatically connect the identifier of the second terminal device for file transfer; on the other hand, if there is no other identifier of the second terminal device associated with the identifier of the first terminal device in the association list, the application server generates a connection The reminder message is sent to the first terminal device side to notify the user to connect to the second terminal device that needs to accept the target file resource.
步骤506,在应用服务器侧依据所述第二终端设备的标识生成文件获取消息发送至推送服务器中;Step 506, generating a file acquisition message on the application server side according to the identifier of the second terminal device and sending it to the push server;
应用服务器接收到第一终端设备侧发送的第一确认信息后,依据所述第二终端设备的标识生成文件获取消息,并将所述文件获取消息发送至推送服务器(push服务器)中。其中,所述文件获取消息用于通知推送服务器将文件获取消息发送至所述第二终端设备的标识对应的第二终端设备中,以通知所述第二终端设备到应用服务器中获取所述信息包。After receiving the first confirmation information sent by the first terminal device, the application server generates a file acquisition message according to the identifier of the second terminal device, and sends the file acquisition message to a push server (push server). Wherein, the file acquisition message is used to notify the push server to send the file acquisition message to the second terminal device corresponding to the identifier of the second terminal device, so as to notify the second terminal device to obtain the information from the application server Bag.
步骤507,推送服务器将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧;Step 507, the push server sends the file acquisition message to the side of the second terminal device corresponding to the identifier of the second terminal device;
在实际中,推送服务器用于将文件获取消息推送到对应的第二终端设备中。具体而言,推送服务器在接收到所述文件获取消息后,获取所述文件获取消息中携带的第二终端设备的标识,并在所有已经接入的终端设备的标识(终端设备一在线便会自动连接推送服务器)中查找与所述第二终端设备的标识相同的终端设备,直接将所述文件获取消息发送至所述第二终端设备中。In practice, the push server is used to push the file acquisition message to the corresponding second terminal device. Specifically, after the push server receives the file acquisition message, it acquires the identifier of the second terminal device carried in the file acquisition message, and among the identifiers of all connected terminal devices (the terminal device will Automatically connect to the push server) to search for a terminal device with the same identifier as the second terminal device, and directly send the file acquisition message to the second terminal device.
步骤508,在第二终端设备侧依据所述文件获取消息从应用服务器中获取对应的信息包;Step 508: Obtain the corresponding information package from the application server according to the file acquisition message on the side of the second terminal device;
具体而言,第二终端设备侧安装有第二客户端程序,所述第二终端设备采用所述第二客户端程序接收推送服务器发送的文件获取消息,在在接收到所述文件获取消息时,可以将所述文件获取消息展示在第二终端的预设展示位置中,并以提示音或弹窗等形式通知用户有文件资源,用户点击所述文件获取消息后即促使第二终端设备采用所述第二客户端程序到应用服务器中获取信息包。Specifically, a second client program is installed on the side of the second terminal device, and the second terminal device uses the second client program to receive the file acquisition message sent by the push server, and when receiving the file acquisition message , the file acquisition message can be displayed in the preset display position of the second terminal, and the user is notified of the availability of file resources in the form of a prompt sound or a pop-up window. After the user clicks on the file acquisition message, the second terminal device is prompted to use the The second client program obtains information packets from the application server.
步骤509,在第二终端设备侧依据所述目标文件资源的下载地址从文件服务器中下载对应的目标文件资源;Step 509, downloading the corresponding target file resource from the file server according to the download address of the target file resource at the second terminal device side;
第二客户端程序获取到信息包后,解密所述信息包,获得所述信息包中的文件资源的下载地址,并依据所述文件资源的下载地址到文件服务器中获取对应的目标文件资源。After obtaining the information packet, the second client program decrypts the information packet, obtains the download address of the file resource in the information packet, and obtains the corresponding target file resource from the file server according to the download address of the file resource.
进一步地,第二客户端程序解密所述信息包后,还可以获得所述目标文件资源的类型,并根据所述目标文件资源的类型进行如下操作:若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书等类型,则将所述目标文件资源存储在第二终端设备侧;若所述目标文件资源的类型为软件和/或游戏等安装类型,则直接安装所述目标文件资源。第二客户端程序在存储完文件资源或安装完文件资源后,可以在第二终端设备界面的预设展示位置以通知消息或弹窗的形式告知用户已安装的文件资源或已存储的文件资源的文件信息,其中,所述文件信息可以以列表的形式进行展现。Further, after the second client program decrypts the information package, it can also obtain the type of the target file resource, and perform the following operations according to the type of the target file resource: if the type of the target file resource is a theme, wallpaper, ringtone, music, video, e-book, etc., then store the target file resource on the second terminal device side; if the type of the target file resource is an installation type such as software and/or games, directly install the target file resource Describes the object file resource. After the second client program has finished storing or installing file resources, it can notify the user of the installed file resources or stored file resources in the form of a notification message or a pop-up window at a preset display position on the interface of the second terminal device. file information, wherein the file information can be displayed in the form of a list.
步骤510,在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至应用服务器中,由所述应用服务器通过所述推送服务器将所述文件接收响应信息发送至第一终端侧。Step 510: Generate file reception response information on the second terminal device side according to the target file resource and send it to the application server, and the application server sends the file reception response information to the first terminal side through the push server .
具体而言,第二终端设备侧获取到目标文件资源后,生成文件接收响应信息发送至应用服务器,其中,所述文件接收响应信息包括第一终端设备的标识,由应用服务器通过推送服务器将所述文件接收响应信息发送至第一终端设备的标识对应的第一终端设备侧,所述文件接收响应信息用于通知第一终端设备所述第二终端设备已经成功接收了目标文件资源,此时,第一终端设备可以依据所述文件接收响应信息生成提示消息通知用户。Specifically, after the second terminal device acquires the target file resource, it generates file reception response information and sends it to the application server, wherein the file reception response information includes the identifier of the first terminal device, and the application server sends the file reception response information to the application server through the push server. The file receiving response information is sent to the first terminal device side corresponding to the identifier of the first terminal device, and the file receiving response information is used to notify the first terminal device that the second terminal device has successfully received the target file resource. At this time , the first terminal device may generate a prompt message to notify the user according to the file reception response information.
在本发明实施例中,第一终端设备与第二终端设备在进行文件资源的传输时,第一终端设备可以首先将文件发送至文件服务器中进行存储,在接收到文件服务器返回的文件的下载地址后,将该下载地址发送至应用服务器进行存储,由应用服务器发送消息通知第二终端设备到文件服务器进行文件的下载,与直接将文件传输至第二终端设备相比,本发明降低了服务器的通信压力,提高了服务器的性能,并提高了文件传输的效率,节省了文件传输的时间。In the embodiment of the present invention, when the first terminal device and the second terminal device are transferring file resources, the first terminal device may first send the file to the file server for storage, and after receiving the file download returned by the file server After the address, the download address is sent to the application server for storage, and the application server sends a message to notify the second terminal device to download the file to the file server. Compared with directly transferring the file to the second terminal device, the present invention reduces the server The communication pressure is improved, the performance of the server is improved, the efficiency of file transfer is improved, and the time of file transfer is saved.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps Other sequences or concurrently may be used. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
参照图8,示出了本发明的一种用于文件传输的终端设备实施例一的结构框图,所述的终端设备可以包括如下模块:Referring to FIG. 8 , it shows a structural block diagram of Embodiment 1 of a terminal device for file transfer according to the present invention. The terminal device may include the following modules:
目标文件资源发送模块601,适于在第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;The target file resource sending module 601 is adapted to send the target file resource to the first server through the floating window on the side of the first terminal device when the second terminal device wirelessly accesses the first terminal device;
下载地址接收模块602,适于在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;The download address receiving module 602 is adapted to receive the download address of the target file resource returned by the first server at the first terminal device side, and the download address of the target file resource is the first server according to the target file resource. resource generation;
下载地址发送模块603,适于在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;The download address sending module 603 is adapted to construct an information packet on the first terminal device side according to the download address of the target file resource and send it to the second server;
文件接收响应信息接收模块604,适于在第一终端设备侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成。The file receiving response information receiving module 604 is adapted to receive the file receiving response information returned by the second terminal device on the side of the first terminal device, and the file receiving response information is sent by the second server through the third server when the second terminal device receives After the file acquisition message, obtain the information package from the second server according to the file acquisition message, and download the corresponding target file resource from the first server according to the target file resource download address carried in the information package and generate .
在本发明的一种优选实施例中,所述目标文件资源发送模块601还适于:In a preferred embodiment of the present invention, the target file resource sending module 601 is also suitable for:
在第一终端设备侧依据用户针对悬浮窗口的指定操作生成文件发送请求,所述指定操作包括用户将目标文件资源拖送到悬浮窗口的操作,和/或,用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作;On the side of the first terminal device, a file sending request is generated according to the user's specified operation on the floating window, the specified operation includes the operation of the user dragging the target file resource to the floating window, and/or, the user clicks on the file selection on the floating window button, the operation of selecting the path of the target file resource in the file path selection window popped up by the first terminal device;
在第一终端设备侧将所述文件发送请求发送至第一服务器中;Sending the file sending request to the first server at the first terminal device side;
在第一终端设备侧接收所述第一服务器返回的文件响应消息;receiving the file response message returned by the first server at the first terminal device side;
在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中。The first terminal device side sends the target file resource to the first server according to the file response message.
在本发明的一种优选实施例中,所述目标文件资源发送模块还适于:In a preferred embodiment of the present invention, the target file resource sending module is also suitable for:
在第一终端设备侧依据所述文件响应消息对将所述目标文件资源进行加密;Encrypting the target file resource at the first terminal device side according to the file response message;
将所述加密后的目标文件资源发送至第一服务器中。Send the encrypted target file resource to the first server.
在本发明的一种优选实施例中,所述目标文件资源为第一终端侧依据用户发出的文件资源选定指令获得的文件资源;所述文件资源选定指令为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令,或者,所述文件资源选定指令为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。In a preferred embodiment of the present invention, the target file resource is a file resource obtained by the first terminal side according to a file resource selection instruction issued by the user; A download instruction for a certain file resource selected in the displayed file resource download list, or, the file resource selection instruction is a selection instruction for a certain file resource selected by the user from the file resources stored on the first terminal device side.
在本发明的一种优选实施例中,所述下载地址发送模块还适于:In a preferred embodiment of the present invention, the download address sending module is also suitable for:
在第一终端设备侧获取所述第二终端设备的标识;Acquiring the identity of the second terminal device at the first terminal device side;
在第一终端设备侧获取所述目标文件资源的文件属性信息;Acquiring file attribute information of the target file resource at the first terminal device side;
在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包;Constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device at the first terminal device side;
在第一终端设备侧将所述信息包发送至第二服务器中。The information packet is sent to the second server at the side of the first terminal device.
在本发明的一种优选实施例中,还包括:In a preferred embodiment of the present invention, it also includes:
信息确认指令发送模块,适于在第一终端设备侧接收第三服务器发送的信息确认指令;The information confirmation instruction sending module is adapted to receive the information confirmation instruction sent by the third server on the side of the first terminal device;
展示模块,适于在第一终端设备侧将所述信息确认指令展示给用户;A display module, adapted to display the information confirmation instruction to the user on the side of the first terminal device;
确认信息接收模块,适于接收用户选择的确认信息,并将所述确认信息发送至第二服务器中。The confirmation information receiving module is adapted to receive the confirmation information selected by the user, and send the confirmation information to the second server.
在本发明的一种优选实施例中,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息。In a preferred embodiment of the present invention, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is based on the information selected by the user. The information generated by confirming that the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the user's selection of not confirming the second 2. The information generated by the terminal device as the recipient of the file.
在本发明的一种优选实施例中,还包括:In a preferred embodiment of the present invention, it also includes:
文件发送列表生成模块,适于在第一终端设备侧生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表。The file sending list generating module is adapted to generate a file sending list on the side of the first terminal device, and the file sending list is a list organized by target file resources to be sent through the floating window.
在本发明的一种优选实施例中,所述文件发送列表中针对每个目标文件资源具有文件发送状态信息,所述文件发送状态信息包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。In a preferred embodiment of the present invention, the file sending list has file sending status information for each target file resource, and the file sending status information includes successful sending status, sending status, waiting to send status, and sending failure state.
在本发明的一种优选实施例中,所述目标文件资源的文件属性信息还包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。In a preferred embodiment of the present invention, the file attribute information of the target file resource further includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource.
在本发明的一种优选实施例中,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。In a preferred embodiment of the present invention, the types of the target file resources include themes, wallpapers, ringtones, software, music, games, videos, and e-books.
在本发明的一种优选实施例中,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。In a preferred embodiment of the present invention, the first server is a file server, the second server is an application server, and the third server is a push server.
参照图9,示出了本发明的一种用于文件传输的服务器实施例一的结构框图,所述的服务器可以包括如下模块:Referring to FIG. 9 , it shows a structural block diagram of a server embodiment 1 for file transfer of the present invention, and the server may include the following modules:
信息包接收模块701,适于在第二服务器侧接收第一终端设备侧发送的信息包,所述信息包包括第二终端设备的标识;The information packet receiving module 701 is adapted to receive, on the second server side, the information packet sent by the first terminal device side, where the information packet includes the identifier of the second terminal device;
第一文件获取消息发送模块702,适于在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中;The first file acquisition message sending module 702 is adapted to generate a file acquisition message on the second server side according to the identification of the second terminal device and send it to the third server;
文件接收响应信息接收模块703,适于在第二服务器侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成;The file receiving response information receiving module 703 is adapted to receive the file receiving response information returned by the second terminal device at the second server side, and the file receiving response information is that the second terminal device receives the file receiving response information sent by the second server through the third server. After the file acquisition message, the information package is obtained from the second server according to the file acquisition message, and the corresponding target file resource is downloaded from the first server according to the target file resource download address carried in the information package and then generated;
文件接收响应信息发送模块704,适于在第二服务器侧将所述文件接收响应信息发送至第一终端设备。The file receiving response information sending module 704 is adapted to send the file receiving response information to the first terminal device at the second server side.
在本发明的一种优选实施例中,还包括:In a preferred embodiment of the present invention, it also includes:
信息确认指令生成模块,适于在所述依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中之前,在第二服务器侧生成信息确认指令;An information confirmation instruction generation module, adapted to generate an information confirmation instruction on the second server side before the file acquisition message generated according to the identification of the second terminal device is sent to the third server;
信息确认指令发送模块,适于在第二服务器侧将所述信息确认指令发送至第三服务器中,由第三服务器发送至第一终端设备侧;The information confirmation instruction sending module is adapted to send the information confirmation instruction to the third server on the second server side, and the third server sends it to the first terminal device side;
确认消息接收模块,适于在第二服务器侧接收第一终端设备返回的确认信息。The confirmation message receiving module is adapted to receive confirmation information returned by the first terminal device at the second server side.
在本发明的一种优选实施例中,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;In a preferred embodiment of the present invention, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is based on the information selected by the user. The information generated by confirming that the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the user's selection of not confirming the second 2. Information generated by the terminal device as the recipient of the file;
所述服务器还包括:The server also includes:
调用模块,适于在所述确认信息为第一确认信息时,调用第一文件获取消息发送模块;The calling module is adapted to call the first file acquisition message sending module when the confirmation information is the first confirmation information;
标识获取模块,适于在所述确认信息为第二确认信息时,在第二服务器侧重新获取第二终端设备的标识。The identification obtaining module is adapted to re-acquire the identification of the second terminal device at the second server side when the confirmation information is the second confirmation information.
在本发明的一种优选实施例中,所述第二服务器为应用服务器,所述第三服务器为推送服务器。In a preferred embodiment of the present invention, the second server is an application server, and the third server is a push server.
参照图10,示出了本发明的一种用于文件传输的服务器实施例二的结构框图,所述的服务器可以包括如下模块:Referring to FIG. 10 , it shows a structural block diagram of a second embodiment of a server for file transfer according to the present invention. The server may include the following modules:
第一文件获取消息接收模块801,适于在第三服务器侧接收第二服务器发送的文件获取消息,所述文件获取消息包括第二终端设备的标识;The first file acquisition message receiving module 801 is adapted to receive, on the third server side, a file acquisition message sent by the second server, where the file acquisition message includes the identifier of the second terminal device;
第二文件获取消息发送模块802,适于将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧。The second file acquisition message sending module 802 is adapted to send the file acquisition message to the side of the second terminal device corresponding to the identifier of the second terminal device.
在本发明的一种优选实施例中,还包括:In a preferred embodiment of the present invention, it also includes:
信息确认指令接收模块,适于在第三服务器侧接收第二服务器发送的信息确认指令;The information confirmation instruction receiving module is adapted to receive the information confirmation instruction sent by the second server on the third server side;
信息确认指令发送模块,适于在第三服务器侧将所述信息确认指令发送至第一终端设备中。The information confirmation instruction sending module is adapted to send the information confirmation instruction to the first terminal device at the third server side.
在本发明的一种优选实施例中,所述第二服务器为应用服务器,所述第三服务器为推送服务器。In a preferred embodiment of the present invention, the second server is an application server, and the third server is a push server.
参照图11,示出了本发明的一种用于文件传输的终端设备实施例二的结构框图,所述的终端设备可以包括如下模块:Referring to FIG. 11 , it shows a structural block diagram of Embodiment 2 of a terminal device for file transfer according to the present invention. The terminal device may include the following modules:
第二文件获取消息接收模块901,适于在第二终端设备侧接收第三服务器发送的文件获取消息;The second file acquisition message receiving module 901 is adapted to receive the file acquisition message sent by the third server on the side of the second terminal device;
信息包获取模块902,适于在第二终端设备侧依据所述文件获取消息从第二服务器中获取对应的信息包,所述信息包包括目标文件资源的下载地址;The information packet obtaining module 902 is adapted to obtain the corresponding information packet from the second server according to the file acquisition message on the second terminal device side, and the information packet includes the download address of the target file resource;
目标文件资源下载模块903,适于在第二终端设备侧依据所述目标文件资源的下载地址从第一服务器中下载对应的目标文件资源;The target file resource download module 903 is adapted to download the corresponding target file resource from the first server according to the download address of the target file resource on the second terminal device side;
文件接收响应信息生成模块904,适于在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至第二服务器中。The file receiving response information generating module 904 is adapted to generate file receiving response information on the second terminal device side according to the target file resource and send it to the second server.
在本发明的一种优选实施例中,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的类型,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书,所述的终端设备还包括:In a preferred embodiment of the present invention, the information package includes file attribute information, and the file attribute information includes the type of the target file resource, and the type of the target file resource includes themes, wallpapers, ringtones, software, music, For games, videos, and e-books, the terminal equipment also includes:
若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书,则将所述目标文件资源存储在第二终端设备侧;If the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, then store the target file resource on the side of the second terminal device;
若所述目标文件资源的类型为软件和/或游戏,则直接安装所述目标文件资源。If the type of the target file resource is software and/or game, then directly install the target file resource.
在本发明的一种优选实施例中,所述终端设备还包括:In a preferred embodiment of the present invention, the terminal device further includes:
监听模块,适于在所述在第二终端设备侧接收第三服务器发送的文件获取消息之前,在第二终端设备侧监听网络状态,所述网络状态包括当前网络可用;The monitoring module is adapted to monitor the network status on the second terminal device side before receiving the file acquisition message sent by the third server at the second terminal device side, and the network status includes the current network availability;
第一连接模块,适于若当前网络可用,则在第二终端设备侧连接当前网络;The first connection module is adapted to connect to the current network on the side of the second terminal device if the current network is available;
第二连接模块,适于在第二终端设备侧连接所述第三服务器。The second connection module is adapted to connect to the third server at the side of the second terminal device.
在本发明的一种优选实施例中,若所述第二终端设备为移动设备,所述监听模块还适于:In a preferred embodiment of the present invention, if the second terminal device is a mobile device, the monitoring module is further adapted to:
在所述第二终端设备侧注册网络状态变化接收服务ConnctionChangeReceiver;Registering the network state change receiving service ConnctionChangeReceiver on the second terminal device side;
在第二终端设备侧采用所述网络状态变化接收服务ConnctionChangeReceiver接收系统服务SystemService发出的广播CONNECTIVITY_CHANGE;Use the network status change receiving service ConnctionChangeReceiver on the second terminal device side to receive the broadcast CONNECTIVITY_CHANGE sent by the system service SystemService;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为真,则判定当前网络可用;If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is true, it is determined that the current network is available;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为假,则判定当前网络不可用。If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is false, it is determined that the current network is unavailable.
在本发明的另一种优选实施例中,若所述第二终端设备为移动设备,所述监听模块还适于:In another preferred embodiment of the present invention, if the second terminal device is a mobile device, the monitoring module is further adapted to:
在第二终端设备侧调用网络接口API查询当前的网络状态。Calling the network interface API on the side of the second terminal device to query the current network status.
在本发明的一种优选实施例中,所述第一服务器为文件服务器,所述第二服务器为应用服务器,第三服务器为推送服务器。In a preferred embodiment of the present invention, the first server is a file server, the second server is an application server, and the third server is a push server.
参照图12,示出了本发明的一种文件传输的系统实施例的结构框图,所述的系统可以包括第一终端设备10、文件服务器20、应用服务器30,推送服务器40、第二终端设备50,其中,Referring to Fig. 12, it shows a structural block diagram of a system embodiment of file transmission in the present invention, the system may include a first terminal device 10, a file server 20, an application server 30, a push server 40, a second terminal device 50, of which,
所述第一终端设备10,适于在第二终端设备无线接入第一终端设备时,通过悬浮窗口将待发送的目标文件资源发送至文件服务器中,并接收所述文件服务器返回的所述目标文件资源的下载地址,以及,将所述目标文件资源的下载地址构建信息包发送至应用服务器中,以及接收第二终端设备发送的文件接收响应信息;The first terminal device 10 is adapted to send the target file resource to be sent to the file server through the floating window when the second terminal device wirelessly accesses the first terminal device, and receive the The download address of the target file resource, and sending the download address construction information package of the target file resource to the application server, and receiving the file reception response information sent by the second terminal device;
所述文件服务器20,适于接收所述目标文件资源,依据所述目标文件资源生成对应的目标文件资源的下载地址并发送至第一终端设备中;The file server 20 is adapted to receive the target file resource, generate a download address of the corresponding target file resource according to the target file resource, and send it to the first terminal device;
所述应用服务器30,适于接收所述信息包,依据所述信息包中携带的第二终端设备的标识生成文件获取消息发送至推送服务器中,以及接收第二终端设备发送的文件接收响应信息;The application server 30 is adapted to receive the information packet, generate a file acquisition message according to the identifier of the second terminal device carried in the information packet and send it to the push server, and receive the file reception response information sent by the second terminal device ;
所述推送服务器40,适于将所述文件获取消息发送至所述第二终端设备侧,以及将所述文件接收响应信息发送至第一终端设备侧;The push server 40 is adapted to send the file acquisition message to the second terminal device side, and send the file reception response information to the first terminal device side;
所述第二终端设备50,适于依据所述文件获取消息从应用服务器中获取对应的信息包,以及,依据所述信息包携带的目标文件资源的下载地址从文件服务器中下载对应的目标文件资源,以及,依据所述目标文件资源生成文件接收响应信息发送至应用服务器。The second terminal device 50 is adapted to obtain the corresponding information package from the application server according to the file acquisition message, and download the corresponding target file from the file server according to the download address of the target file resource carried in the information package resource, and, according to the target file resource, generate file reception response information and send it to the application server.
在本发明的一种优选实施例中,所述第一终端设备10还适于:In a preferred embodiment of the present invention, the first terminal device 10 is further adapted to:
依据用户针对悬浮窗口的指定操作生成文件发送请求;Generate a file sending request according to the user's specified operation on the floating window;
将所述文件发送请求发送至文件服务器中;Send the file sending request to the file server;
接收所述文件服务器返回的文件响应消息;receiving a file response message returned by the file server;
依据所述文件响应消息将所述目标文件资源发送至文件服务器中。Sending the target file resource to the file server according to the file response message.
在本发明的一种优选实施例中,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。In a preferred embodiment of the present invention, the information package includes file attribute information, and the file attribute information includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource .
在本发明的一种优选实施例中,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。In a preferred embodiment of the present invention, the types of the target file resources include themes, wallpapers, ringtones, software, music, games, videos, and e-books.
在本发明的一种优选实施例中,所述第二终端设备50还适于:In a preferred embodiment of the present invention, the second terminal device 50 is further adapted to:
在所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书时,将所述目标文件资源存储在第二终端设备侧;When the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, storing the target file resource on the side of the second terminal device;
在所述目标文件资源的类型为软件和/或游戏时,直接安装所述目标文件资源。When the type of the target file resource is software and/or game, the target file resource is directly installed.
在此提供的算法和显示不与任何特定计算设备、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computing device, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的文件传输设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者终端设备程序(例如,第一终端设备程序和第一终端设备程序产品)。这样的实现本发明的程序可以存储在第一终端设备可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the file transfer device according to the embodiment of the present invention. The present invention can also be implemented as a device or a terminal program (for example, a first terminal program and a first terminal program product) for performing part or all of the methods described herein. Such a program for realizing the present invention may be stored on a medium readable by the first terminal device, or may have the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的第一终端设备来实现。在列举了若干终端设备的单元权利要求中,这些终端设备中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed first terminal device. In a unit claim enumerating several terminal devices, several of these terminal devices may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明的实施例公开了A1、一种文件传输的方法,包括:Embodiments of the present invention disclose A1, a method for file transfer, comprising:
当第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;When the second terminal device wirelessly accesses the first terminal device, the target file resource is sent to the first server through the floating window on the side of the first terminal device;
在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;receiving the download address of the target file resource returned by the first server at the first terminal device side, where the download address of the target file resource is generated by the first server according to the target file resource;
在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;Constructing an information packet on the side of the first terminal device according to the download address of the target file resource and sending it to the second server;
在第一终端设备侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成。The file reception response information returned by the second terminal device is received at the first terminal device side. The file reception response information is that the second terminal device receives the file acquisition message sent by the second server through the third server, according to the file The acquisition message acquires the information package from the second server, and is generated after downloading the corresponding target file resource from the first server according to the target file resource download address carried in the information package.
A2、如A1所述的方法,所述在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中的步骤包括:A2, the method as described in A1, the step of sending the target file resource to the first server through the floating window on the first terminal device side includes:
在第一终端设备侧依据用户针对悬浮窗口的指定操作生成文件发送请求,所述指定操作包括用户将目标文件资源拖送到悬浮窗口的操作,和/或,用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作;On the side of the first terminal device, a file sending request is generated according to the user's specified operation on the floating window, the specified operation includes the operation of the user dragging the target file resource to the floating window, and/or, the user clicks on the file selection on the floating window button, the operation of selecting the path of the target file resource in the file path selection window popped up by the first terminal device;
在第一终端设备侧将所述文件发送请求发送至第一服务器中;Sending the file sending request to the first server at the first terminal device side;
在第一终端设备侧接收所述第一服务器返回的文件响应消息;receiving the file response message returned by the first server at the first terminal device side;
在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中。The first terminal device side sends the target file resource to the first server according to the file response message.
A3、如A2所述的方法,所述在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中的步骤包括:A3. The method described in A2, the step of sending the target file resource to the first server according to the file response message on the first terminal device side includes:
在第一终端设备侧依据所述文件响应消息对将所述目标文件资源进行加密;Encrypting the target file resource at the first terminal device side according to the file response message;
将所述加密后的目标文件资源发送至第一服务器中。Send the encrypted target file resource to the first server.
A4、如A1所述的方法,所述目标文件资源为第一终端侧依据用户发出的文件资源选定指令获得的文件资源;所述文件资源选定指令为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令,或者,所述文件资源选定指令为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。A4. The method described in A1, wherein the target file resource is a file resource obtained by the first terminal side according to a file resource selection instruction issued by the user; the file resource selection instruction is displayed by the user on the first terminal device side A download instruction for a certain file resource selected in the file resource download list, or, the file resource selection instruction is a selection instruction for a certain file resource selected by the user from the file resources stored on the first terminal device side.
A5、如A1所述的方法,所述在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中的步骤包括:A5. The method as described in A1, the step of constructing an information package at the first terminal device side according to the download address of the target file resource and sending it to the second server includes:
在第一终端设备侧获取所述第二终端设备的标识;Acquiring the identity of the second terminal device at the first terminal device side;
在第一终端设备侧获取所述目标文件资源的文件属性信息;Acquiring file attribute information of the target file resource at the first terminal device side;
在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包;Constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device at the first terminal device side;
在第一终端设备侧将所述信息包发送至第二服务器中。The information packet is sent to the second server at the side of the first terminal device.
A6、如A1所述的方法,还包括:A6. The method as described in A1, further comprising:
在第一终端设备侧接收第三服务器发送的信息确认指令;receiving an information confirmation instruction sent by the third server at the first terminal device side;
在第一终端设备侧将所述信息确认指令展示给用户;presenting the information confirmation instruction to the user at the first terminal device side;
接收用户选择的确认信息,并将所述确认信息发送至第二服务器中。The confirmation information selected by the user is received, and the confirmation information is sent to the second server.
A7、如A6所述的方法,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息。A7. The method as described in A6, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes the first confirmation information and the second confirmation information, and the first confirmation information is the confirmation selected by the user The information generated by the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the user's choice of not confirming the second terminal corresponding to the identity of the second terminal device Information generated by the device as the recipient of the file.
A8、如A1所述的方法,还包括:A8. The method as described in A1, further comprising:
在第一终端设备侧生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表。A file sending list is generated on the side of the first terminal device, and the file sending list is a list organized by target file resources sent through the floating window.
A9、如A8所述的方法,所述文件发送列表中针对每个目标文件资源具有文件发送状态信息,所述文件发送状态信息包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。A9. The method described in A8, wherein the file sending list has file sending status information for each target file resource, and the file sending status information includes a successful sending status, a sending status, a waiting status and a sending failure status.
A10、如A1所述的方法,所述目标文件资源的文件属性信息还包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。A10. The method described in A1, wherein the file attribute information of the target file resource further includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource.
A11、如A10所述的方法,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。A11. The method as described in A10, the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, and e-books.
A12、如A1至11任一项所述的方法,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。A12. The method according to any one of A1 to 11, wherein the first server is a file server, the second server is an application server, and the third server is a push server.
本发明的实施例还公开了B13、一种文件传输的方法,包括:Embodiments of the present invention also disclose B13, a method for file transfer, including:
在第二服务器侧接收第一终端设备侧发送的信息包,所述信息包包括第二终端设备的标识;receiving an information packet sent by the first terminal device at the second server side, the information packet including the identifier of the second terminal device;
在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中;generating a file acquisition message on the second server side according to the identity of the second terminal device and sending it to the third server;
在第二服务器侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成;The file receiving response information returned by the second terminal device is received at the second server side. The file receiving response information is that the second terminal device obtains the file according to the file after receiving the file obtaining message sent by the second server through the third server. The message obtains the information package from the second server, and generates it after downloading the corresponding target file resource from the first server according to the target file resource download address carried in the information package;
在第二服务器侧将所述文件接收响应信息发送至第一终端设备。The second server side sends the file receiving response information to the first terminal device.
B14、如B13所述的方法,在所述依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中的步骤之前,还包括:B14. The method as described in B13, before the step of generating a file acquisition message according to the identification of the second terminal device and sending it to the third server, further comprising:
在第二服务器侧生成信息确认指令;generating an information confirmation instruction at the second server side;
在第二服务器侧将所述信息确认指令发送至第三服务器中,由第三服务器发送至第一终端设备侧;Sending the information confirmation instruction to the third server at the second server side, and sending it to the first terminal device side by the third server;
在第二服务器侧接收第一终端设备返回的确认信息。The confirmation information returned by the first terminal device is received at the second server side.
B15、如B14所述的方法,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;B15. The method as described in B14, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes the first confirmation information and the second confirmation information, and the first confirmation information is the confirmation selected by the user The information generated by the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the user's choice of not confirming the second terminal corresponding to the identity of the second terminal device Information generated by the device as the recipient of the file;
所述方法还包括:The method also includes:
若所述确认信息为第一确认信息,则执行所述在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中的步骤;If the confirmation information is the first confirmation information, execute the step of generating a file acquisition message on the second server side according to the identification of the second terminal device and sending it to the third server;
若所述确认信息为第二确认信息,则在第二服务器侧重新获取第二终端设备的标识。If the confirmation information is the second confirmation information, the identifier of the second terminal device is reacquired at the second server side.
本发明的实施例还公开了C16、一种文件传输的方法,包括:The embodiment of the present invention also discloses C16, a method for file transfer, including:
在第三服务器侧接收第二服务器发送的文件获取消息,所述文件获取消息包括第二终端设备的标识;receiving, at the third server side, a file acquisition message sent by the second server, where the file acquisition message includes the identifier of the second terminal device;
在第三服务器侧将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧。Sending the file acquisition message to the second terminal device side corresponding to the identifier of the second terminal device at the third server side.
C17、如C16所述的方法,还包括:C17. The method as described in C16, further comprising:
在第三服务器侧接收第二服务器发送的信息确认指令;receiving an information confirmation instruction sent by the second server at the third server side;
在第三服务器侧将所述信息确认指令发送至第一终端设备中。The third server side sends the information confirmation instruction to the first terminal device.
本发明的实施例还公开了D18、一种文件传输的方法,包括:Embodiments of the present invention also disclose D18, a method for file transfer, including:
在第二终端设备侧接收第三服务器发送的文件获取消息;receiving a file acquisition message sent by the third server at the second terminal device side;
在第二终端设备侧依据所述文件获取消息从第二服务器中获取对应的信息包,所述信息包包括目标文件资源的下载地址;Obtain a corresponding information package from the second server according to the file acquisition message at the second terminal device side, where the information package includes the download address of the target file resource;
在第二终端设备侧依据所述目标文件资源的下载地址从第一服务器中下载对应的目标文件资源;Downloading the corresponding target file resource from the first server according to the download address of the target file resource at the second terminal device side;
在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至第二服务器中。The second terminal device generates file reception response information according to the target file resource and sends it to the second server.
D19、如D18所述的方法,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的类型,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书,所述的方法还包括:D19. The method as described in D18, the information package includes file attribute information, and the file attribute information includes the type of the target file resource, and the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, Videos, e-books, the method described also includes:
若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书,则将所述目标文件资源存储在第二终端设备侧;If the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, then store the target file resource on the side of the second terminal device;
若所述目标文件资源的类型为软件和/或游戏,则直接安装所述目标文件资源。If the type of the target file resource is software and/or game, then directly install the target file resource.
D20、如D 18所述的方法,在所述在第二终端设备侧接收第三服务器发送的文件获取消息的步骤之前,还包括:D20. The method as described in D18, before the step of receiving the file acquisition message sent by the third server at the second terminal device side, further comprising:
在第二终端设备侧监听网络状态,所述网络状态包括当前网络可用;Monitoring network status at the second terminal device side, where the network status includes that the current network is available;
若当前网络可用,则在第二终端设备侧连接当前网络;If the current network is available, connect to the current network at the second terminal device side;
在第二终端设备侧连接所述第三服务器。The third server is connected to the second terminal device side.
D21、如D20所述的方法,若所述第二终端设备为移动设备,所述在第二终端设备侧监听网络状态的步骤包括:D21. The method as described in D20, if the second terminal device is a mobile device, the step of monitoring the network status on the second terminal device side includes:
在所述第二终端设备侧注册网络状态变化接收服务ConnctionChangeReceiver;Registering the network state change receiving service ConnctionChangeReceiver on the second terminal device side;
在第二终端设备侧采用所述网络状态变化接收服务ConnctionChangeReceiver接收系统服务SystemService发出的广播CONNECTIVITY_CHANGE;Use the network status change receiving service ConnctionChangeReceiver on the second terminal device side to receive the broadcast CONNECTIVITY_CHANGE sent by the system service SystemService;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为真,则判定当前网络可用;If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is true, it is determined that the current network is available;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为假,则判定当前网络不可用。If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is false, it is determined that the current network is unavailable.
D22、如D20所述的方法,若所述第二终端设备为计算设备,所述在第二终端设备侧监听网络状态的步骤包括:D22. The method as described in D20, if the second terminal device is a computing device, the step of monitoring the network status on the second terminal device side includes:
在第二终端设备侧调用网络接口API查询当前的网络状态。Calling the network interface API on the side of the second terminal device to query the current network status.
本发明的实施例还公开了E23、一种用于文件传输的终端设备,包括:The embodiment of the present invention also discloses E23, a terminal device for file transfer, including:
目标文件资源发送模块,适于在第二终端设备无线接入第一终端设备时,在第一终端设备侧通过悬浮窗口将目标文件资源发送至第一服务器中;The target file resource sending module is adapted to send the target file resource to the first server through the floating window on the side of the first terminal device when the second terminal device wirelessly accesses the first terminal device;
下载地址接收模块,适于在第一终端设备侧接收所述第一服务器返回的所述目标文件资源的下载地址,所述目标文件资源的下载地址为所述第一服务器依据所述目标文件资源生成;The download address receiving module is adapted to receive the download address of the target file resource returned by the first server at the first terminal device side, and the download address of the target file resource is determined by the first server according to the target file resource. generate;
下载地址发送模块,适于在第一终端设备侧依据所述目标文件资源的下载地址构建信息包并发送至第二服务器中;The download address sending module is adapted to construct an information packet on the first terminal device side according to the download address of the target file resource and send it to the second server;
文件接收响应信息接收模块,适于在第一终端设备侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成。The file receiving response information receiving module is adapted to receive the file receiving response information returned by the second terminal device on the side of the first terminal device. After the file acquisition message, the information package is obtained from the second server according to the file acquisition message, and the corresponding target file resource is downloaded from the first server according to the target file resource download address carried in the information package and generated.
E24、如E23所述的终端设备,所述目标文件资源发送模块还适于:E24. The terminal device as described in E23, the target file resource sending module is also suitable for:
在第一终端设备侧依据用户针对悬浮窗口的指定操作生成文件发送请求,所述指定操作包括用户将目标文件资源拖送到悬浮窗口的操作,和/或,用户点击悬浮窗口上的文件选定按钮,在第一终端设备弹出的文件路径选择窗口中选择目标文件资源的路径的操作;On the side of the first terminal device, a file sending request is generated according to the user's specified operation on the floating window, the specified operation includes the operation of the user dragging the target file resource to the floating window, and/or, the user clicks on the file selection on the floating window button, the operation of selecting the path of the target file resource in the file path selection window popped up by the first terminal device;
在第一终端设备侧将所述文件发送请求发送至第一服务器中;Sending the file sending request to the first server at the first terminal device side;
在第一终端设备侧接收所述第一服务器返回的文件响应消息;receiving the file response message returned by the first server at the first terminal device side;
在第一终端设备侧依据所述文件响应消息将所述目标文件资源发送至第一服务器中。The first terminal device side sends the target file resource to the first server according to the file response message.
E25、如E24所述的终端设备,所述目标文件资源发送模块还适于:E25. The terminal device as described in E24, the target file resource sending module is also suitable for:
在第一终端设备侧依据所述文件响应消息对将所述目标文件资源进行加密;Encrypting the target file resource at the first terminal device side according to the file response message;
将所述加密后的目标文件资源发送至第一服务器中。Send the encrypted target file resource to the first server.
E26、如E23所述的终端设备,所述目标文件资源为第一终端侧依据用户发出的文件资源选定指令获得的文件资源;所述文件资源选定指令为用户在第一终端设备侧展示的文件资源下载列表中选择的对某文件资源的下载指令,或者,所述文件资源选定指令为用户在第一终端设备侧存储的文件资源中选择的对某文件资源的选定指令。E26. The terminal device as described in E23, wherein the target file resource is a file resource obtained by the first terminal side according to the file resource selection instruction issued by the user; the file resource selection instruction is displayed by the user on the first terminal device side The download instruction for a certain file resource selected in the file resource download list of the file resource, or, the file resource selection instruction is a selection instruction for a certain file resource selected by the user from the file resources stored on the first terminal device side.
E27、如E23所述的终端设备,所述下载地址发送模块还适于:E27. The terminal device as described in E23, the download address sending module is also suitable for:
在第一终端设备侧获取所述第二终端设备的标识;Acquiring the identity of the second terminal device at the first terminal device side;
在第一终端设备侧获取所述目标文件资源的文件属性信息;Acquiring file attribute information of the target file resource at the first terminal device side;
在第一终端设备侧构建所述目标文件资源的下载地址、所述文件属性信息以及所述第二终端设备的标识的信息包;Constructing an information packet of the download address of the target file resource, the file attribute information, and the identification of the second terminal device at the first terminal device side;
在第一终端设备侧将所述信息包发送至第二服务器中。The information packet is sent to the second server at the side of the first terminal device.
E28、如E23所述的终端设备,还包括:E28. The terminal equipment as described in E23, further comprising:
信息确认指令发送模块,适于在第一终端设备侧接收第三服务器发送的信息确认指令;The information confirmation instruction sending module is adapted to receive the information confirmation instruction sent by the third server on the side of the first terminal device;
展示模块,适于在第一终端设备侧将所述信息确认指令展示给用户;A display module, adapted to display the information confirmation instruction to the user on the side of the first terminal device;
确认信息接收模块,适于接收用户选择的确认信息,并将所述确认信息发送至第二服务器中。The confirmation information receiving module is adapted to receive the confirmation information selected by the user, and send the confirmation information to the second server.
E29、如E28所述的终端设备,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息。E29. The terminal device as described in E28, the information confirmation instruction includes the identity of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is based on the information selected by the user. The information generated by confirming that the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the second Information generated by the terminal device as the recipient of the file.
E30、如E23所述的终端设备,还包括:E30. The terminal equipment as described in E23, further comprising:
文件发送列表生成模块,适于在第一终端设备侧生成文件发送列表,所述文件发送列表为通过所述悬浮窗口进行发送的目标文件资源组织成的列表。The file sending list generating module is adapted to generate a file sending list on the side of the first terminal device, and the file sending list is a list organized by target file resources to be sent through the floating window.
E31、如E30所述的终端设备,所述文件发送列表中针对每个目标文件资源具有文件发送状态信息,所述文件发送状态信息包括成功发送状态、正在发送状态、等待发送状态以及发送失败状态。E31. The terminal device as described in E30, the file sending list has file sending status information for each target file resource, and the file sending status information includes a successful sending status, a sending status, a waiting status for sending, and a sending failure status .
E32、如E23所述的终端设备,所述目标文件资源的文件属性信息还包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。E32. The terminal device according to E23, wherein the file attribute information of the target file resource further includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identifier of the target file resource.
E33、如E32所述的终端设备,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。E33. The terminal device according to E32, wherein the type of the target file resource includes themes, wallpapers, ringtones, software, music, games, videos, and e-books.
E34、如E23至33任一项所述的终端设备,所述第一服务器为文件服务器,所述第二服务器为应用服务器,所述第三服务器为推送服务器。E34. The terminal device according to any one of E23 to 33, wherein the first server is a file server, the second server is an application server, and the third server is a push server.
本发明的实施例还公开了F35、一种用于文件传输的服务器,包括:The embodiment of the present invention also discloses F35, a server for file transfer, including:
信息包接收模块,适于在第二服务器侧接收第一终端设备侧发送的信息包,所述信息包包括第二终端设备的标识;An information packet receiving module, adapted to receive an information packet sent by the first terminal device on the second server side, the information packet including the identifier of the second terminal device;
第一文件获取消息发送模块,适于在第二服务器侧依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中;The first file acquisition message sending module is adapted to generate a file acquisition message on the second server side according to the identification of the second terminal device and send it to the third server;
文件接收响应信息接收模块,适于在第二服务器侧接收第二终端设备返回的文件接收响应信息,所述文件接收响应信息为第二终端设备在接收到第二服务器通过第三服务器发送的文件获取消息后,依据所述文件获取消息从第二服务器中获取所述信息包,以及,依据所述信息包携带的目标文件资源下载地址从第一服务器中下载对应的目标文件资源后生成;The file reception response information receiving module is adapted to receive the file reception response information returned by the second terminal device on the second server side, and the file reception response information is the second terminal device receiving the file sent by the second server through the third server After obtaining the message, obtain the information packet from the second server according to the file obtaining message, and download the corresponding target file resource from the first server according to the target file resource download address carried in the information packet, and then generate it;
文件接收响应信息发送模块,适于在第二服务器侧将所述文件接收响应信息发送至第一终端设备。The file receiving response information sending module is adapted to send the file receiving response information to the first terminal device at the second server side.
F36、如F35所述的服务器,还包括:F36. The server as described in F35, further comprising:
信息确认指令生成模块,适于在所述依据所述第二终端设备的标识生成文件获取消息发送至第三服务器中之前,在第二服务器侧生成信息确认指令;An information confirmation instruction generation module, adapted to generate an information confirmation instruction on the second server side before the file acquisition message generated according to the identification of the second terminal device is sent to the third server;
信息确认指令发送模块,适于在第二服务器侧将所述信息确认指令发送至第三服务器中,由第三服务器发送至第一终端设备侧;The information confirmation instruction sending module is adapted to send the information confirmation instruction to the third server on the second server side, and the third server sends it to the first terminal device side;
确认消息接收模块,适于在第二服务器侧接收第一终端设备返回的确认信息。The confirmation message receiving module is adapted to receive confirmation information returned by the first terminal device at the second server side.
F37、如F36所述的服务器,所述信息确认指令包括第二终端设备的标识,所述确认信息包括第一确认信息以及第二确认信息,所述第一确认信息为依据用户选定的确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;所述第二确认信息为依据用户选定的不确认所述第二终端设备的标识对应的第二终端设备为文件接收方而生成的信息;F37. The server as described in F36, the information confirmation instruction includes the identification of the second terminal device, the confirmation information includes first confirmation information and second confirmation information, and the first confirmation information is confirmation based on user selection The information generated by the second terminal device corresponding to the identity of the second terminal device is the recipient of the file; the second confirmation information is based on the user's choice of not confirming the second terminal corresponding to the identity of the second terminal device Information generated by the device as the recipient of the file;
所述服务器还包括:The server also includes:
调用模块,适于在所述确认信息为第一确认信息时,调用第一文件获取消息发送模块;The calling module is adapted to call the first file acquisition message sending module when the confirmation information is the first confirmation information;
标识获取模块,适于在所述确认信息为第二确认信息时,在第二服务器侧重新获取第二终端设备的标识。The identification obtaining module is adapted to re-acquire the identification of the second terminal device at the second server side when the confirmation information is the second confirmation information.
本发明的实施例还公开了G38、一种用于文件传输的服务器,包括:Embodiments of the present invention also disclose G38, a server for file transfer, including:
第一文件获取消息接收模块,适于在第三服务器侧接收第二服务器发送的文件获取消息,所述文件获取消息包括第二终端设备的标识;The first file acquisition message receiving module is adapted to receive the file acquisition message sent by the second server at the third server side, the file acquisition message including the identifier of the second terminal device;
第二文件获取消息发送模块,适于将所述文件获取消息发送至所述第二终端设备的标识对应的第二终端设备侧。The second file acquisition message sending module is adapted to send the file acquisition message to the side of the second terminal device corresponding to the identifier of the second terminal device.
G39、如G38所述的服务器,还包括:G39. The server as described in G38, further comprising:
信息确认指令接收模块,适于在第三服务器侧接收第二服务器发送的信息确认指令;The information confirmation instruction receiving module is adapted to receive the information confirmation instruction sent by the second server on the third server side;
信息确认指令发送模块,适于在第三服务器侧将所述信息确认指令发送至第一终端设备中。The information confirmation instruction sending module is adapted to send the information confirmation instruction to the first terminal device at the third server side.
本发明的实施例还公开了H40、一种用于文件传输的终端设备,包括:The embodiment of the present invention also discloses H40, a terminal device for file transfer, including:
第二文件获取消息接收模块,适于在第二终端设备侧接收第三服务器发送的文件获取消息;The second file acquisition message receiving module is adapted to receive the file acquisition message sent by the third server on the side of the second terminal device;
信息包获取模块,适于在第二终端设备侧依据所述文件获取消息从第二服务器中获取对应的信息包,所述信息包包括目标文件资源的下载地址;The information package acquisition module is adapted to acquire the corresponding information package from the second server according to the file acquisition message on the side of the second terminal device, the information package including the download address of the target file resource;
目标文件资源下载模块,适于在第二终端设备侧依据所述目标文件资源的下载地址从第一服务器中下载对应的目标文件资源;The target file resource download module is adapted to download the corresponding target file resource from the first server according to the download address of the target file resource on the second terminal device side;
文件接收响应信息生成模块,适于在第二终端设备侧依据所述目标文件资源生成文件接收响应信息并发送至第二服务器中。The file receiving response information generating module is adapted to generate file receiving response information on the second terminal device side according to the target file resource and send it to the second server.
H41、如H40所述的终端设备,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的类型,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书,所述的终端设备还包括:H41. The terminal device as described in H40, the information packet includes file attribute information, and the file attribute information includes the type of target file resource, and the type of target file resource includes theme, wallpaper, ringtone, software, music, game , video, e-book, the terminal equipment also includes:
若所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书,则将所述目标文件资源存储在第二终端设备侧;If the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, then store the target file resource on the side of the second terminal device;
若所述目标文件资源的类型为软件和/或游戏,则直接安装所述目标文件资源。If the type of the target file resource is software and/or game, then directly install the target file resource.
H42、如H40所述的终端设备,还包括:H42. The terminal equipment as described in H40, further comprising:
监听模块,适于在所述在第二终端设备侧接收第三服务器发送的文件获取消息之前,在第二终端设备侧监听网络状态,所述网络状态包括当前网络可用;The monitoring module is adapted to monitor the network status on the second terminal device side before receiving the file acquisition message sent by the third server at the second terminal device side, and the network status includes the current network availability;
第一连接模块,适于若当前网络可用,则在第二终端设备侧连接当前网络;The first connection module is adapted to connect to the current network on the side of the second terminal device if the current network is available;
第二连接模块,适于在第二终端设备侧连接所述第三服务器。The second connection module is adapted to connect to the third server at the side of the second terminal device.
H43、如H42所述的终端设备,若所述第二终端设备为移动设备,所述监听模块还适于:H43. For the terminal device described in H42, if the second terminal device is a mobile device, the monitoring module is also suitable for:
在所述第二终端设备侧注册网络状态变化接收服务ConnctionChangeReceiver;Registering the network state change receiving service ConnctionChangeReceiver on the second terminal device side;
在第二终端设备侧采用所述网络状态变化接收服务ConnctionChangeReceiver接收系统服务SystemService发出的广播CONNECTIVITY_CHANGE;Use the network status change receiving service ConnctionChangeReceiver on the second terminal device side to receive the broadcast CONNECTIVITY_CHANGE sent by the system service SystemService;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为真,则判定当前网络可用;If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is true, it is determined that the current network is available;
若所述广播CONNECTIVITY_CHANGE调用的方法wifiNetInfo.isConnected()返回的布尔值为假,则判定当前网络不可用。If the Boolean value returned by the method wifiNetInfo.isConnected() called by the broadcast CONNECTIVITY_CHANGE is false, it is determined that the current network is unavailable.
H44、如H42所述的方法,若所述第二终端设备为计算设备,所述在第二终端设备侧监听网络状态的步骤包括:H44. The method as described in H42, if the second terminal device is a computing device, the step of monitoring the network status on the second terminal device side includes:
在第二终端设备侧调用网络接口API查询当前的网络状态。Calling the network interface API on the side of the second terminal device to query the current network status.
本发明的实施例还公开了I45、一种文件传输的系统,包括:第一终端设备、文件服务器、应用服务器,推送服务器、第二终端设备,其中,The embodiment of the present invention also discloses I45, a file transmission system, including: a first terminal device, a file server, an application server, a push server, and a second terminal device, wherein,
所述第一终端设备,适于在第二终端设备无线接入第一终端设备时,通过悬浮窗口将待发送的目标文件资源发送至文件服务器中,并接收所述文件服务器返回的所述目标文件资源的下载地址,以及,将所述目标文件资源的下载地址构建信息包发送至应用服务器中,以及接收第二终端设备发送的文件接收响应信息;The first terminal device is adapted to send the target file resource to be sent to the file server through the floating window when the second terminal device wirelessly accesses the first terminal device, and receive the target file resource returned by the file server. The download address of the file resource, and, sending the download address construction information package of the target file resource to the application server, and receiving the file reception response information sent by the second terminal device;
所述文件服务器,适于接收所述目标文件资源,依据所述目标文件资源生成对应的目标文件资源的下载地址并发送至第一终端设备中;The file server is adapted to receive the target file resource, generate a download address of the corresponding target file resource according to the target file resource, and send it to the first terminal device;
所述应用服务器,适于接收所述信息包,依据所述信息包中携带的第二终端设备的标识生成文件获取消息发送至推送服务器中,以及接收第二终端设备发送的文件接收响应信息;The application server is adapted to receive the information packet, generate a file acquisition message according to the identifier of the second terminal device carried in the information packet and send it to the push server, and receive a file reception response message sent by the second terminal device;
所述推送服务器,适于将所述文件获取消息发送至所述第二终端设备侧,以及将所述文件接收响应信息发送至第一终端设备侧;The push server is adapted to send the file acquisition message to the second terminal device side, and send the file reception response information to the first terminal device side;
所述第二终端设备,适于依据所述文件获取消息从应用服务器中获取对应的信息包,以及,依据所述信息包携带的目标文件资源的下载地址从文件服务器中下载对应的目标文件资源,以及,依据所述目标文件资源生成文件接收响应信息发送至应用服务器。The second terminal device is adapted to obtain the corresponding information package from the application server according to the file acquisition message, and download the corresponding target file resource from the file server according to the download address of the target file resource carried in the information package , and, according to the target file resource, generate file reception response information and send it to the application server.
I46、如I45所述的系统,所述第一终端设备还适于:I46. The system as described in I45, the first terminal device is further adapted to:
依据用户针对悬浮窗口的指定操作生成文件发送请求;Generate a file sending request according to the user's specified operation on the floating window;
将所述文件发送请求发送至文件服务器中;Send the file sending request to the file server;
接收所述文件服务器返回的文件响应消息;receiving a file response message returned by the file server;
依据所述文件响应消息将所述目标文件资源发送至文件服务器中。Sending the target file resource to the file server according to the file response message.
I47、如I45所述的系统,所述信息包包括文件属性信息,所述文件属性信息包括目标文件资源的大小、目标文件资源的类型、目标文件资源的版本号、目标文件资源的标识。I47. The system as described in I45, the information packet includes file attribute information, and the file attribute information includes the size of the target file resource, the type of the target file resource, the version number of the target file resource, and the identification of the target file resource.
I48、如I47所述的系统,所述目标文件资源的类型包括主题、壁纸、铃声、软件、音乐、游戏、视频、电子书。I48, the system as described in I47, the type of described target file resource comprises theme, wallpaper, ring tone, software, music, game, video, electronic book.
I49、如I48所述的系统,所述第二终端设备还适于:I49. The system as described in I48, the second terminal device is further adapted to:
在所述目标文件资源的类型为主题、壁纸、铃声、音乐、视频、电子书时,将所述目标文件资源存储在第二终端设备侧;When the type of the target file resource is theme, wallpaper, ringtone, music, video, e-book, storing the target file resource on the side of the second terminal device;
在所述目标文件资源的类型为软件和/或游戏时,直接安装所述目标文件资源。When the type of the target file resource is software and/or game, the target file resource is directly installed.
Claims (45)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310612854.0A CN103888505B (en) | 2013-11-26 | 2013-11-26 | A kind of method, system, terminal device and the server of file transmission |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310612854.0A CN103888505B (en) | 2013-11-26 | 2013-11-26 | A kind of method, system, terminal device and the server of file transmission |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103888505A CN103888505A (en) | 2014-06-25 |
| CN103888505B true CN103888505B (en) | 2017-12-12 |
Family
ID=50957223
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310612854.0A Active CN103888505B (en) | 2013-11-26 | 2013-11-26 | A kind of method, system, terminal device and the server of file transmission |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103888505B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108737505A (en) * | 2018-04-27 | 2018-11-02 | 厦门理工学院 | A kind of method of resource downloading, system and terminal device |
| CN108848172A (en) * | 2018-06-22 | 2018-11-20 | 深圳云之家网络有限公司 | A kind of document transmission method and system |
| CN108960378B (en) * | 2018-08-08 | 2020-05-12 | 腾讯科技(深圳)有限公司 | Data downloading method, system, device and storage medium |
| CN110058854B (en) * | 2019-04-24 | 2021-10-12 | 上海连尚网络科技有限公司 | Method, terminal device and computer-readable medium for generating application |
| CN111182529B (en) * | 2019-11-26 | 2022-11-29 | 腾讯云计算(北京)有限责任公司 | Police application processing method and device, electronic equipment and storage medium |
| CN113037790B (en) * | 2019-12-09 | 2023-05-16 | 北京中关村科金技术有限公司 | File processing method, device and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102025784A (en) * | 2010-12-21 | 2011-04-20 | 中兴通讯股份有限公司 | Method, device and system for downloading streaming media file |
| CN102891891A (en) * | 2012-09-26 | 2013-01-23 | 广州市动景计算机科技有限公司 | Method and system for cross-device file transmission |
| CN103248678A (en) * | 2013-04-24 | 2013-08-14 | 天脉聚源(北京)传媒科技有限公司 | Data resource sharing method, server-side and client-side |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7689532B1 (en) * | 2000-07-20 | 2010-03-30 | Digimarc Corporation | Using embedded data with file sharing |
-
2013
- 2013-11-26 CN CN201310612854.0A patent/CN103888505B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102025784A (en) * | 2010-12-21 | 2011-04-20 | 中兴通讯股份有限公司 | Method, device and system for downloading streaming media file |
| CN102891891A (en) * | 2012-09-26 | 2013-01-23 | 广州市动景计算机科技有限公司 | Method and system for cross-device file transmission |
| CN103248678A (en) * | 2013-04-24 | 2013-08-14 | 天脉聚源(北京)传媒科技有限公司 | Data resource sharing method, server-side and client-side |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103888505A (en) | 2014-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12218896B2 (en) | Conversion of text relating to media content and media extension apps | |
| US11991249B2 (en) | Method, user equipment, server, and apparatus for implementing information sharing | |
| CN103634392B (en) | A method, system, terminal device and server for offline file transmission | |
| US10554599B2 (en) | Conversion of detected URL in text message | |
| CN113254121B (en) | A messaging app that interfaces with one or more extension apps | |
| TWI679873B (en) | Message extension app store | |
| JP4349587B2 (en) | System and method for sharing a contact list between mobile phones | |
| CN101448212B (en) | Apparatus and methods for operation of wireless server | |
| EP2896232B1 (en) | A method, device, server, and system for managing devices | |
| CN103888505B (en) | A kind of method, system, terminal device and the server of file transmission | |
| US20170359701A1 (en) | Sticker distribution system for messaging apps | |
| US9462061B2 (en) | Method, device, server, and system for managing devices | |
| CN102917061B (en) | Resource synchronization method and system | |
| CN109388620A (en) | A kind of method and the first electronic equipment of striding equipment access data | |
| CN104410680A (en) | Method, client terminal, server and system of sharing file/file folder | |
| CN103618824B (en) | Method for sending information in address book program and mobile terminal | |
| CN103687059B (en) | Set up the method and device connected between computing device and mobile device | |
| CN105763650B (en) | A kind of method of offline file transmission, system, terminal device and server | |
| CN104410679B (en) | Share extracting method, client, server and the system of file/folder | |
| CN104243572B (en) | A kind of data transmission method and device based on carry-on WiFi network | |
| JP4950319B2 (en) | Information registration method, information management apparatus, and advertisement display system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220718 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |