CN101588353A - Method, system and equipment for sharing files - Google Patents

Method, system and equipment for sharing files Download PDF

Info

Publication number
CN101588353A
CN101588353A CN 200810112180 CN200810112180A CN101588353A CN 101588353 A CN101588353 A CN 101588353A CN 200810112180 CN200810112180 CN 200810112180 CN 200810112180 A CN200810112180 A CN 200810112180A CN 101588353 A CN101588353 A CN 101588353A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
file
shared
multimedia
files
sharing
Prior art date
Application number
CN 200810112180
Other languages
Chinese (zh)
Other versions
CN101588353B (en )
Inventor
杨辉洲
卫 王
Original Assignee
闪联信息技术工程中心有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Abstract

The invention discloses a method, a system and equipment for sharing files. The method comprises the following steps of: creating a seed file for a multimedia file to be shared, and sending the seed file to a server; sending a sharing message to a user side which shares the multimedia file; and transmitting the multimedia file to the user side through a P2P network when the user side selects to download the multimedia file. The sharing of the multimedia file in the method is based on the P2P network, so the pressure on the server when a plurality of users synchronously download is relieved, the user quality of service is improved, and network paralysis cannot be caused when the server breaks down; moreover, the notification and the download during the sharing of the multimedia file are automatically finished by equipment of the user sides and do not need to be manually operated by the users; therefore, the sharing of the file is convenient and quick.

Description

文件共享方法、系统及设备 File sharing method, system and equipment

技术领域 FIELD

本发明涉及网络通信领域,特别涉及一种基于P2P(peer-to-peer,点对点) 的文件共享方法、系统及设备。 The present invention relates to the field of network communication, particularly to a method of file-sharing P2P (peer-to-peer, peer) based systems and equipment.

背景技术 Background technique

随着电子产品数字化的发展,例如数码相机、数码摄像机等,这些产品产生越来越多的多媒体文件,用户除了自己对这些多媒体文件进行欣赏外,通常还会有与其它用户进行多媒体文件交互的需求,以达到共同欣赏的目的。 With the development of digital electronic products, such as digital cameras, digital cameras, etc. These products generate more and more multimedia files, users enjoy themselves in addition to these multimedia files, but usually there will be a multimedia file to interact with other users needs in order to achieve common appreciation. 但是, but,

在交互这些多媒体文件时,由于网络带宽的限制,以及多々某体文件尺寸的限制, 通常难以快速方便地通过网络分享尺寸较大的多媒体文件。 When the interactive multimedia files, due to network bandwidth limitations, and the file size limit of a multi 々 body is often difficult to quickly and easily share size large multimedia files over a network.

发明人在对现有技术的研究过程中发现,用户通常通过HTTP (Hypertext Transfer Protocol,超文本传输协议)协议、FTP ( File Transfer Protocol,文件传输协议)协议等将多媒体文件上传到服务器上,其它用户可以从服务器上直接获取需要的多媒体文件,但是这种多媒体文件的分享方式,需要由服务器完成全部的文件存储,增加了网络带宽的压力,并且上述文件需要经过两次传输才能够提供给需要的用户,即从多媒体文件提供方上传至服务器,再从服务器下载至多媒体文件需求方,由此增加了文件传输的复杂度;现有技术中还可以通过邮件附件交互多媒体文件,但通常附件只能传输几十兆大小的文件,即仅能传输尺寸较小的图片信息,对于尺寸较大的视频信息则无法传输,因此极大、 限制了多媒体文件交互的多样性;另外,如果多媒体文件提供方和需求方同时登录 In the course of the study the inventors found the prior art, the user typically by HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol), FTP (File Transfer Protocol, File Transfer Protocol) protocol to upload media files to the server, other the user can acquire from the server directly required for multimedia files, but this way of sharing the multimedia files required to complete all of the files stored by the server, the pressure increasing network bandwidth, and said transmission only after two files can be provided to require users, i.e., to provide the multimedia file uploaded to the server side, and then download the multimedia file from the server to the demand side, thereby increasing the complexity of the file transfer; the prior art can also interactive multimedia file email attachments, but usually only attachments can transmit dozens of megabytes of files that can only transfer small size picture information, for a larger size video information can not be transmitted, thus greatly limiting the diversity of interactive multimedia files; in addition, if the multimedia file provided side and demand-side simultaneously log IM软件,也可以进行多i某体文件的即时传输,但是这种传输方式对实时性的要求较高,任何一方未登录则都不能进行多々某体文件的传输。 IM software, you can instantly transmit multiple files i a body, but that the higher transmission requirements of real-time, either party is not logged in the transmission can not be more than a body 々 file.

发明内容 SUMMARY

本发明的目的在于提供一种基于P2P的文件共享方法、系统及设备,以解决现有技术中多媒体文件共享较复杂,容易受网络带宽和文件形式的限制,且 Object of the present invention is to provide a method based on P2P file sharing, system and device, the prior art to solve more complex multimedia file sharing, vulnerable file format and network bandwidth limitation, and

4实时性要求高的问题。 4 real-time requirements high.

为解决上述技术问题,本发明提供如下技术方案: 一种文件共享方法,包括: To solve the above problems, the present invention provides the following technical solutions: A file sharing method, comprising:

为待共享的多媒体文件创建种子文件,并将所述种子文件上传至服务器; 向共享所述多々某体文件的用户端发送共享消息; Multimedia file created seed file to be shared, and the seed file is uploaded to the server; shared message sent to said shared body of a plurality 々 client files;

当所述用户端选择下载所述多媒体文件时,通过点对点P2P网络将所述多^f某体文件传输至所述用户端。 When the end user to select the multimedia file to download, through the P2P network in a body of the multi-^ f to the file transfer client.

所述为待共享的多媒体文件创建种子文件之前,还包括:选择所述待共享的多媒体文件和共享所述多媒体文件的用户端。 Before creating the seed file to be shared multimedia files, further comprising: selecting the media files to be shared and sharing the multimedia file to the client.

所述选择待共享的多媒体文件包括: The selected multimedia files to be shared comprises:

从插入的USB接口设备中选择所述待共享的多媒体文件;或通过串口或网络复制所述待共享的多媒体文件。 Selecting a multimedia file to be shared from the insertion of the USB interface device; or copying of the multimedia files to be shared through the serial port or a network. 所述向共享多媒体文件的用户端发送共享消息包括: 当所述共享多媒体文件的用户端接入网络时,向所述用户端直接传输共享消息; The shared transmitting multimedia files to the shared client message comprises: when the multimedia file sharing client access network, the UE directly to the transmission of the shared message;

当所述共享多媒体文件的用户端未接入网络时,向所述服务器传输共享消息,所述服务器在所述用户端接入网络时向所述用户端转发所述共享消息。 When the multimedia file sharing client does not access the network to share the message transmitted by the server, the shared server forwards the message to the client when the client access network.

所述用户端选择下载多媒体文件包括: The end user the option to download the multimedia file comprises:

用户端接收到所述共享消息后判断是否下载所述多i某体文件; 当下载所述多媒体文件时,从所述服务器上下载所述种子文件; 完成所述种子文件的下载后启动P2P网络。 After receiving the user determines whether to download the shared message body of a plurality of the files I; when the multimedia file downloading, download the file from the server seed; seed After completion of downloading the file to start P2P network .

将多媒体文件传输至用户端所采用的网络协议包括:BitTorrent协议、 Emule协议、HTTP协议或FTP协议。 Multimedia files to the network protocol used by the UE comprises: BitTorrent protocol, Emule protocol, HTTP protocol or the FTP protocol.

一种文件共享系统,包括:服务器,以及通过所述服务器接入网络的共享文件发起方和共享文件接收方, A document sharing system, comprising: a server, and the server through network access shared files and share files initiator recipient,

所述共享文件发起方,用于为待共享的多媒体文件创建种子文件,并将所述种子文件上传至服务器,向共享所述多媒体文件的共享文件接收方发送共享消息; The initiator shared file, a file for creating a seed for the multimedia files to be shared, and the seed file uploaded to the server, said multimedia files to share a shared file transmitted shared message recipient;

所述服务器,用于保存所述共享文件发起方上传的种子文件; The server, sharing files used to save the party initiating the seed file upload;

所述共享文件接收方,用于选择下载所述多媒体文件时,接收通过P2P 网络传输的所述多媒体文件。 The shared file receiver, for selecting download the multimedia file, receiving the P2P network by the multimedia file transfer.

所述共享文件发起方进一步用于,选择所述待共享的多i某体文件和共享所述多媒体文件的共享文件接收方。 The initiator is further configured to share files, selecting a plurality i of the body to be shared and the file sharing file shared files of the multimedia receiver.

一种文件共享设备,包括: A document sharing device, comprising:

创建单元,用于为待共享的多媒体文件创建种子文件; Creation unit for creating a seed file for the multimedia files to be shared;

上传单元,用于将所述种子文件上传至服务器; Uploading means for uploading the seed file to the server;

发送单元,用于向共享所述多媒体文件的用户端发送共享消息; Transmitting means for transmitting a message to share the multimedia file sharing client;

传输单元,用于当所述用户端选择下载所述多媒体文件时,通过P2P网络将所述多^?某体文件传输至所述用户端。 Transmission means for, when the UE select the multimedia file downloading, by the multi-network P2P ^? A file transfer member to the end user.

还包括: Also includes:

选择单元,用于选择所述待共享的多媒体文件和共享所述多媒体文件的用户端。 Selecting means for selecting a multimedia file to be shared by the client and share the multimedia files.

一种文件共享设备,包括: A document sharing device, comprising:

第一接收单元,用于接收提供多媒体文件的用户端发送的共享消息; A first receiving means for receiving a multimedia file to provide client shared message transmission;

选择单元,用于选择下载所述多媒体文件; Selecting means for selecting the multimedia file downloading;

第二接收单元,用于接收通过P2P网络传输的所述多媒体文件。 A second receiving unit for receiving the multimedia file through P2P network transmission.

所述选择单元包括: The selection unit comprises:

判断单元,用于用户端接收到所述共享消息后判断是否下载所述多々某体文 Determination means for terminating the user after receiving the message determines whether to download a shared body hereinabove plurality 々

件; Pieces;

下载单元,用于当下载所述多媒体文件时,从所述服务器上下载所述种子文件; Downloading means for, when the multimedia file downloading, from the server to download the seed file;

启动单元,用于完成所述种子文件的下载后启动P2P网络。 Starting unit for performing the seed file after download start P2P network.

由以上本发明提供的技术方案可见,本发明中为待共享的多媒体文件创建种子文件,并将所述种子文件上传至服务器,向共享所述多媒体文件的用户端发送共享消息,当所述用户端选择下载所述多媒体文件时,通过点对点P2P Provided by the above aspect of the present invention can be seen, the present invention is to create a multimedia file seed file to be shared, and the seed file uploaded to the server, the multimedia file sharing client to send the shared message, when the user when the end of the selected multimedia file downloading, by the P2P

网络将所述多媒体文件传输至所述用户端。 The network multimedia files to the user terminal. 由于本发明中多媒体文件的共享基 Since the group share multimedia files according to the present invention,

于P2P网络,因此緩解了多用户同时下载时对服务器的压力,提高了用户服务质量,当服务器故障时不会造成网络瘫痪;并且,多媒体文件共享过程中的通知和下载均由用户端设备自动完成,无需用户进行手动操作,因此使得文件共享方便快捷。 In P2P networks, thus easing the pressure on the server multi-user simultaneous downloads and improve user service quality, when a server failure will not result in paralysis of the network; and notifying the multimedia file sharing process and automatically downloads by CPE complete, without requiring the user to manually operate, thus enabling quick and easy file sharing.

附图说明 BRIEF DESCRIPTION

图1为本发明文件共享方法的一个实施例流程图; Figure 1 is a flowchart file sharing method according to an embodiment of the invention;

