CN100463403C - Point-to-point technique based picture sharing system and method - Google Patents

Point-to-point technique based picture sharing system and method Download PDF

Info

Publication number
CN100463403C
CN100463403C CNB2006100655032A CN200610065503A CN100463403C CN 100463403 C CN100463403 C CN 100463403C CN B2006100655032 A CNB2006100655032 A CN B2006100655032A CN 200610065503 A CN200610065503 A CN 200610065503A CN 100463403 C CN100463403 C CN 100463403C
Authority
CN
China
Prior art keywords
picture
client
shared
resource
message
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
Application number
CNB2006100655032A
Other languages
Chinese (zh)
Other versions
CN101043345A (en
Inventor
梁柱
王麒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2006100655032A priority Critical patent/CN100463403C/en
Publication of CN101043345A publication Critical patent/CN101043345A/en
Application granted granted Critical
Publication of CN100463403C publication Critical patent/CN100463403C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosed picture share system based on P2P technology comprises: a P2P server connected with client to record all registered client information and build direct channel log-on for clients, and a share server to assign an only resource ID for the shared picture. Besides, the share method comprises: the initiated client acquires the picture ID and sends share notice message, the client received share message sends picture share message and transmits picture. This invention reduces cost, and realizes picture transmission among multiple users fast.

Description

A kind of image sharing system and method based on P-2-P technology
Technical field
The present invention relates to point-to-point (P2P, Peer to Peer) technology, relate in particular to a kind of image sharing system and method based on P-2-P technology.
Background technology
Along with the universal and development of internet technology of digital camera in life, increasing people begins to consider that electronic photo and the picture that will oneself collect are shared to online friend's appreciation.
The method that traditional picture share to adopt is: the picture sharing of common server that or some are set, under such platform, the people of issue picture sends to picture on the picture sharing of common server, and the user who needs browsing pictures download pictures from the picture sharing of common server is browsed and watched.
There is certain defective in the method that this picture is shared, at first, one or some picture sharing of common servers need be set, and every sharing of common server all needs to dispose the memory device with enough storage capacities, to store a large amount of pictures, so configuration, these picture sharing of common servers of operation and maintenance just need certain cost; In addition, when a large number of users was uploaded with download pictures simultaneously, the bandwidth of leading to picture sharing of common server often became the bottleneck of picture transmission, make upload with the speed of download pictures slack-off.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of image sharing system based on P-2-P technology, adopts system provided by the invention can realize sharing and transmission of picture low-cost, apace.
Another object of the present invention is to provide a kind of image sharing method based on P-2-P technology, utilize method provided by the present invention can be low-cost, realize that a plurality of users send and receive picture simultaneously apace.
In order to realize goal of the invention, the invention provides a kind of image sharing system based on P-2-P technology, comprising: have the client of unique ID more than one, this system also comprises:
Point-to-point P2P server links to each other with client, is used to write down the essential information of the client of all registrations, for direct channel is built in communication between the client of login;
The share service device links to each other with client, and the picture that is used to client to share is distributed in the unique resource ID of client terminal local;
Described client comprises: initiate the client that shared client of picture and image sharing will send to, wherein, the client that the client that described initiation picture is shared is used for will sending to described image sharing sends the shared notification message that comprises resource ID and self ID, and transmits picture according to the request of the client that will send to from described image sharing.
Described share service device is for further having the server of the reception resource information function of storing shared resource information and each client.
The present invention also provides a kind of image sharing method based on P-2-P technology, comprising:
The client that A, initiation picture are shared is obtained the picture resource ID unique in this locality that will share;
The client that B, initiation picture are shared sends the shared notification message that comprises resource ID and self ID to the client of appointment;
C, receive that the client of sharing notification message sends the picture request message that comprises self ID and resource ID to initiating the client that picture shares;
The client that D, initiation picture are shared is to the client transmissions picture that sends the picture request message.
Before described steps A, this method further comprises: initiating the shared client of picture is that the picture that will share is set up catalogue.
Be retrieved as described in the steps A:
The client that A1, initiation picture are shared sends to the share service device and comprises that the shared of client side list that client id and image sharing will be issued gives out information;
A2, share service device are distributed in the unique resource ID of client terminal local according to the ID that initiates the shared client of picture for the picture that will share, and the resource ID that is distributed is carried in shared the giving out information, and send to and initiate the client that picture is shared.
Described shared giving out information further comprises: the number and the issuing time of the client that picture is described, image sharing will be issued.
Described shared notification message further comprises: the number of the client side list of appointment, picture description, picture file and the time that notification message is shared in issue.
Described picture request message further comprises: the number of demand file.
Described step D comprises: initiate the shared client of picture and transmit an above picture simultaneously to the client that sends the picture request message, wherein, the number of picture is the number of demand file.
Between described step C and step D, this method further comprises:
After the client that the initiation picture is shared is received the picture request message, reply listed files message, comprise the number of resource ID, picture file and the filename of all pictures in the listed files message to the client that sends the picture request message;
After the client of transmission picture request message is received the listed files message of initiating the shared client of picture, set up file download progress table in this locality according to listed files message, then, send request file in download message according to file download progress table to the client of initiation image sharing, comprise the picture file name of the resource ID and the download of asking in the request file in download message.
Can see that from above technical scheme image sharing system and the method based on P-2-P technology provided by the present invention has following beneficial effect:
1, the present invention does not need to be provided with picture sharing of common server and comes picture owing to adopt P-2-P technology, and picture resource only need be kept at this locality, therefore, can save the cost of configuration, operation and maintenance picture sharing of common server;
2, the present invention does not adopt picture sharing of common server, but by P-2-P technology picture is directly issued designated user, therefore, does not have the not enough situation of bandwidth, can realize that a plurality of users send and receive simultaneously picture resource apace.
Description of drawings
Fig. 1 is the block diagram based on the image sharing system of P-2-P technology according to the embodiment of the invention;
Fig. 2 is the flow chart based on the image sharing method of P-2-P technology according to the embodiment of the invention.
Embodiment
In order to make the features and advantages of the present invention clearer, in conjunction with specific embodiments the present invention is done further detailed description with reference to the accompanying drawings.
Main thought of the present invention is: picture sharing of common server is not set, sets up direct channel and be based on point-to-point technology between user node, directly transmit data, the transmission of realization picture and shared.
P-2-P technology is exactly to make in the network communication between any two user nodes not carry out transfer by traditional server, but sets up direct channel between two user nodes, directly transmits data.
Particularly, referring to Fig. 1, Fig. 1 is the block diagram based on the image sharing system of P-2-P technology according to the embodiment of the invention.Image sharing system shown in Figure 1 comprises: share service device, P2P server and client side A, B, C.
Customer end A, B, C are the users of image sharing system.In image sharing system, be not limited to three clients, each client all have unique sign (ID, Identifier).The sign of each client all is kept in P2P server and the share service device, and client is all observed common P2P agreement, by the communication between the P2P server support client.
In addition, client can also be used to preserve shares tabulation, for example initiates client id that client id, resource ID, image sharing that picture shares will send to etc.
The P2P server is used to write down the essential information of the client of all registrations, builds direct channel for the communication between the client of login image sharing system, makes between client the transmission data no longer carry out transfer by server.
The share service device is different from the picture sharing of common server that image sharing is stored in traditional being used to, and the picture that the share service device of present embodiment is used to client to share is distributed in the unique resource ID of client terminal local.
In client, can at first set up the local file catalogue for all pictures that will share, the local file catalogue can be a file, is used to store the picture that needs are shared.The corresponding resource of catalogue, it can be 4 bytes that unique resource ID, resource ID are arranged in this locality, for example is 1001; Certainly, also can directly all pictures that will share be done as a wholely, corresponding resource is distributed unique resource ID.When client is initiated to share, at first obtain a resource ID for the local file catalogue from the share service device, owing to be that the share service device is client Resources allocation ID, be unique in this locality so can guarantee resource ID.Because resource ID is unique at client terminal local, and client also has unique ID in whole picture shared network, so resource ID adds that client id just can uniquely navigate to the picture that will share.
In addition, the share service device also can be used to store the reception resource information of shared resource information and each client, and shared resource information can comprise the number of client id, resource description and picture file that shared client id, resource ID, the image sharing of initiation picture will send to etc.; The reception resource of each client can comprise the client id that shared client id, resource ID, the image sharing of initiation picture will send to etc.
Below, be example with customer end A to customer end B and client C transmission image sharing, describe picture shared procedure in detail based on system shown in Figure 1.
Referring to Fig. 2, Fig. 2 is the flow chart based on the image sharing method of P-2-P technology according to the embodiment of the invention.Particularly, customer end A is set up the local file catalogue in this locality for all pictures that will share, shares to customer end B and client C initiation picture, and promptly customer end A is as follows to the flow process and the step of customer end B and client C transmission picture:
The client that step 201, initiation picture are shared is obtained for the picture that will the share resource ID unique in this locality from the share service device;
Here, initiating the shared client of picture is customer end A, customer end A will be initiated picture and share, at first set up catalogue for the picture file that will share, specify this catalogue, send to share giving out information then to the share service device, share the ID tabulation of the ID that comprises customer end A in giving out information, client that image sharing will be issued, can also comprise the picture description further.After the share service device receives shared the giving out information of customer end A transmission, ID according to customer end A, the current Resources allocation ID that shares for customer end A, for example, ID according to customer end A searches the resource ID that has distributed for customer end A, according to certain rule, for example add 1 rule, be customer end A designated directory Resources allocation ID, for example, it is 1000 that the share service device finds the resource ID that has distributed for customer end A according to the ID of customer end A, so the resource ID of distributing for the customer end A designated directory is 1001 specifically, thereby can guarantee that the resource ID that is distributed is unique in customer end A this locality, the share service device will add resource ID in will sharing and giving out information then, send to customer end A, so customer end A has just been obtained the catalogue resource ID unique in this locality from the share service device.
The client transmission that the client that step 202, initiation picture are shared will be issued to image sharing comprises initiates the shared client id of picture and the shared notification message of resource ID;
Here, the client that image sharing will be issued is customer end B and client C, because resource ID is unique in this locality of customer end A, so in whole image sharing system, the ID of customer end A adds that resource ID just can the unique definite picture resource that will share.
Customer end A sends shared notification message to customer end B and client C, the P2P server is according to the login situation of customer end A, B, C, for customer end A and customer end B and customer end A and client C build direct channel, thereby make that sharing notification message can directly send to customer end B and client C from customer end A.
In addition, share to can further include in the notification message and be used for resource description that the picture that will share is simply introduced, for example " Tibet picture ", the picture number that share, for example 100, and issuing time etc.
The client that step 203, image sharing will be issued sends and comprises the client id of asking picture and the picture request message of resource ID to initiating client that picture shares;
After customer end B and client C receive the shared notification message of the ID that comprises customer end A and resource ID, can send the picture request message to customer end A, is example with customer end B to the customer end A request, comprises the ID and the resource ID of customer end B in the picture request message that customer end B sends at least.
In addition, can also comprise the number of demand file in the picture request message, the number of demand file is meant the file number of request simultaneously, promptly initiates the file number that the shared client of picture sends simultaneously, can be 1 under the default situation.Client one side that will issue in image sharing is provided with this variable, can trigger the shared client of initiation picture and start one simultaneously with last thread, the number of threads that is started is the number of demand file, makes originating end and receiving terminal can carry out the transmission of a plurality of files simultaneously.For example, the number that demand file is set is 5, be that customer end B is asked 5 picture files simultaneously to customer end A, so, customer end A is answered the request of customer end B, sends 5 pictures simultaneously to customer end B, after customer end B all receives 5 picture files, trigger the request of initiating following 5 files again, customer end A and customer end B can be carried out the transmission of 5 picture file datas simultaneously like this.
The client that step 204, initiation picture are shared is to the client transmissions picture file of request.
The picture request message of customer end B will trigger customer end A and send picture file to it, so customer end A is received the picture request message of customer end B, and the number that does not comprise demand file in the picture request message, when being default, customer end A is answered the request of customer end B, triggering is transmitted picture file with the granularity of a file to customer end B, and the intact picture file of every transmission just triggers the transmission of next picture file automatically, and all picture files under catalogue are end of transmission all.
When comprising the number of demand file in the picture request message, customer end A is then transmitted picture file with the granularity of the number of demand file to customer end B.
In addition, between step 203 and step 204, after initiating picture request message that client that client that picture shares receives that image sharing will be issued sends, can at first reply listed files message, comprise the number of resource ID, picture file and the filename of all pictures in the listed files message to the client that sends the picture request message.After the client of transmission picture request message is received the answer message of initiating the shared client of picture, the download progress of creating a file in this locality table, the order of file is consistent with the document order in the listed files message in the table, and this order also can be used as the downloading order of file.The client that sends the picture request message sends request file in download message according to file download progress table to the client of initiating image sharing, comprises resource ID and filename in this message; Next, after initiating client that picture shares and receiving request file in download message, according to the requested resource ID of institute and filename to the client transmissions picture file that sends a request message.Here, can comprise a plurality of filenames simultaneously in the request file in download message, at this moment will trigger the shared client of initiation picture and start a plurality of threads simultaneously, simultaneously to a plurality of picture files of client transmissions that send the picture request message.
Abovely describe image sharing method in detail based on P-2-P technology according to the embodiment of the invention with reference to Fig. 2, can see from the description of above system and method, the present invention does not use picture share service device, only between user node, set up direct channel, directly carry out the transmission of picture, therefore, can save the cost of configuration, operation and maintenance picture share service device, can also realize carrying out simultaneously between a plurality of users picture and share.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (10)

1. the image sharing system based on P-2-P technology comprises the client that has unique ID more than, it is characterized in that, this system also comprises:
Point-to-point P2P server links to each other with client, is used to write down the essential information of the client of all registrations, for direct channel is built in communication between the client of login;
The share service device links to each other with client, and the picture that is used to client to share is distributed in the unique resource ID of client terminal local;
Described client comprises: initiate the client that shared client of picture and image sharing will send to, wherein, the client that the client that described initiation picture is shared is used for will sending to described image sharing sends the shared notification message that comprises resource ID and self ID, and transmits picture according to the request of the client that will send to from described image sharing.
2. system according to claim 1 is characterized in that, described share service device is for further having the server of the reception resource information function of storing shared resource information and each client.
3. the image sharing method based on P-2-P technology is characterized in that, this method comprises:
The client that A, initiation picture are shared is obtained the picture resource ID unique in this locality that will share;
The client that B, initiation picture are shared sends the shared notification message that comprises resource ID and self ID to the client of appointment;
C, receive that the client of sharing notification message sends the picture request message that comprises self ID and resource ID to initiating the client that picture shares;
The client that D, initiation picture are shared is to the client transmissions picture that sends the picture request message.
4. method according to claim 3 is characterized in that, before described steps A, this method further comprises:
Initiating the shared client of picture is that the picture that will share is set up catalogue.
5. according to claim 3 or 4 described methods, it is characterized in that, be retrieved as described in the steps A:
The client that A1, initiation picture are shared sends to the share service device and comprises that the shared of client side list that client id and image sharing will be issued gives out information;
A2, share service device are distributed in the unique resource ID of client terminal local according to the ID that initiates the shared client of picture for the picture that will share, and the resource ID that is distributed is carried in shared the giving out information, and send to and initiate the client that picture is shared.
6. method according to claim 5 is characterized in that, described shared giving out information further comprises: the number and the issuing time of the client that picture is described, image sharing will be issued.
7. according to claim 3 or 4 described methods, it is characterized in that described shared notification message further comprises: the number of the client side list of appointment, picture description, picture file and the time that notification message is shared in issue.
8. according to claim 3 or 4 described methods, it is characterized in that described picture request message further comprises: the number of demand file.
9. method according to claim 8 is characterized in that, described step D comprises:
Initiate the shared client of picture and transmit an above picture simultaneously to the client that sends the picture request message, wherein, the number of picture is the number of demand file.
10. according to claim 3 or 4 described methods, it is characterized in that between described step C and step D, this method further comprises:
After the client that the initiation picture is shared is received the picture request message, reply listed files message, comprise the number of resource ID, picture file and the filename of all pictures in the listed files message to the client that sends the picture request message;
After the client of transmission picture request message is received the listed files message of initiating the shared client of picture, set up file download progress table in this locality according to listed files message, then, send request file in download message according to file download progress table to the client of initiation image sharing, comprise the picture file name of the resource ID and the download of asking in the request file in download message.
CNB2006100655032A 2006-03-20 2006-03-20 Point-to-point technique based picture sharing system and method Active CN100463403C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100655032A CN100463403C (en) 2006-03-20 2006-03-20 Point-to-point technique based picture sharing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100655032A CN100463403C (en) 2006-03-20 2006-03-20 Point-to-point technique based picture sharing system and method

Publications (2)

Publication Number Publication Date
CN101043345A CN101043345A (en) 2007-09-26
CN100463403C true CN100463403C (en) 2009-02-18

Family

ID=38808578

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100655032A Active CN100463403C (en) 2006-03-20 2006-03-20 Point-to-point technique based picture sharing system and method

Country Status (1)

Country Link
CN (1) CN100463403C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291300B (en) * 2008-06-12 2011-04-20 华为技术有限公司 Implementing method, apparatus and user equipment for document transmission in message service
CN102377797B (en) * 2010-08-13 2015-02-11 Tcl集团股份有限公司 Downloading method, devices and system
CN103856387B (en) * 2012-11-29 2017-07-18 中国电信股份有限公司 File retransmission method and system based on instant message client
CN103297522A (en) * 2013-05-31 2013-09-11 东蓝数码股份有限公司 Method for resource sharing by peer-to-peer technology based on wireless local area network
CN103491153A (en) * 2013-09-17 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, equipment and peer-to-peer network system for data sharing
CN107707636B (en) * 2014-12-23 2019-10-25 Oppo广东移动通信有限公司 A kind of picture storage method and terminal and computer readable storage medium
CN105812452A (en) * 2016-03-01 2016-07-27 深圳前海勇艺达机器人有限公司 Household local area network resource sharing system solution scheme based on intelligent robot platform
CN105933384B (en) * 2016-04-06 2021-05-25 腾讯科技(深圳)有限公司 File sharing method, terminal and file sharing system
CN107404512B (en) 2016-05-19 2021-03-05 华为技术有限公司 Resource subscription method, resource subscription device and resource subscription system
JP6929881B2 (en) * 2016-06-03 2021-09-01 チールー ファーマシューティカル カンパニー、リミテッド New β-lactamase inhibitor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205168A1 (en) * 2003-02-10 2004-10-14 Oren Asher Peer-to-peer service designer
US20050052685A1 (en) * 2003-05-16 2005-03-10 Michael Herf Methods and systems for image sharing over a network
WO2005116817A2 (en) * 2004-05-24 2005-12-08 Qurio Holdings, Inc. Method and system for distributing affiliate images in a peer-to-peer (p2p) photosharing network through affiliate branding
CN1713177A (en) * 2004-06-24 2005-12-28 株式会社日立制作所 File sharing system and client apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205168A1 (en) * 2003-02-10 2004-10-14 Oren Asher Peer-to-peer service designer
US20050052685A1 (en) * 2003-05-16 2005-03-10 Michael Herf Methods and systems for image sharing over a network
WO2005116817A2 (en) * 2004-05-24 2005-12-08 Qurio Holdings, Inc. Method and system for distributing affiliate images in a peer-to-peer (p2p) photosharing network through affiliate branding
CN1713177A (en) * 2004-06-24 2005-12-28 株式会社日立制作所 File sharing system and client apparatus

Also Published As

Publication number Publication date
CN101043345A (en) 2007-09-26

Similar Documents

Publication Publication Date Title
CN100463403C (en) Point-to-point technique based picture sharing system and method
CN102137163B (en) A kind of method of multimedia file shared system and shared multimedia file thereof
US20140165119A1 (en) Offline download method, multimedia file download method and system thereof
CN100563197C (en) A kind of image sharing system and method
CN101156407B (en) Method for supplying content through communication network
WO2015165395A1 (en) Video playback method and apparatus
US20110258322A1 (en) Adaptive data rate streaming in a peer-to-peer network delivering video content
CN111327622B (en) Resource scheduling method and system
CN101635737A (en) Downloading method, system, P2P server and client
CN102111426A (en) Method, system and device for implementing point-to-point technology
CN103297447B (en) A kind of resource share method and its equipment
CN108494826A (en) A kind of distribution cloud storage method and system
CN101163230A (en) Method of performing on-site living broadcast and client terminal node preparation through network camera
CN102957972B (en) Video on demand method and system thereof
CN109194993B (en) Media file distribution method and file distribution platform
EP2634998A1 (en) Method and system for downloading real-time streaming media in peer-to-peer network
CN110035132B (en) Data synchronization method, computer device and storage medium
KR20090006504A (en) Apparatus and method for providing p2p service in ip multimedia subsystem
CN101873248A (en) Transmission method and device of P2P (peer to peer) stream media
WO2011160549A1 (en) Electronic program guide system and file downloading method
JP2012108909A (en) File transmission management system and file transmission controlling method for supporting file transmission on mobile messaging service
CN113746884B (en) Multimedia resource transmission method, device and system
CN110417902B (en) Streaming network service load method, related device and readable storage medium
CN101471838A (en) Method, system and equipment for switching source
CN112738256A (en) DCP file transmission method, server and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant