CN105357238B - A kind of method and device of Point-to-Point Data Transmission - Google Patents

A kind of method and device of Point-to-Point Data Transmission Download PDF

Info

Publication number
CN105357238B
CN105357238B CN201410410289.4A CN201410410289A CN105357238B CN 105357238 B CN105357238 B CN 105357238B CN 201410410289 A CN201410410289 A CN 201410410289A CN 105357238 B CN105357238 B CN 105357238B
Authority
CN
China
Prior art keywords
user terminal
connection
webpage
local
browser
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
CN201410410289.4A
Other languages
Chinese (zh)
Other versions
CN105357238A (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.)
Alibaba China Network Technology Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410410289.4A priority Critical patent/CN105357238B/en
Publication of CN105357238A publication Critical patent/CN105357238A/en
Application granted granted Critical
Publication of CN105357238B publication Critical patent/CN105357238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to computer system, in particular to the method and device of Point-to-Point Data Transmission in a kind of computer system, to reduce the operation complexity of Point-to-Point Data Transmission.This method are as follows: the first user terminal is after specified server acquisition Webpage, local connection association letter is issued to second user terminal based on the Webpage, first user terminal can establish P2P using ground browser by two places with second user terminal and connect, to complete the Point-to-Point Data Transmission between the first user terminal and second user terminal.In this way, the point-to-point transmission between user terminal can be enabled to be no longer limited by application scenarios, it is suitable for various situations, so that operation complexity is reduced, it is also more convenient and efficient;Meanwhile in transmission process, the data of terminal side need not be uploaded to central server, more thoroughly realize decentralization, to effectively reduce the risk that data leaks, improve Information Security.

Description

A kind of method and device of Point-to-Point Data Transmission
Technical field
The present invention relates to computer system, in particular to the method and dress of Point-to-Point Data Transmission in a kind of computer system It sets.
Background technique
With the development of science and technology, people at work or life in, phase higher and higher for the demand of real-time data transmission The solution of pass also emerges in multitude therewith.For example, the Point-to-Point Data Transmission between mobile terminal and computer, mobile terminal with Point-to-Point Data Transmission between mobile terminal etc..
However, all kinds of solutions under the prior art but suffer from shortcoming.
For example, first kind solution are as follows: use cloud disk for user storage data so that user downloads in real time.
Great mass of data can be stored using first kind solution beyond the clouds, user is facilitated to download at any time;But it needs to use Cloud disk account is registered at family, and after logon account, user could pass through data needed for link is downloaded.Obviously, which increase data downloads Complexity, many users are not intended to register new account because of disposable data download demand, and in data It reaches cloud and also increases the risk that data leaks.
In another example second group of solutions are as follows: by software tool be user's real-time Transmission data.It is solved using the second class The scheme account new without user's registration, need to only use existing software tool that can obtain required data in real time.But it is passing When defeated data, user, could real-time files transmission there is still a need for same type of software is used on different user terminals.Such as, Two users log in same type of instant communication software on respective mobile phone respectively, and mutual Account History is other side's In address list, then, after login, the two users could transmit data between each other.
It can be seen that the application scenarios of existing solution are limited and complex steps, need using specific account or Specific software is just able to achieve data transmission, and operation complexity is high, and it is impossible to meet the demands of most users.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of Point-to-Point Data Transmission in computer system, to reduce a little To the operation complexity of point data transmission.
Specific technical solution provided in an embodiment of the present invention is as follows:
A kind of method of Point-to-Point Data Transmission, comprising:
First user terminal passes through the first browser according to user instructions and is connected to specified central server;
First user terminal receives the Webpage that central server returns, and based on the Webpage by local company Related information is connect to be issued;
First user terminal receives the connection that second user terminal is sent based on the connection related information and establishes request When, connection is established between the second browser that the first browser locally used and second user terminal use, and be based on institute It states to be connected between local and second user terminal and carry out data transmission.
First user terminal is issued local connection related information based on the Webpage, comprising:
First user terminal obtains local location information, generates corresponding identification information, Yi Jiji for this connection In local location information and the identification information generated for this connection, the Webpage is called to generate corresponding two dimension Code, and issued the two dimensional code by the Webpage;
Alternatively,
First user terminal obtains local location information, generates corresponding identification information for this connection, and adjust A random number is generated with the Webpage, and is issued the random number by the Webpage, and will be local Location information and for this connection generate identification information push to central server, wherein the random number be used for The identification information that central server obtains the location information of the first user terminal and generates for this connection.
First user terminal obtains local location information, comprising:
If the first user terminal and second user terminal, in same local area network, the first user terminal obtains local office Domain net address is as location information;
If the first user terminal and second user terminal, not in same local area network, the first user terminal obtains local Public network address is as location information.
First user terminal is between the second browser that the first browser locally used and second user terminal use Establish connection, comprising:
First user terminal between the second browser that the first browser locally used and second user terminal use, P2P computing P2P connection is established based on Javascript agreement.
A kind of method of Point-to-Point Data Transmission comprising:
Second user terminal receives the connection association for the first user terminal that the first user terminal is issued based on Webpage Information, the Webpage are obtained after the first user terminal is connected to specified central server;
Second user terminal is based on the connection related information to the transmission connection foundation request of the first user terminal, and according to The response of first user terminal is established between the first browser that the second browser locally used and the first family terminal use Connection, and carried out data transmission based on described be connected between local and the first user terminal.
Second user terminal receives the connection association for the first user terminal that the first user terminal is issued based on Webpage Information, comprising:
Second user terminal receives the two dimensional code that the first user terminal is issued based on the Webpage, and the two dimensional code is Location information of first user terminal based on the first user terminal and corresponding identification information is generated for this connection, calls institute State Webpage generation;
Alternatively,
Second user terminal receives random number issue based on the Webpage of the first user terminal, and described in Machine number from the central server obtain the first user terminal uploads the first user terminal location information and for this company The identification information delivered a child.
Second user terminal is built between the first browser that the second browser locally used and the first family terminal use Vertical connection, comprising:
Second user terminal between the second browser that the first browser locally used and second user terminal use, P2P computing P2P connection is established based on Javascript agreement.
A kind of device of Point-to-Point Data Transmission, comprising:
Communication unit, for being connected to specified central server by the first browser according to user instructions;
Release unit, for receiving the Webpage of central server return, and will be local based on the Webpage Connection related information is issued;
Transmission unit, for receive second user terminal based on it is described connection related information send connection foundation ask When asking, connection is established between the second browser that the first browser locally used and second user terminal use, and be based on Described be connected between local and second user terminal carries out data transmission.
When being issued local connection related information based on the Webpage, the release unit is specifically used for:
Local location information is obtained, generates corresponding identification information for this connection, and based on local position Information and the identification information generated for this connection, call the Webpage to generate corresponding two dimensional code, and by described Webpage issues the two dimensional code;
Alternatively,
Local location information is obtained, generates corresponding identification information for this connection, and call the webpage page Face generates a random number, and issues the random number by the Webpage, and by local location information with The identification information generated for this connection pushes to central server, wherein the random number in central server for obtaining The identification information for taking the location information of the first user terminal and being generated for this connection.
When obtaining local location information, the release unit is specifically used for:
If the first user terminal and second user terminal, in same local area network, the first user terminal obtains local office Domain net address is as location information;
If the first user terminal and second user terminal, not in same local area network, the first user terminal obtains local Public network address is as location information.
Connection is established between the second browser that the first browser locally used and second user terminal use, it is described Transmission unit is specifically used for:
Between the second browser that the first browser locally used and second user terminal use, it is based on Javascript agreement establishes P2P computing P2P connection.
A kind of device of Point-to-Point Data Transmission, comprising:
Communication unit, for receiving the connection association for the first user terminal that the first user terminal is issued based on Webpage Information, the Webpage are obtained after the first user terminal is connected to specified central server;
Transmission unit establishes request, and root for sending connection to the first user terminal based on the connection related information It is built between the first browser that the second browser locally used and the first family terminal use according to the response of the first user terminal Vertical connection, and carried out data transmission based on described be connected between local and the first user terminal.
It is described logical in the connection related information for receiving the first user terminal that the first user terminal is issued based on Webpage Letter unit is specifically used for:
The two dimensional code that the first user terminal is issued based on the Webpage is received, the two dimensional code is the first user terminal Location information based on the first user terminal and corresponding identification information is generated for this connection, calls the Webpage raw At;
Alternatively,
Receive the random number that the first user terminal is issued based on the Webpage, and using the random number from described The mark that central server obtains the location information of the first user terminal of the first user terminal uploads and generates for this connection Information.
It is described when establishing connection between the first browser that the second browser locally used and the first family terminal use Transmission unit is specifically used for:
Second user terminal between the second browser that the first browser locally used and second user terminal use, P2P computing P2P connection is established based on Javascript agreement.
In the embodiment of the present invention, the first user terminal is based on the webpage page after specified server acquisition Webpage Face issues local connection related information to second user terminal, and the first user terminal and second user terminal can P2P connection is established using ground browser by two places, to complete the point pair between the first user terminal and second user terminal Point data transmission.In this way, user terminal need not install specific software or the specific account of registration, local browser need to be only used Point-to-point transmission can be realized, and there is no limit to the type of browser, it is clear that this can enable the point pair between user terminal Point transmission is no longer limited by application scenarios, is suitable for various situations, so that operation complexity is reduced, it is also more convenient fast It is prompt;Meanwhile in transmission process, the data of terminal side need not be uploaded to central server, more thoroughly realize decentralization, To effectively reduce the risk that data leaks, Information Security is improved.
Detailed description of the invention
Figure 1A is system architecture schematic diagram in the embodiment of the present invention;
Figure 1B is Point-to-Point Data Transmission first pass figure in the embodiment of the present invention;
Fig. 2 is Point-to-Point Data Transmission second flow chart in the embodiment of the present invention;
Fig. 3 is the first user terminal functional structure chart in the embodiment of the present invention;
Fig. 4 is second user terminal function structure chart in the embodiment of the present invention.
Specific embodiment
In order to reduce the operation complexity of Point-to-Point Data Transmission, in the embodiment of the present invention, pass through the Web on user terminal Browser establishes session connection between two user terminals, thus the Point-to-Point Data Transmission between realizing user terminal.
The preferred embodiment of the present invention is described in detail with reference to the accompanying drawing.
In the embodiment of the present application, the system architecture of the first user terminal, second user terminal and central server such as Figure 1A It is shown, it is based on the system architecture, refering to fig. 1 shown in B, in the embodiment of the present invention, carries out Point-to-Point Data between the ues When transmission, it is as follows that the first user terminal executes process:
Step 100: the first user terminal passes through the first browser according to user instructions and is connected to specified central server.
In the embodiment of the present invention, the first user terminal is received user instructions, and specified center is carried in the user instruction The chained address of server, the first user terminal are based on the chained address, are connected to above-mentioned finger by the first local browser Fixed central server.
Step 110: the first user terminal receives the Webpage that central server returns, and incite somebody to action this based on the Webpage The connection related information on ground is issued.
In the embodiment of the present invention, certain specific function can be set in the Webpage that central server returns and inserted Part, user terminal can be issued local connection related information based on the feature card.
Specifically, can use but be not limited to following two mode:
First way are as follows: the first user terminal obtains local location information, generates corresponding mark for this connection Know information, and based on local location information and the identification information generated for this connection, calls received Webpage Generate corresponding two dimensional code.And the two dimensional code of generation is issued by the Webpage.
The location information of first user terminal can there are many, e.g., if the first user terminal and second user terminal are same (internet e.g., is connected to by same wireless router) in one local area network, then the location information that the first user terminal uses For the lan address of itself;If the first user terminal and second user terminal not in same local area network, (e.g., by GPRS, 3G or 4G are connected to internet), then the location information of the first user terminal is the public network address of itself.
On the other hand, the first user terminal can generate an identification information, the mark after receiving above-mentioned Webpage Information is for this connection of unique identification.
Then, the first user terminal can pass through Webpage (e.g., " generation two dimensional code " printed words in the webpage clicking page Function button), the identification information based on local location information and this connection generates a two dimensional code.
At this point, second user terminal can sweep the two dimensional code issued in the first user terminal screen by camera Retouch, thus obtain the first user terminal location information and this connection identification information, and the location information based on acquisition and Identification information sends connection to the first user terminal and establishes request.
First way is suitble to the user terminal that can be scanned the two-dimensional code.When using first way, terminal side it is any Data are not transferred to network side, and point-to-point transmission can be realized it is only necessary to obtain specific Webpage in user terminal, number Effective guarantee has been obtained according to safety.
The second way are as follows: the first user terminal obtains local location information, generates corresponding mark for this connection Know information, and calls received Webpage to generate a random number, and issue random number by the Webpage, with And local location information and the identification information generated for this connection are pushed into central server, wherein the random number Identification information for obtaining the location information of the first user terminal in central server and being generated for this connection.
Similarly, the location information of the first user terminal can there are many, e.g., if the first user terminal and second user terminal (internet e.g., is connected to by same wireless router) in same local area network, then the position that the first user terminal uses Information is the lan address of itself;If the first user terminal and second user terminal (e.g., pass through not in same local area network GPRS, 3G or 4G are connected to internet), then the location information of the first user terminal is the public network address of itself.
On the other hand, the first user terminal can generate an identification information, the mark after receiving above-mentioned Webpage Information is for this connection of unique identification.
Then, the first user terminal can pass through Webpage and (e.g., " the new connection of foundation " printed words in the webpage clicking page Function button) generate a random number, and the random number is issued by Webpage, and by the location information of local Central server is pushed to the identification information of this connection.
At this point, second user terminal can connect to the central server, inputs the first user terminal and issued by screen Random number, central server will by the location information of the first user terminal and this connection identification information be sent to second User terminal, second user terminal can location information based on acquisition and identification information send and connect to the first user terminal Establish request.
The second way is more suitable the user terminal that can not be scanned the two-dimensional code.Although the first user terminal is by local position Information and the identification information of this connection are sent to central server, but central server is only protected as a pair of of key value Deposit, and after being supplied to second user terminal voluntarily delete or when second user terminal does not obtain in data validity interval It voluntarily deletes, therefore, the leakage of user data will not be caused, safety can also obtain effective guarantee.
Step 120: the first user terminal receives the company that second user terminal is sent based on the connection related information of acquisition Foundation request is connect, establishes connection between the second browser that the first browser locally used and second user terminal use, And it is connected between local and second user terminal and is carried out data transmission using this.
When request is established in the connection that first user terminal receives the transmission of second user terminal, it can be established by the connection Request obtains the connection related information of second user terminal, in this way, can use in the first browser locally used and second Connection is established between the second browser that family terminal uses, to complete Point-to-Point Data Transmission.Specifically, the first user terminal And second user terminal can establish P2P computing between the first browser and the second browser based on Javascript agreement (Peer to Peer, P2P) connection, to complete point-to-point transmission.
Using the above scheme, it when realizing the Point-to-Point Data Transmission between user terminal, avoids material upload to cloud sky Between, to effectively reduce the risk that data leaks, and user without installing specific software, Yi Jiye on the subscriber terminal Without registering particular account, it is only necessary to the point pair between user terminal can be thus achieved using the browser embedded on user terminal Point transmission, this greatly reduces realization and operation complexity, also more convenient and efficient.
After data end of transmission, user's each self closing on the first user terminal and second user terminal locally use One browser and the second browser can both terminate current point-to-point transmission process, without executing operation bidirectional, even if user forgets Note closes browser, and more than after validity period, point-to-point transmission process ends automatically Webpage, if wanting to continue to transmit data, Need to re-establish new connection.
Under the prior art, point-to-point transmission is also may be implemented in Bluetooth technology, but some equipment are defaulted without blue-tooth device, Such as, desktop computer and part laptop, therefore the application range of Bluetooth technology is not as good as technology provided in an embodiment of the present invention. On the other hand, typical bluetooth transmission speed is in 1-3Mb/s, and uses technology provided in an embodiment of the present invention, if two with For family terminal in same local area network, transmission rate can theoretically reach local area network extreme value, can be normally reached 72Mb/s~ 150Mb/s, more than 50 times of bluetooth or more.Also, Bluetooth transmission distance is very short, within 10M, and is mentioned using the embodiment of the present invention The technology of confession, for WLAN, transmission range is equal to the range of signal of wireless network, and a usual router is not fixed To range of signal in the case where antenna in 100M or so.Further, bluetooth does not send outer net request, so can not in time more New bluetooth applications.And technology provided in an embodiment of the present invention is used, the newest webpage page of center server can be used at any time Face, to enable user terminal that newest function can be used.
As shown in fig.2, when carrying out Point-to-Point Data Transmission between the ues, second is used in the embodiment of the present invention It is as follows that family terminal executes process:
Step 200: second user terminal receives the first user terminal that the first user terminal is issued based on Webpage Related information is connected, which obtained after the first user terminal is connected to specified central server.
The specific acquisition modes of Webpage are referring to step 100, and details are not described herein.
When executing step 200, second user terminal can use but be not limited to following two mode:
First way are as follows: second user terminal receives the two dimension that the first user terminal is issued based on above-mentioned Webpage Code, the two dimensional code are location information of first user terminal based on the first user terminal and generate corresponding mark for this connection Know information, above-mentioned Webpage is called to generate;
The second way are as follows: second user terminal the first user terminal of reception is issued random based on above-mentioned Webpage Number, and use the random number from the location information and needle of the first user terminal of central server the first user terminal uploads of acquisition The identification information that this connection is generated.
Step 210: second user terminal sends connection to the first user terminal based on the connection related information of acquisition and establishes Request, and the first browsing used according to the response of the first user terminal in the second browser locally used and the first family terminal Connection is established between device, and is connected between local and the first user terminal and is carried out data transmission based on this.
Specifically, the second browsing that second user terminal is used in the first browser and second user terminal locally used Between device, P2P connection is established based on Javascript agreement.
Based on the above embodiment, as shown in fig.3, in the embodiment of the present invention, the first user terminal include communication unit 30, Release unit 31 and transmission unit 32, wherein
Communication unit 30, for being connected to specified central server by the first browser according to user instructions;
Release unit 31, for receiving the Webpage of central server return, and will be local based on the Webpage Connection related information is issued;
Transmission unit 32, for being established in the connection for receiving second user terminal and being sent based on above-mentioned connection related information When request, connection, and base are established between the second browser that the first browser locally used and second user terminal use It is connected between local and second user terminal and carries out data transmission in this.
Release unit 31 is specifically used for:
Local location information is obtained, generates corresponding identification information for this connection, and based on local position Information and the identification information generated for this connection, call above-mentioned Webpage to generate corresponding two dimensional code, and pass through the net The page page issues two dimensional code;
Alternatively,
Local location information is obtained, generates corresponding identification information for this connection, and call above-mentioned webpage page Face generates a random number, and issues the random number by the Webpage, and by the location information of local and this The identification information that connection generates pushes to central server, wherein the random number is used for the genuinely convinced device in and obtains the first user end The location information at end and the identification information generated for this connection.
Release unit 31 is specifically used for:
If the first user terminal and second user terminal, in same local area network, the first user terminal obtains local office Domain net address is as location information;
If the first user terminal and second user terminal, not in same local area network, the first user terminal obtains local Public network address is as location information.
Transmission unit 32 is specifically used for:
Between the second browser that the first browser locally used and second user terminal use, it is based on Javascript agreement establishes P2P connection.
As shown in fig.4, in the embodiment of the present invention, second user terminal includes communication unit 40 and transmission unit 41, In,
Communication unit 40, for receiving the connection pass for the first user terminal that the first user terminal is issued based on Webpage Join information, which obtained after the first user terminal is connected to specified central server;
Transmission unit 41 sends connection to the first user terminal for the connection related information based on acquisition and establishes request, And the first browser used according to the response of the first user terminal in the second browser locally used and the first family terminal it Between establish connection, and be connected between local and the first user terminal and carried out data transmission based on this.
Communication unit 40 is specifically used for:
The two dimensional code that the first user terminal is issued based on above-mentioned Webpage is received, two dimensional code is that the first user terminal is based on The location information of first user terminal and corresponding identification information is generated for this connection, the Webpage is called to generate;
Alternatively,
The random number that the first user terminal is issued based on above-mentioned Webpage is received, and uses random number from central server The identification information for obtaining the location information of the first user terminal of the first user terminal uploads and being generated for this connection.
Transmission unit 41 is specifically used for:
Second user terminal between the second browser that the first browser locally used and second user terminal use, P2P computing P2P connection is established based on Javascript agreement.
In conclusion the first user terminal is based on after specified server acquisition Webpage in the embodiment of the present invention The Webpage issues local connection related information to second user terminal, and the first user terminal and second user terminal are just P2P connection can be established using ground browser by two places, to complete between the first user terminal and second user terminal Point-to-Point Data Transmission.In this way, user terminal need not install specific software or the specific account of registration, need to only use local clear Point-to-point transmission can be realized in device of looking at, and there is no limit to the type of browser, it is clear that this can be enabled between user terminal Point-to-point transmission is no longer limited by application scenarios, is suitable for various situations, so that operation complexity is reduced, it is also more convenient Fast;Meanwhile in transmission process, the data of terminal side need not be uploaded to central server, more thoroughly realize center Change, to effectively reduce the risk that data leaks, improves Information Security.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (14)