图2为本发明文件共享方法的另一个实施例流程图; FIG 2 flow chart of another embodiment of the present invention, a method of file sharing embodiment;

图3为本发明基于P2P的文件共享硬件结构示意图; Figure 3 a schematic view of a hardware-based P2P file sharing structure of the present invention;

图4为本发明在两个嵌入式设备之间进行文件共享的一个实施例流程; FIG 4 of the present invention to share files between the two devices one embodiment of the embedded process embodiment;

图5为本发明在两个嵌入式设备之间进行文件共享的另一个实施例流程; Another 5 of the present invention to share files between the two devices embedded exemplary process;

图6为本发明文件共享系统的实施例框图; Example 6 a block diagram of embodiments of the present invention, the file sharing system;

图7为本发明一种文件共享设备的一个实施例框图; FIG 7 share a block diagram of one embodiment of apparatus of the present embodiment of the invention A document;

图8为本发明一种文件共享设备的另一个实施例框图; FIG 8 is a block diagram of another embodiment of the invention A document sharing device embodiment;

图9为本发明另一种文件共享设备的一个实施例框图; Sharing a block diagram of one embodiment of apparatus of another embodiment of the present invention, FIG. 9 document;

图IO为本发明另一种文件共享设备的另一个实施例框图。 FIG IO block diagram of another embodiment of another file sharing apparatus embodiment of the present invention.

具体实施方式 Detailed ways

本发明的核心是提供了一种基于P2P的文件共享方法、系统及设备,通过为待共享的多々某体文件创建种子文件,并将所述种子文件上传至服务器,向共 The core of the present invention is to provide a method based on P2P file sharing, system and device, to create a seed file to be shared by a plurality 々 file body, and the seed file uploaded to the server, to the common

享所述多々某体文件的用户端发送共享消息,当所述用户端选择下载所述多^某体文件时,通过P2P网络将所述多々某体文件传输至所述用户端。 A shared body of the multi 々 file sharing user sends a message, when the user terminal to download the selected files plurality ^ a body by transmitting the plurality P2P network 々 a file to the user terminal body.

为了使本技术领域的人员更好地理解本发明方案,并使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作 In order to make those skilled in the art better understand the present invention, the above and other objects, features and advantages of the present invention can be more fully understood in conjunction with the accompanying drawings and specific embodiments of the present invention will

进一步详细的说明。 Further detail.

本发明文件共享方法的第一实施例流程如图1所示: File sharing process of the first embodiment of the method of the present invention shown in Figure 1:

步骤101:为待共享的多媒体文件创建种子文件,并将种子文件上传至服 Step 101: Create a seed file to be shared multimedia files, and seed files uploaded to the service

7务器。 7 Service unit.

步骤102:向共享该多媒体文件的用户端发送共享消息。 Step 102: Send a message to share the multimedia files shared clients.

其中,当所述共享多媒体文件的用户端接入网络时,向所述用户端直接传输共享消息;当所述共享多J?某体文件的用户端未接入网络时,向所述服务器传消息。 Wherein, when the multimedia file sharing client access network, the shared message transmitted to the client directly;? J when the shared multi-user end of a body when no file access network, transmitted to the server messages.

步骤103:当用户端选择下载该多媒体文件时,通过P2P网络将该多媒体文件传输至用户端。 Step 103: When the UE to download the selected multimedia file, is transmitted to the UE via the P2P network multimedia file.

具体的,用户端接收到所述共享消息后判断是否下载所述多媒体文件,当下载所述多媒体文件时,从所述服务器上下载所述种子文件,当不下载所述多媒体文件时,结束当前操作,完成所述种子文件的下载后启动P2P网络,通过该P2P网络下载该多媒体文件。 Specifically, the end user after receiving the message determines whether to download the shared multimedia file when the multimedia file downloading, file downloading the seed from the server, when the multimedia file is not downloaded, the end of the current operation, start the P2P network after the download is complete the seed file, download the multimedia file through the P2P network.

其中,将多媒体文件传输至用户端所采用的网络协议包括可以为BitTorrent (比特流)协议、Emule (档案分享网络)协议、HTTP协议或FTP协议。 Wherein the multimedia files transmitted to the network protocol used by the UE may include the BitTorrent (bit stream) protocol, Emule (file sharing network) protocol, HTTP protocol or the FTP protocol.

本发明文件共享方法的第二实施例流程如图2所示,该实施例详细描述了共享文件发起方和共享文件接收方通过P2P实现文件共享的过程: File sharing process of the second embodiment of the method of the present invention shown in Figure 2, the embodiment described in detail, shared files and share files initiator recipient file sharing process is achieved by P2P:

步骤201:共享文件发起方选择待共享的多媒体文件和允许共享该多媒体文件的共享文件接收方。 Step 201: initiator selected file sharing multimedia files to be shared and allow the sharing of the multimedia file sharing file receiver.

其中,可以从插入的USB (Universal Serial Bus,通用串行总线)接口设备中选择待共享的多媒体文件,比如常用的移动硬盘,或读卡器等;也可以通过串口或网络复制待共享的多々某体文件。 Wherein the can (Universal Serial Bus Universal Serial Bus,) from an interface to be inserted in a USB device to share multimedia files, such as the commonly used removable hard disk, a card reader, or the like; may be copied to be shared through the serial port or a network of multiple 々 a body file.

步骤202:共享文件发起方为待共享的多媒体文件创建种子文件。 Step 202: Create a shared folder initiator seed file to be shared multimedia files.

步骤203:共享文件发起方将该种子文件上传至服务器。 Step 203: initiating upload shared files to the seed file server.

步骤204:判断共享文件接收方是否接入网络,若是,则执行步骤205; 否则,执行步骤206。 Step 204: determining whether to access the shared file receiver network, if yes, execute step 205; otherwise, step 206 is performed.

步骤205:共享文件发起方向共享文件接收方发送共享消息,执行步骤 Step 205: initiating a direction shared file sharing file receiver transmits a shared message, step

207。 207. 步骤206:共享文件发起方向服务器传输共享消息,服务器在共享文件接收方接入网络时向其转发该共享消息。 Step 206: the direction of a shared file server initiates transmission of the shared information, when a shared server file receiver shared access network to forward the message.

步骤207:共享文件接收方收到所述共享消息后判断是否下载该多媒体文件,若是,则执行步骤208;否则,结束流程。 Step 207: the receiver receives the shared files on the shared message determines whether to download the multimedia file, if yes, perform step 208; otherwise, the process ends.

步骤208:共享文件接收方从服务器上下载该多媒体文件的种子文件。 Step 208: the shared file receiver seed file to download the multimedia file from the server.

步骤209:共享文件接收方启动P2P网络。 Step 209: the shared file receiver to start the P2P network.

步骤210:共享文件提供方通过P2P网络将该多^?某体文件传输到共享文件接收方。 Step 210: P2P file sharing network provider through the body of a multi ^ file transfer to the shared file receiver?.

可以通过BitTorrent协议、Emule协议、HTTP协议或FTP协议传输多々某体文件。 By BitTorrent protocol, Emule protocol, HTTP protocol or FTP protocol to transmit a plurality 々 body file.

步骤211:共享文件接收方提示完成该多媒体文件的下载,结束当前流程。 Step 211: the shared file receiver prompts to complete the download multimedia files, the current process ends.

结合上述方法实施例,本发明基于P2P网络实现文件共享的硬件结构示意图如图3所示,该硬件结构可以集成在嵌入式设备中,嵌入式设备具有多媒体文件共享的功能,通过与显示终端相连对共享的多媒体文件进行展示。 In conjunction with the above-described method embodiments, file sharing hardware structure diagram shown in Figure 3, may be integrated in the hardware configuration of the embedded device, the embedded multimedia file sharing device having the functions of the present invention is based on P2P networks, connected by the display terminal shared multimedia files on display. 该硬件 The hardware

结构中包括:控制模块,与控制模块分别相连的设备接口模块、通信模块和存储模块。 Structure comprising: a control module device interface module, and control module are respectively connected, a communication module and a storage module.

其中,设备接口模块提供对外部可插拔设备上的多媒体文件进行访问的功能,设备接口模块支持USB接口设备,即外部可插拔设备可以是具有USB接口的移动硬盘或读卡器等设备。 Wherein the device interface module provides functionality for multimedia files on external pluggable access device, the device interface module supports a USB interface devices, i.e., the external device may be a pluggable USB interface card reader device or the like removable hard disk.

通信模块可以向服务器或用户端发送多媒体文件,也可以通过串口或网络接收多媒体文件。 The communication module may transmit a multimedia file to a server or a client, the multimedia file may be received through the serial port or a network.

存储模块是保存多媒体文件的存储介质,可以是硬盘或闪存等,与外部可插拔设备不同的是,存储模块是内置于硬件设备内部的模块,可以保存通信模块通过串口或网^4妻收的多媒体文件。 The storage module is a storage medium stored multimedia files, may be a hard disk or a flash memory, an external pluggable different devices, the memory module is a hardware built inside the module, can be saved through the serial or network communication module 4 ^ yield wife multimedia files.

控制模块是硬件设备的核心,在共享文件发起方,该模块控制设备接口模块对可插拔设备中文件的读取,P2P网络的运行,共享文件和共享文件接收方的选择,种子文件的创建,以及共享文件通知消息的发送;在共享文件接收方, 该模块控制通过P2P网络下载种子文件及传输多媒体文件。 The control module is the core hardware, the initiator in the shared folder, the module control device interface module reads the files on removable devices, choose to run P2P networks, shared files and shared recipient, create a seed file , shared files and transmits the notification message; shared file receiver, the control module via the P2P network and transfer the seed file download multimedia files.

9本发明在两个嵌入式设备之间进行文件共享的一个实施例流程如图4所示,该实施例示出了共享文件提供方的嵌入式设备(设备1 )从USB设备中获取共享文件,并直接将共享该文件的通知消息发送给共享文件接收方的嵌入式设备(设备2)的过程: 9 invention, file sharing between the two embedded devices in a process embodiment shown in Figure 4, this embodiment illustrates a shared file providing the embedded device side (apparatus 1) to obtain a shared file from the USB device, and the notification message directly to the shared file is sent to the embedded device to share files during the reception side (apparatus 2):

步骤401:设备1检查USB接口上插入了USB设备。 Step 401: Insert a USB device on device 1 checks the USB interface.

步骤402:设备1从USB设备存储的多媒体文件中选择用于共享的多媒体文件和共享该多媒体文件的设备2。 Step 402: Select an apparatus for sharing multimedia file sharing device and the multimedia file from the USB device 2 stored multimedia files.

在具体实现时,可以在设备1中写入选择共享文件和共享设备的客户端软件,用户l可以在设备l上运行该软件,实现上述选择功能。 In specific implementation, the device may be written in a selected shared file sharing device and the client software, the user may run the software l on the device l, to achieve the selection functionality.

步骤403:设备1为选4奪的共享文件创建种子文件。 Step 403: 1 for the selected device to share files created 4 wins seed file. 步骤404:设备1将该种子文件上传至WEB服务器。 Step 404: 1 device seed file is uploaded to the WEB server. 步骤405:设备l向当前在线的设备2发送下载共享文件的通知消息。 Step 405: l device sends a notification message to download shared files currently online device 2. 步骤406:设备2收到通知消息后给出提示,用户2在设备2上选择下载该共享文件。 Step 406: After receiving apparatus 2 a notification message prompting the user 2 select the device 2 on the shared file download.

步骤407:设备2从WEB服务器上下载种子文件。 Step 407: The device downloaded from the WEB server 2 seed file. 步骤408:设备2启动P2P软件。 Step 408: The device 2 starts P2P software.

步骤409:设备2接收设备1通过P2P网络传输的共享文件。 Step 409: a shared file device 2 receives the transmission apparatus through a P2P network.

步骤410:设备2接收到全部共享文件后提示用户2共享文件下载完毕。 Step 410: after receiving the device file sharing all user prompts 2 2 shared file is downloaded.