1. a kind of method of Point-to-Point Data Transmission characterized by comprising
First user terminal passes through the first browser according to user instructions and is connected to specified central server;
First user terminal receives the Webpage that central server returns, and is closed local connection based on the Webpage Connection information is issued;Location information and sheet of the local connection related information based on the first user terminal local It is secondary to connect corresponding identification information generation;
When first user terminal receives the connection foundation request that second user terminal is sent based on the connection related information, Connection is established between the second browser that the first browser locally used and second user terminal use, and is based on the connection Carry out data transmission between local and second user terminal.
2. the method as described in claim 1, which is characterized in that the first user terminal is based on the Webpage by local company Related information is connect to be issued, comprising:
First user terminal obtains local location information, generates corresponding identification information for this connection, and based on this The location information on ground and the identification information generated for this connection, call the Webpage to generate corresponding two dimensional code, and The two dimensional code is issued by the Webpage;
Alternatively,
First user terminal obtains local location information, generates corresponding identification information for this connection, and call institute It states Webpage and generates a random number, and issue the random number by the Webpage, and by the position of local Confidence breath and the identification information generated for this connection push to central server, wherein the random number is used at center The identification information that server obtains the location information of the first user terminal and generates for this connection.
3. method according to claim 2, which is characterized in that the first user terminal obtains local location information, comprising:
If the first user terminal and second user terminal, in same local area network, the first user terminal obtains local local area network Address is as location information;
If the first user terminal and second user terminal, not in same local area network, the first user terminal obtains local public network Address is as location information.
4. method as claimed in claim 1,2 or 3, which is characterized in that the first user terminal is in the first browsing locally used Connection is established between the second browser that device and second user terminal use, comprising:
First user terminal is based between the second browser that the first browser locally used and second user terminal use Javascript agreement establishes P2P computing P2P connection.
5. a kind of method of Point-to-Point Data Transmission characterized by comprising
Second user terminal receives the connection related information for the first user terminal that the first user terminal is issued based on Webpage, The Webpage is obtained after the first user terminal is connected to specified central server;The company of first user terminal Connect location information of the related information based on the first user terminal local and first user terminal with it is described in it is genuinely convinced The corresponding identification information of connection between business device generates;
Second user terminal is based on the connection related information and sends connection foundation request to the first user terminal, and according to first The response of user terminal establishes connection between the first browser that the second browser locally used and the first family terminal use, And carried out data transmission based on described be connected between local and the first user terminal.
6. method as claimed in claim 5, which is characterized in that second user terminal receives the first user terminal and is based on webpage page The connection related information of first user terminal of face publication, comprising:
Second user terminal receives the two dimensional code that the first user terminal is issued based on the Webpage, and the two dimensional code is first Location information of the user terminal based on the first user terminal and corresponding identification information is generated for this connection, calls the net The page page generates;
Alternatively,
Second user terminal receives the random number that the first user terminal is issued based on the Webpage, and uses the random number The location information of the first user terminal of the first user terminal uploads is obtained from the central server and for this connection life At identification information.
7. such as method described in claim 5 or 6, which is characterized in that second user terminal is in the second browser locally used And first establish connection between the first browser for using of family terminal, comprising:
Second user terminal is based between the second browser that the first browser locally used and second user terminal use Javascript agreement establishes P2P computing P2P connection.
8. a kind of device of Point-to-Point Data Transmission characterized by comprising
Communication unit, for being connected to specified central server by the first browser according to user instructions;
Release unit, for receiving the Webpage of central server return, and based on the Webpage by local connection Related information is issued;Location information and this connection of the local connection related information based on described device local Corresponding identification information generates;
Transmission unit, for receiving connection foundation request of the second user terminal based on the connection related information transmission When, connection is established between the second browser that the first browser locally used and second user terminal use, and be based on institute It states to be connected between local and second user terminal and carry out data transmission.
9. device as claimed in claim 8, which is characterized in that based on the Webpage by local connection related information into When row publication, the release unit is specifically used for:
Local location information is obtained, generates corresponding identification information for this connection, and based on local location information Identification information with generating for this connection, calls the Webpage to generate corresponding two dimensional code, and pass through the webpage The page issues the two dimensional code;
Alternatively,
Local location information is obtained, generates corresponding identification information for this connection, and call the Webpage raw The random number is issued at a random number, and by the Webpage, and by local location information and is directed to Identification information that this connection generates pushes to central server, wherein the random number is used to obtain the in central server The location information of one user terminal and the identification information generated for this connection.
10. device as claimed in claim 9, which is characterized in that when obtaining local location information, the release unit is specific For:
If the first user terminal and second user terminal, in same local area network, the first user terminal obtains local local area network Address is as location information;
If the first user terminal and second user terminal, not in same local area network, the first user terminal obtains local public network Address is as location information.
11. the device as described in claim 8,9 or 10, which is characterized in that used in the first browser locally used and second Connection is established between the second browser that family terminal uses, the transmission unit is specifically used for:
Between the second browser that the first browser locally used and second user terminal use, assisted based on Javascript View establishes P2P computing P2P connection.
12. a kind of device of Point-to-Point Data Transmission characterized by comprising
Communication unit, for receiving the connection association letter for the first user terminal that the first user terminal is issued based on Webpage Breath, the Webpage is obtained after the first user terminal is connected to specified central server;First user terminal Location information of the connection related information based on the first user terminal local and first user terminal and it is described in The corresponding identification information of connection between central server generates;
Transmission unit is established for sending connection to the first user terminal based on the connection related information and is requested, and according to the The response of one user terminal company of foundation between the first browser that the second browser locally used and the first family terminal use It connects, and is carried out data transmission based on described be connected between local and the first user terminal.
13. device as claimed in claim 12, which is characterized in that receiving what the first user terminal was issued based on Webpage The connection related information of first user terminal, the communication unit are specifically used for:
The two dimensional code that the first user terminal is issued based on the Webpage is received, the two dimensional code is that the first user terminal is based on The location information of first user terminal and corresponding identification information is generated for this connection, the Webpage is called to generate 's;
Alternatively,
Receive the random number that the first user terminal is issued based on the Webpage, and genuinely convinced from described using the random number The location information of first user terminal of device the first user terminal uploads of acquisition of being engaged in and the identification information generated for this connection.
14. device as described in claim 12 or 13, which is characterized in that whole in the second browser locally used and the first family When establishing connection between the first browser that end uses, the transmission unit is specifically used for:
Second user terminal is based between the second browser that the first browser locally used and second user terminal use Javascript agreement establishes P2P computing P2P connection.
CN201410410289.4A 2014-08-19 2014-08-19 A kind of method and device of Point-to-Point Data Transmission Active CN105357238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410410289.4A CN105357238B (en) 2014-08-19 2014-08-19 A kind of method and device of Point-to-Point Data Transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410410289.4A CN105357238B (en) 2014-08-19 2014-08-19 A kind of method and device of Point-to-Point Data Transmission