本发明在两个嵌入式设备之间进行文件共享的另一个实施例流程如图5 所示,该实施例示出了共享文件提供方的嵌入式设备(设备l)通过串口复制共享文件,并通过WEB服务器将共享该文件的通知消息转发给共享文件接收方的嵌入式设备(设备2)的过程: The present invention further file sharing between two devices embedded exemplary process shown in Figure 5, the illustrated embodiment provides a shared file embedded device side (apparatus l) through serial copying the shared files, and by the WEB server of the file sharing notification message is forwarded to the embedded device to share files during the reception side (apparatus 2):

步骤501:设备l通过串口复制待共享的多媒体文件,该多媒体文件可以保存在设备1的内置存储空间内。 Step 501: l by serial copying apparatus multimedia files to be shared, the multimedia file may be stored in the internal storage apparatus 1.

步骤502:设备l选择共享该多媒体文件的共享设备。 Step 502: The device l choose to share the media file sharing device.

与前述设备1 一致,可以预先在该设备1中写入选择共享文件和共享设备的客户端软件,用户1可以在设备1上运行该软件,实现上述选择功能。 Consistent with the apparatus 1, can be written in advance in the apparatus 1 and to select the shared file sharing device client software, a user can run the software on the device 1, to achieve the selection functionality. 步骤503:设备1为选择的共享文件创建种子文件。 Step 503: 1 device to share files created for the selected seed file.

步骤504:设备1将该种子文件上传至WEB服务器。 Step 504: 1 device seed file is uploaded to the WEB server.

步骤505:设备2当前不在线,设备1向WEB服务器发送请求设备2下载共享文件的通知消息。 Step 505: the device 2 is not currently online, the apparatus 1 sends a notification message 2 shared file download request to the WEB server device.

步骤506: WEB服务器判断用户2上线。 Step 506: WEB server 2 determines on-line user.

步骤507: WEB服务器将通知消息转发给设备2。 Step 507: WEB server forwarding a notification message to the device 2.

步骤508:设备2收到通知消息后给出提示,用户2在设备2上选择下载该共享文件。 Step 508: After receiving apparatus 2 a notification message prompting the user 2 select the device 2 on the shared file download.

步骤509:设备2从WEB服务器上下载种子文件。 Step 509: The device downloaded from the WEB server 2 seed file. 步骤510:设备2启动P2P软件。 Step 510: Start Device 2 P2P software.

步骤511:设备2接收设备1通过P2P网络传输的共享文件。 Step 511: a shared file device 2 receives the transmission apparatus through a P2P network.

步骤512:设备2接收到全部共享文件后提示用户2共享文件下载完毕。 Step 512: after receiving the device file sharing all user prompts 2 2 shared file is downloaded.

与本发明文件共享方法的实施例相对应,本发明还^:供了文件共享系统的实施例。 Example file sharing method of the present invention corresponds to, ^ the present invention further: Example for the file sharing system.

本发明文件共享系统的实施例框图如图6所示,该系统包括:服务器620, 以及通过所述服务器620接入网络的共享文件发起方610和共享文件接收方630。 Embodiment of the present invention shown in Figure 6 a block diagram of a file sharing system embodiments, the system comprising: a server 620, and server 620 through the network access shared files and share files initiator 610 receiver 630.

其中,共享文件发起方610用于为待共享的多J?某体文件创建种子文件,并将所述种子文件上传至服务器620,向共享所述多媒体文件的共享文件接收方630发送共享消息;服务器620用于保存所述共享文件发起方上传的种子文件; 共享文件接收方630用于选择下载所述多媒体文件时,接收通过P2P网络传输的所述多媒体文件。 Wherein the initiator 610 for sharing files in a seed file to create the body of the file to be shared, multi-J, and the seed file is uploaded to server 620, to the shared file sharing multimedia file receiver 630 transmits a shared message?; server 620 configured to save the shared file party initiating seed file uploaded; shared file receiver 630 for selecting the multimedia file download, receiving the multimedia file transmitted over the P2P network.

共享文件发起方610还用于选择所述待共享的多媒体文件和共享所述多媒体文件的共享文件接收方630。 Shared file further initiator 610 for selecting the multimedia files to be shared and the file sharing multimedia file sharing receiver 630.

与本发明文件共享方法和系统的实施例相对应,本发明还提供了文件共享设备的实施例。 Example methods and systems to share file corresponding to the present invention, the present invention also provides an embodiment of a shared file device.

本发明一种文件共享设备的一个实施例框图如图7所示,该文件共享设备通常作为文件共享提供方,包括:创建单元710、上传单元720、发送单元730 和传输单元740。 Example diagram shown in Figure 7 A document sharing apparatus of the present invention an embodiment, the provider typically file sharing device as file sharing, comprising: a creating unit 710, upload unit 720, a transmission unit 730 and transmission unit 740.

其中,创建单元710用于为待共享的多媒体文件创建种子文件;上传单元720用于将所述种子文件上传至服务器;发送单元730用于向共享所述多々某体文件的用户端发送共享消息;传输单元740用于当所述用户端选择下载所述多媒体文件时,通过P2P网络将所述多媒体文件传输至所述用户端。 Wherein the creating unit 710 for creating a seed file to multimedia files to be shared; 720 upload unit for uploading the seed file to the server; transmitting unit 730 for the body of a plurality 々 file sharing client to send a message to share ; when the transmitting unit 740 for the UE select the multimedia file downloading, via the P2P network the multimedia file transmitted to the UE.

本发明一种文件共享设备的另一个实施例框图如图8所示,该文件共享设备通常作为文件共享提供方,包括:选择单元810、创建单元820、上传单元830、发送单元840和传输单元850。 A block diagram of another embodiment shown in FIG. 8 A document sharing apparatus embodiment of the present invention, the file sharing device usually provided as a file sharing party, comprising: a selecting unit 810, a creating unit 820, upload unit 830, the transmission unit 840 and a transmission unit 850.

其中,选择单元810用于选择所述待共享的多媒体文件和共享所述多媒体文件的用户端;创建单元820用于为待共享的多媒体文件创建种子文件;上传单元830用于将所述种子文件上传至服务器;发送单元840用于向共享所述多媒体文件的用户端发送共享消息;传输单元850用于当所述用户端选择下载所述多媒体文件时,通过P2P网络将所述多媒体文件传输至所述用户端。 Wherein the selection unit 810 for selecting the multimedia files to be shared and the multimedia file sharing client; creating unit 820 for creating a seed file to multimedia files to be shared; upload unit 830 for the seed file uploaded to the server; and a sending unit 840 configured to send a message to share the multimedia file sharing client; transmission unit 850 when the user terminal for selecting the multimedia file to download, through the P2P network to transmit multimedia file the UE.

本发明另一种文件共享设备的一个实施例框图如图9所示,该文件共享设备通常作为文件共享接收方,包括:第一接收单元910、选择单元920和第二接收单元930。 Embodiment of the present invention shown in Figure 9 a block diagram of another embodiment of a device file sharing, file sharing device generally used as the file sharing receiver, comprising: a first receiving unit 910, selecting unit 920 and the second receiving unit 930.

其中,第一接收单元910用于接收提供多媒体文件的用户端发送的共享消息;选择单元920用于选择下载所述多々某体文件;第二接收单元930用于接收通过P2P网络传输的所述多媒体文件。 Wherein receiving the first message receiving unit 910 provided for sharing multimedia file sent by the client; the second receiving unit 930 for receiving transmission via the P2P network; selecting unit 920 for selecting to download the file body of a plurality 々 multimedia files.

本发明另一种文件共享设备的另一个实施例框图如图IO所示,该文件共享设备通常作为文件共享接收方,包括:第一接收单元1010、选择单元1020 和第二接收单元1030。 The present invention further another embodiment of the device file sharing block diagram shown in the IO, the file as a file sharing devices typically share receiver, comprising: a first receiving unit 1010, selecting unit 1020 and the second receiving unit 1030.

其中,第一接收单元1010用于接收4是供多々某体文件的用户端发送的共享消息。 Wherein the first receiving unit 1010 for receiving the message 4 is shared for a plurality 々 body files sent by the user. 选择单元1020进一步包括:判断单元1021,用于用户端接收到所述共享消息后判断是否下载所述多+某体文件;下载单元1022,用于当下载所述多媒体文件时,从所述服务器上下载所述种子文件;启动单元1023,用于完成所述种子文件的下载后启动P2P网络。 Selecting unit 1020 further includes: a judging unit 1021, the user receives a message after determining whether the shared downloading the file body of a multi-+; downloading unit 1022 for, when the multimedia file downloading, from said server downloading files on the seed; initiating unit 1023 for performing the seed file after download start P2P network. 第二接收单元930用于接收通过P2P网络传输的所述多媒体文件。 The second receiving unit 930 for receiving the multimedia file transmitted over the P2P network.

由以上本发明实施例可见,由于本发明中多媒体文件的共享基于P2P网络,因此緩解了多用户同时下载时对服务器的压力,提高了用户服务质量,当 From the above embodiment of the present invention, since the present invention share the multimedia files based on the P2P network, multiple users simultaneously and therefore alleviate the stress on the server is downloaded to improve the quality of the service user, when

服务器故障时不会造成网络瘫痪;并且,多媒体文件共享过程中的通知和下载均由用户端设备自动完成,无需用户进行手动操作,因此使得文件共享方便快捷。 When a network server failure will not cause paralysis; and, during the notification of the multimedia file sharing and downloading automatically by the client device, without a user manual operation, thus enabling quick and easy file sharing.

虽然通过实施例描绘了本发明,本领域普通技术人员知道,本发明有许多变形和变化而不脱离本发明的精神,希望所附的权利要求包括这些变形和变化而不脱离本发明的精神。 Although the present invention is depicted by way of example, those of ordinary skill in the art know that there are many modifications and variations of the present invention without departing from the spirit of the invention, it intended that the appended claims cover such modifications and variations without departing from the spirit of the invention.

Claims (12)