Publications (2)

Publication Number Publication Date
CN105357238A CN105357238A (en) 2016-02-24
CN105357238B true CN105357238B (en) 2019-02-05

Family

ID=55333099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410410289.4A Active CN105357238B (en) 2014-08-19 2014-08-19 A kind of method and device of Point-to-Point Data Transmission

Country Status (1)

Country Link
CN (1) CN105357238B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635181B (en) * 2016-03-08 2018-10-23 浙江工业大学 A kind of data transmission method of decentralization
CN108234620A (en) * 2017-12-28 2018-06-29 北京奇虎科技有限公司 Cross-platform data transmission method, apparatus and system
CN117544632B (en) * 2024-01-10 2024-03-29 城云科技(中国)有限公司 Method, system and application for direct interaction of browser pages in multiple terminals

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651746A (en) * 2012-05-18 2012-08-29 珠海德百祺科技有限公司 Point-to-point information transmission method, system and device
CN102891889A (en) * 2012-09-26 2013-01-23 腾讯科技(深圳)有限公司 Information sharing method and device
CN103023930A (en) * 2011-09-20 2013-04-03 中兴通讯股份有限公司 Webpage sharing method and device
CN103944864A (en) * 2013-01-22 2014-07-23 腾讯科技(深圳)有限公司 Information transmission method, information sending device, receiving device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023930A (en) * 2011-09-20 2013-04-03 中兴通讯股份有限公司 Webpage sharing method and device
CN102651746A (en) * 2012-05-18 2012-08-29 珠海德百祺科技有限公司 Point-to-point information transmission method, system and device
CN102891889A (en) * 2012-09-26 2013-01-23 腾讯科技(深圳)有限公司 Information sharing method and device
CN103944864A (en) * 2013-01-22 2014-07-23 腾讯科技(深圳)有限公司 Information transmission method, information sending device, receiving device and system

Also Published As

Publication number Publication date
CN105357238A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN105338480B (en) LBS-based user matching method, message client, server and system
US10334397B2 (en) Interaction tracking and organizing system
CN106332119B (en) Information processing method and device
JP6411629B2 (en) Terminal authentication method and apparatus used in mobile communication system
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN102970362A (en) Method and device for sharing cloud data
CN103563453A (en) Method and apparatus for sharing connectivity settings via social networks
TW201249227A (en) Mobile network operator identification
CN107872447A (en) Electronic device, server, communication system and communication method
CN102710634A (en) Intelligent WIFI (Wireless Fidelity) sharing system
GB2436412A (en) Authentication of network usage for use with message modifying apparatus
CN107182098A (en) For realizing the method and apparatus that user equipment switches between WAP
JP6342509B2 (en) Unknown number marking method and apparatus
CN102868593A (en) Method and terminal for information acquisition
JP2018515831A (en) Computerized system and method for offline user authentication
CN105357238B (en) A kind of method and device of Point-to-Point Data Transmission
CN108781473A (en) A kind of method and apparatus of the shared file between different terminals
CN104335198B (en) Server, method and the terminal for preventing accessing resource are accessed for management terminal
CN104683092A (en) Address list safe sharing method and system based on authorization
CN104348875A (en) Method, cloud server and system for performing pocket transmission of data
CN103338250A (en) Method and mobile terminal for paying attention in social contact system
CN103457717A (en) Information processing apparatus, information processing system, information processing method, and program
CN108028874A (en) For formed group and in group shared data systems, devices and methods
CN109921975B (en) Personal information distribution method and device
CN103888264A (en) Inter-mobile-phone data transferring method based on background data exchange, terminal and 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

Effective date of registration: 20211111

Address after: No. 699, Wangshang Road, Binjiang District, Hangzhou, Zhejiang

Patentee after: Alibaba (China) Network Technology Co., Ltd

Address before: P.O. Box 847, 4th floor, capital building, Grand Cayman, British Cayman Islands

Patentee before: Alibaba Group Holdings Limited

TR01 Transfer of patent right