1、一种文件共享方法,其特征在于,包括: 为待共享的多媒体文件创建种子文件,并将所述种子文件上传至服务器; 向共享所述多媒体文件的用户端发送共享消息; 当所述用户端选择下载所述多媒体文件时,通过点对点P2P网络将所述多媒体文件传输至所述用户端。 A file sharing method, comprising: creating a seed file is a multimedia file to be shared, and the seed file is uploaded to the server; shared message sent to the multimedia file sharing client; when the when the UE to select the multimedia file to download, through the P2P network to transmit the multimedia file to the user terminal.
2、 根据权利要求1所述的方法,其特征在于,所述为待共享的多媒体文件创建种子文件之前,还包括:选择所述待共享的多媒体文件和共享所述多媒体文件的用户端。 2. The method according to claim 1, characterized in that, prior to the seed file is created multimedia files to be shared, further comprising: selecting the media files to be shared and sharing the multimedia file to the client.
3、 根据权利要求2所述的方法,其特征在于,所述选择待共享的多媒体文件包括:从插入的USB接口设备中选择所述待共享的多媒体文件;或通过串口或网络复制所述待共享的多媒体文件。 3. The method according to claim 2, wherein said selected multimedia files to be shared comprises: selecting a multimedia file to be shared from the insertion of the USB interface device; or via the serial port or network to be replicated sharing multimedia files.
4、 根据权利要求1所述的方法,其特征在于,所述向共享多媒体文件的用户端发送共享消息包括:当所述共享多媒体文件的用户端接入网络时,向所述用户端直接传输共享消息;当所述共享多媒体文件的用户端未接入网络时,向所述服务器传输共享消 4. The method according to claim 1, wherein said message comprises a shared transmitting multimedia files to a shared client: when the multimedia file sharing client access network, the direct transmission to the UE shared message; when the multimedia file sharing client does not access the network, to eliminate the transmission of the shared server
5、 根据权利要求1所述的方法,其特征在于,所述用户端选择下载多媒体文件包括:用户端接收到所述共享消息后判断是否下载所述多々某体文件; 当下载所述多媒体文件时,从所述服务器上下载所述种子文件; 完成所述种子文件的下载后启动P2P网络。 5. The method of claim 1, wherein said selected end user to download multimedia files comprising: after the UE receives the message determines whether to download the shared plurality 々 a file body; When downloading the multimedia file when, from the server to download the torrent file; completing the seed file to download P2P network after the start.
6、 根据权利l所述的方法,其特征在于,将多媒体文件传输至用户端所采用的网络协议包括:BitTorrent协议、Emule协议、HTTP协议或FTP协议。 6. The method according to claim l, characterized in that the multimedia files transmitted to the network protocol used by the UE comprises: BitTorrent protocol, Emule protocol, HTTP protocol or the FTP protocol.
7、 一种文件共享系统,其特征在于,包括:服务器,以及通过所述服务器接入网络的共享文件发起方和共享文件接收方,所述共享文件发起方,用于为待共享的多媒体文件创建种子文件,并将所述种子文件上传至服务器,向共享所述多媒体文件的共享文件接收方发送共享消息;所述服务器,用于保存所述共享文件发起方上传的种子文件; 所述共享文件接收方,用于选择下载所述多媒体文件时,接收通过P2P 网络传输的所述多媒体文件。 7. A file sharing system comprising: a server, and the server via a network access shared files and share files initiator recipient, said shared file initiator used for the multimedia files to be shared Create a seed file, and the seed file uploaded to the server, the shared files to share multimedia file receiver sends the shared message; the server, the file is saved to the seed initiator shared file uploaded; the shared file receiver, for selecting download the multimedia file, receiving the multimedia file transmitted through the P2P network.
8、 根据权利要求7所述的系统,其特征在于,所述共享文件发起方进一步用于,选择所述待共享的多媒体文件和共享所述多媒体文件的共享文件接收方。 8. The system of claim 7, wherein said initiator is further configured to share files, selecting the multimedia file to be shared and the file sharing multimedia file sharing recipient.
9、 一种文件共享设备,其特征在于,包括: 创建单元,用于为待共享的多媒体文件创建种子文件; 上传单元,用于将所述种子文件上传至服务器;发送单元,用于向共享所述多^?某体文件的用户端发送共享消息;传输单元,用于当所述用户端选择下载所述多々某体文件时,通过P2P网络将所述多々某体文件传输至所述用户端。 9. A file sharing device, characterized by comprising: creating means for creating a seed file to be shared multimedia file; upload unit for uploading the seed file to the server; transmitting unit configured to share the multi-^ UE transmits a shared file message body;? transmitting unit, when said user terminal to download the selected files plurality 々 a body, the P2P network by a plurality 々 file transfer thereof to the user end.
10、 根据权利要求9所述的设备,其特征在于,还包括:选择单元,用于选择所述待共享的多媒体文件和共享所述多媒体文件的用户端。 10. The apparatus of claim 9, characterized in that, further comprising: selecting means for selecting the multimedia files to be shared and the file sharing client to the multimedia.
11、 一种文件共享设备,其特征在于,包括:第一接收单元,用于接收提供多媒体文件的用户端发送的共享消息;选择单元,用于选择下载所述多媒体文件;第二接收单元,用于接收通过P2P网络传输的所述多媒体文件。 11. A file sharing device, characterized by comprising: a first receiving means for receiving a multimedia file sharing message sent by a user; selecting means for selecting the multimedia file downloading; a second receiving unit, It means for receiving the multimedia file through P2P network transmission.
12、 根据权利要求11所述的设备,其特征在于,所述选择单元包括:判断单元,用于用户端接收到所述共享消息后判断是否下载所述多媒体文件;下载单元,用于当下载所述多媒体文件时,从所述服务器上下载所述种子文件;启动单元,用于完成所述种子文件的下载后启动P2P网络。 12. The apparatus of claim 11, wherein said selecting means comprises: determining means for sharing the user receives the message after determining whether to download the multimedia file; downloading unit for downloading when the multimedia file from the server to download the seed file; start means for starting the P2P network after the completion of downloading the seed file.
CN 200810112180 2008-05-21 2008-05-21 Method, system and equipment for sharing files CN101588353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810112180 CN101588353B (en) 2008-05-21 2008-05-21 Method, system and equipment for sharing files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810112180 CN101588353B (en) 2008-05-21 2008-05-21 Method, system and equipment for sharing files

Publications (2)

Publication Number Publication Date
CN101588353A true true CN101588353A (en) 2009-11-25
CN101588353B CN101588353B (en) 2012-09-19

Family

ID=41372416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810112180 CN101588353B (en) 2008-05-21 2008-05-21 Method, system and equipment for sharing files

Country Status (1)

Country Link
CN (1) CN101588353B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103098022A (en) * 2010-07-27 2013-05-08 Abb 技术有限公司 System and method for distributing and exchanging elements for planning and/or for operating automation operating equipment
CN103701893A (en) * 2013-12-23 2014-04-02 华为技术有限公司 Information access method and information access system between personnel terminal equipment and personnel terminal equipment
CN104079982A (en) * 2013-03-29 2014-10-01 深圳市快播科技有限公司 Seed file processing method and device for video
CN104602109A (en) * 2014-12-26 2015-05-06 北京奇艺世纪科技有限公司 Video synchronizing method, device and system
CN104823189A (en) * 2012-10-12 2015-08-05 思杰系统有限公司 Orchestration framework for connected devices
US9858428B2 (en) 2012-10-16 2018-01-02 Citrix Systems, Inc. Controlling mobile device access to secure data
US9948657B2 (en) 2013-03-29 2018-04-17 Citrix Systems, Inc. Providing an enterprise application store
US9971585B2 (en) 2012-10-16 2018-05-15 Citrix Systems, Inc. Wrapping unmanaged applications on a mobile device
US9973489B2 (en) 2012-10-15 2018-05-15 Citrix Systems, Inc. Providing virtualized private network tunnels
US9985850B2 (en) 2013-03-29 2018-05-29 Citrix Systems, Inc. Providing mobile device management functionalities
US10044757B2 (en) 2011-10-11 2018-08-07 Citrix Systems, Inc. Secure execution of enterprise applications on mobile devices
US10097584B2 (en) 2013-03-29 2018-10-09 Citrix Systems, Inc. Providing a managed browser

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848168A (en) 2006-03-27 2006-10-18 杨智晟 Internet sort advertisement electronic commercial system according to advertising fee to decide target receptor masses number
CN101098272A (en) 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN101150465B (en) 2006-09-22 2010-09-15 腾讯科技(深圳)有限公司 A method for obtaining seed information and supernode and common nodes in P2P network

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103098022A (en) * 2010-07-27 2013-05-08 Abb 技术有限公司 System and method for distributing and exchanging elements for planning and/or for operating automation operating equipment
CN103098022B (en) * 2010-07-27 2016-05-25 Abb 技术有限公司 System and method for distributing and exchanging resource for operating the automation unit
US10044757B2 (en) 2011-10-11 2018-08-07 Citrix Systems, Inc. Secure execution of enterprise applications on mobile devices
US10063595B1 (en) 2011-10-11 2018-08-28 Citrix Systems, Inc. Secure execution of enterprise applications on mobile devices
US9774658B2 (en) 2012-10-12 2017-09-26 Citrix Systems, Inc. Orchestration framework for connected devices
CN104823189A (en) * 2012-10-12 2015-08-05 思杰系统有限公司 Orchestration framework for connected devices
CN104823189B (en) * 2012-10-12 2018-07-31 思杰系统有限公司 A device connected to the frame Allocation
US9973489B2 (en) 2012-10-15 2018-05-15 Citrix Systems, Inc. Providing virtualized private network tunnels
US9971585B2 (en) 2012-10-16 2018-05-15 Citrix Systems, Inc. Wrapping unmanaged applications on a mobile device
US9858428B2 (en) 2012-10-16 2018-01-02 Citrix Systems, Inc. Controlling mobile device access to secure data
US9948657B2 (en) 2013-03-29 2018-04-17 Citrix Systems, Inc. Providing an enterprise application store
CN104079982A (en) * 2013-03-29 2014-10-01 深圳市快播科技有限公司 Seed file processing method and device for video
US9985850B2 (en) 2013-03-29 2018-05-29 Citrix Systems, Inc. Providing mobile device management functionalities
US10097584B2 (en) 2013-03-29 2018-10-09 Citrix Systems, Inc. Providing a managed browser
CN103701893B (en) * 2013-12-23 2017-11-17 华为技术有限公司 Information access between the personal terminal equipment, personal systems and terminal equipment
CN103701893A (en) * 2013-12-23 2014-04-02 华为技术有限公司 Information access method and information access system between personnel terminal equipment and personnel terminal equipment
CN104602109A (en) * 2014-12-26 2015-05-06 北京奇艺世纪科技有限公司 Video synchronizing method, device and system
CN104602109B (en) * 2014-12-26 2018-11-02 北京奇艺世纪科技有限公司 A video synchronization method, apparatus and system for

Also Published As

Publication number Publication date Type
CN101588353B (en) 2012-09-19 grant

Similar Documents

Publication Publication Date Title
US20070016680A1 (en) Method and system for proxy-based file sharing
US20120151006A1 (en) Content sharing between a universal plug and play device and a wide area network device
US20070078948A1 (en) Media delivery system and method for transporting media to desired target devices
US20060242304A1 (en) Communication apparatus and its control method
US20070124406A1 (en) Using a mobile phone to remotely control a computer via an overlay network
US8478893B2 (en) Data transmission to offline recipient nodes in a distributed network
CN102377823A (en) Method and system for realizing interactive sharing among multiple screens and multiple users by sliding screens
US20120096121A1 (en) Home network video peer-to-peer for mobile devices
CN101625701A (en) Video sharing method and video sharing system
CN101795260A (en) Method for displaying head portrait of contact person and corresponding service system, server and terminals
CN101394503A (en) Network television capable of on-line chat through network
US20130114597A1 (en) Proxy server, relay method, communication system, relay control program, and recording medium
CN102695081A (en) Video resource scheduling method based on Internet television and television terminal
US20080183839A1 (en) System For Computer To Mobile Device Place Shifting
JP2008078878A (en) Session control system, session proxy device, communication method, and program
US20060236386A1 (en) Method and apparatus for cooperative file distribution in the presence of firewalls
CN102325182A (en) Audio-video sharing method and system
CN1622553A (en) Internet standard file transmission protocol based file breakpoint upload method
CN101123568A (en) An instant communication system and transmission method of self-defined information
US20110088068A1 (en) Live media stream selection on a mobile device
US20120246226A1 (en) System and method for sharing data from a local network to a remote device
CN101483604A (en) Method, apparatus and system for resource list sending
US20080184123A1 (en) System And Method For Providing A Secure Connection Between A Computer And A Mobile Device
CN101309233A (en) Method realizing TCP connection reusing in instant communication
CN103179156A (en) Method, system and device for sharing pictures

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
COR Bibliographic change or correction in the description

Free format text: CORRECT: ADDRESS; FROM: 100098 HAIDIAN, BEIJING TO: 100080 HAIDIAN, BEIJING

C41 Transfer of the right of patent application or the patent right
ASS Succession or assignment of patent right

Owner name: NEW UNION (BEIJING) TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: IGRS INFORMATION TECHNOLOGY ENGINEER CENTER CO., LTD.

Effective date: 20130216

ASS Succession or assignment of patent right

Owner name: NANJING XINLIAN HUIZHI INFORMATION TECHNOLOGY CO.,

Free format text: FORMER OWNER: NEW UNION (BEIJING) TECHNOLOGY CO., LTD.

Effective date: 20140918

C41 Transfer of the right of patent application or the patent right
COR Bibliographic change or correction in the description

Free format text: CORRECT: ADDRESS; FROM: 100080 HAIDIAN, BEIJING TO: 210046 NANJING, JIANGSU PROVINCE