CN105933384A - File sharing method, terminal and file sharing system - Google Patents
File sharing method, terminal and file sharing system Download PDFInfo
- Publication number
- CN105933384A CN105933384A CN201610209132.4A CN201610209132A CN105933384A CN 105933384 A CN105933384 A CN 105933384A CN 201610209132 A CN201610209132 A CN 201610209132A CN 105933384 A CN105933384 A CN 105933384A
- Authority
- CN
- China
- Prior art keywords
- terminal
- multicast message
- application program
- file
- sends
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1854—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with non-centralised forwarding system, e.g. chaincast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
Abstract
The invention discloses a file sharing method, a terminal and a file sharing system which are used for improving file transmission efficiency and user experience. According to one embodiment of the invention, the method includes the following steps that: a first terminal sends a multicast message, wherein the multicast message contains the internet protocol address (IP address) and port number of the first terminal; a second terminal monitors the multicast message sent by the first terminal; the second terminal establishes a communication channel with the first terminal according to the multicast message; and the second terminal and the first terminal carry out file transmission based on the established communication channel.
Description
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of file sharing method, terminal and file
Shared system.
Background technology
Along with the development of network technology, download file by transmitting file on network or network the most general
Time, and hold or upper transmitting file on mobile terminal in PC (Personal Computer is called for short PC)
Or the technology of download file is the most ripe, therefore, the File Sharing Technique between PC end and mobile terminal
Grow up the most therewith.A kind of more conventional PC end and mobile terminal that Fig. 1 provides for prior art it
Between file-sharing realize technology.In FIG, PC end is mounted with corresponding browser, meanwhile,
The browser of Android version it is mounted with, at account and the password of the registration of PC end subscriber on mobile terminal
Log in browser, similarly, at mobile phone users with same account and password login to browser,
Then, PC end and mobile terminal just can share file based on the browser logged in.Such as, mobile terminal
Needing a file-sharing to PC end, user passes through browser by files passe to cloud server, so
Rear user is downloaded from cloud server by browser on PC end.
In the file-sharing implementation of above-mentioned offer, PC end and mobile terminal are by the shadow of network environment
Ringing, and need the forwarding through middle cloud server, upload or downloading rate is low, Consumer's Experience is imitated
The most poor.
Summary of the invention
For drawbacks described above, embodiments provide a kind of file sharing method, terminal and file altogether
Enjoy system, for solving the problem that in prior art, between terminal, file-sharing is inefficient, to improve literary composition
Part efficiency of transmission and Consumer's Experience.
First aspect present invention provides a kind of file sharing method, it may include:
First terminal sends multicast message, so that the second terminal is by monitoring above-mentioned multicast message and according to upper
Stating multicast message and set up communication port with above-mentioned first terminal, above-mentioned multicast message includes above-mentioned first terminal
Internet protocol address IP address and port numbers;
Above-mentioned first terminal carries out file transmission with above-mentioned second terminal based on the above-mentioned communication port set up.
It can be seen that first terminal initiates multicast message, multicast message includes the IP of first terminal
Address and port numbers, and the second terminal is by monitoring the multicast message that first terminal sends, and obtains this multicast
Message, thus, the second terminal can navigate to first terminal according to this IP address and port numbers, then with
First terminal is set up and is connected, and sets up communication port.Afterwards, first terminal on this communication port directly with
Second terminal carries out file transmission, to realize file-sharing, first carries out uploading then in abandoning tradition technology
Download the drawback brought again, directly between first terminal and the second terminal, set up communication channel, improve
File transmission efficiency, improves Consumer's Experience, and uploads and downloading process owing to decreasing, it is possible to the
One terminal and the second terminal realize the transmission of big file.
Alternatively, in some embodiments of the invention, above-mentioned first terminal sends multicast message and includes: on
State first terminal and periodically send above-mentioned multicast message to multicast channel.
Alternatively, in some embodiments of the invention, above-mentioned first terminal sends multicast message and includes: on
Stating first terminal and send UDP UDP message bag, above-mentioned UDP message bag includes above-mentioned the
The IP address of one terminal and port numbers, so that above-mentioned second terminal monitoring above-mentioned UDP message bag according to upper
State multicast message and set up communication port with above-mentioned first terminal.
Alternatively, in some embodiments of the invention, above-mentioned first terminal and above-mentioned second terminal are respectively mounted
The first application program, above-mentioned first terminal is had to enter based on the above-mentioned communication port set up with above-mentioned second terminal
Style of writing part transmission includes: above-mentioned first terminal starts the first application program, by above-mentioned communication port upwards
The first application program stating the second terminal sends file;Or above-mentioned first terminal starts the first application program,
The file that the first application program of above-mentioned second terminal sends is received by above-mentioned communication port.
Second aspect present invention provides a kind of file sharing method, it may include:
The multicast message that second terminal monitoring first terminal sends, above-mentioned multicast message includes above-mentioned first eventually
The Internet protocol address IP address of end and port numbers;
Above-mentioned second terminal, according to above-mentioned multicast message, sets up communication port with above-mentioned first terminal;
Above-mentioned second terminal carries out file transmission with above-mentioned first terminal based on the communication port set up.
It can be seen that the second terminal is by monitoring the multicast message that first terminal sends, it is thus achieved that multicast message
In the IP address carried and port numbers, then set up communication port with first terminal, afterwards, the second terminal
File transmission is carried out by this communication port and first terminal.Wherein, by the second terminal and first eventually
Set up the communication channel of directly communication between end, reduce the step uploaded and download in conventional art, permissible
Improve efficiency of transmission, and realize the transmission of big file simultaneously.
Alternatively, in some embodiments of the invention, the multicast that above-mentioned second terminal monitoring first terminal sends
Message includes: above-mentioned second terminal monitoring multicast channel, obtains above-mentioned first eventually from above-mentioned multicast channel
The multicast message that end sends.
Alternatively, in some embodiments of the invention, the multicast that above-mentioned second terminal monitoring first terminal sends
Message includes: the UDP UDP message that the above-mentioned second above-mentioned first terminal of terminal monitoring sends
Bag, above-mentioned UDP message bag includes IP address and the port numbers of above-mentioned first terminal.
Alternatively, in some embodiments of the invention, above-mentioned second terminal and above-mentioned first terminal are mounted on
First application program, above-mentioned second terminal carries out file with above-mentioned first terminal based on the communication port set up
Transmission includes: above-mentioned second terminal starts above-mentioned first application program, by above-mentioned communication port to above-mentioned
First application program of first terminal sends file;Or above-mentioned second terminal starts above-mentioned first application journey
Sequence, receives, by above-mentioned communication port, the file that the first application program of above-mentioned first terminal sends.
Third aspect present invention provides a kind of terminal, it may include:
Multicast module, is used for sending multicast message, so that the second terminal is by monitoring above-mentioned multicast message also
Setting up communication port according to above-mentioned multicast message and above-mentioned terminal, above-mentioned multicast message includes above-mentioned terminal
Internet protocol address IP address and port numbers;
Transport module, for carrying out file transmission with above-mentioned second terminal based on the above-mentioned communication port set up.
Alternatively, in some embodiments of the invention, above-mentioned multicast module specifically for, periodically to multicast
Passage sends above-mentioned multicast message.
Alternatively, in some embodiments of the invention, above-mentioned multicast module also particularly useful for, send number of users
According to datagram protocol UDP message bag, above-mentioned UDP message bag includes IP address and the port numbers of above-mentioned terminal,
So that above-mentioned second terminal monitoring above-mentioned UDP message bag setting up according to above-mentioned multicast message and above-mentioned terminal
Communication port.
Alternatively, in some embodiments of the invention, above-mentioned terminal and above-mentioned second terminal are mounted on first
Application program;Above-mentioned transport module specifically for, start the first application program, by above-mentioned communication port
File is sent to the first application program of above-mentioned second terminal;Or start the first application program, by upper
State communication port and receive the file that the first application program of above-mentioned second terminal sends.
Fourth aspect present invention provides a kind of terminal, it may include:
Monitoring module, for monitoring the multicast message that first terminal sends, above-mentioned multicast message includes above-mentioned
The Internet protocol address IP address of first terminal and port numbers;
Set up communication module, for according to above-mentioned multicast message, set up communication port with above-mentioned first terminal;
Transport module, for carrying out file transmission with above-mentioned first terminal based on the communication port set up.
Alternatively, in some embodiments of the invention, above-mentioned monitoring module specifically for, monitor multicast channel,
The multicast message that above-mentioned first terminal sends is obtained from above-mentioned multicast channel.
Alternatively, in some embodiments of the invention, above-mentioned monitoring module also particularly useful for, monitor above-mentioned
The UDP UDP message bag that one terminal sends, above-mentioned UDP message bag includes above-mentioned first
The IP address of terminal and port numbers.
Alternatively, in some embodiments of the invention, above-mentioned terminal and above-mentioned first terminal are mounted on first
Application program;Above-mentioned transport module specifically for, start above-mentioned first application program, by above-mentioned communication
Passage sends file to the first application program of above-mentioned first terminal;Or start above-mentioned first application program,
The file that the first application program of above-mentioned first terminal sends is received by above-mentioned communication port.
Fifth aspect present invention provides a kind of shared file system, it may include: the end that the third aspect provides
The terminal that end and fourth aspect provide.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in the embodiment of the present invention
The required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, are not paying creative work
Under premise, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of file-sharing between more conventional PC end and mobile terminal that Fig. 1 provides for prior art
Realize technology;
The application scenarios schematic diagram of the shared file system that Fig. 2 provides for some embodiments of the invention;
The schematic flow sheet of the file sharing method that Fig. 3 provides for some embodiments of the invention;
The schematic flow sheet of the file sharing method that Fig. 4 provides for other embodiments of the present invention;
The file on browser that Fig. 5 provides for the embodiment of the present invention sends the schematic diagram at interface;
The structural representation of the terminal that Fig. 6 provides for some embodiments of the invention;
The structural representation of the terminal that Fig. 7 provides for some embodiments of the invention;
The structural representation of the shared file system that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing of the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the present invention, and not
It it is whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making
The every other embodiment obtained under creative work premise, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of file sharing method, be used for improving file transmission efficiency, it is achieved
Big file transmission.The embodiment of the present invention further correspondingly provides a kind of shared file system and terminal.
The application scenarios referring to the shared file system that Fig. 2, Fig. 2 provide for some embodiments of the invention shows
Being intended to, certainly, the present invention is suitable for but is not limited only to the application scenarios shown in Fig. 2.In fig. 2, in reality
The system of existing file-sharing includes that at least one PC end and at least one mobile terminal are (with 2 in Fig. 2
As a example by PC end and 2 mobile terminals, respectively PC end 1 and PC end 2, and mobile terminal 1 and move
Dynamic terminal 2).It is off the net that PC end and mobile terminal are operated in same wireless local, based on this WLAN,
Achieve connection corresponding to following three kinds of modes and communicate:
Connect and set up direct communication port, based on foundation between communication mode one: PC end and mobile terminal
Communication port transmission file;
Connect and set up direct communication port between communication mode two: PC end and PC end, based on set up
Communication port transmission file;
Connect communication mode three: between mobile terminal and mobile terminal, set up direct communication port, based on
The communication port transmission file set up.
To be discussed in detail and how to realize above-mentioned three kinds of connections, Yi Jiru on the basis of shown in Fig. 2 below
Where foundation connects the transmission of laggard style of writing part to realize sharing of file.First, referring to Fig. 3, Fig. 3 is
The schematic flow sheet of the file sharing method that some embodiments of the invention provide;As it is shown on figure 3, a kind of literary composition
Part sharing method comprises the steps that
301, first terminal sends multicast message, and this multicast message includes first terminal IP address and port numbers;
302, the multicast message that the second terminal monitoring first terminal sends;
Wherein, first terminal and the second terminal refer to provide a user with the equipment of voice and/or data connectivity,
There is the portable equipment of wireless connecting function, or be connected to other processing equipments of radio modem.
Can carry out with one or more core net through wireless access network (Radio Access Network, RAN)
Communication.The mobile terminal being specifically as follows in Fig. 2, such as mobile phone (or being referred to as " honeycomb " phone)
Or the PC end in Fig. 2, they and wireless access network exchange language and/or data.
First terminal and the second terminal works, in same LAN, pre-set first terminal and second eventually
Some functions in end, such as, multicast respective IP address and port numbers etc., and monitor except oneself
Outside the multicast message of other terminal, connect the terminal etc. sending multicast message.
303, the second terminal is according to the multicast message listened to, and sets up communication port with first terminal;
In embodiments of the present invention, first terminal sends multicast message with multicast mode in this LAN,
In multicast message, carry IP address and the port numbers of first terminal, be equivalent to its in this LAN
Its terminal is initiated to connect and is invited.Second terminal is by monitoring the multicast message in LAN, in snoop procedure
In, find the multicast message that first terminal sends, then in the multicast message according to first terminal transmission
IP address and port numbers, and first terminal connection establishment communication port.
First terminal and the second terminal multicast message the most in a local network, also simultaneously in monitoring LAN
Multicast message, first listens to the multicast message of first terminal in embodiments of the present invention by the second terminal,
Then confirm as a example by setting up communication port with first terminal, describe in detail first terminal and the second terminal it
Between how to set up communication port.It is to be appreciated that first terminal also can monitor the group that the second terminal sends simultaneously
Broadcast message, when first terminal connects the second terminal, it finds that built vertical connection between itself and the second terminal,
Then without being attached again.
304, first terminal and the second terminal carry out file transmission based on the communication port set up.
It can be seen that the second terminal is by monitoring the multicast message that first terminal sends, obtains this multicast and disappear
Breath, owing to multicast message including IP address and the port numbers of first terminal, thus, the second terminal energy
Enough navigate to first terminal according to this IP address and port numbers, then set up with first terminal and be connected, set up
Communication port, then directly carries out file transmission on this communication port, to realize file-sharing, abandons
Conventional art first carries out uploading the drawback that download is brought the most again, directly at first terminal and second eventually
Set up the communication channel of communication between end, improve file transmission efficiency, improve Consumer's Experience.And due to
Directly communicate between first terminal and the second terminal, additionally it is possible to realize the transmission of big file.
Being appreciated that and be provided with multicast channel in a local network, the IP address of such as multicast channel is
234.123.12.x, then multicast message is sent to IP address by the terminal in LAN is 234.123.12.x
Multicast channel on, meanwhile, this multicast channel of the terminal monitoring in LAN, obtain multicast message.That
, first terminal is by sending multicast message in multicast channel (234.123.12.x), and the second terminal is led to
Monitor multicast channel after always, obtain the multicast message of first terminal, thus realize first terminal and second
The connection of terminal.
In some embodiments of the invention, the terminal in LAN is by sending number of users to multicast channel
According to datagram protocol (User Datagram Protocol is called for short UDP) packet, take in UDP message bag
IP address and port numbers with terminal.Then other terminal obtain from UDP message bag IP address and
Port numbers.So, first terminal sends a UDP message bag in multicast channel (234.123.12.x),
Second terminal monitoring multicast channel gets this UDP message bag, thus gets IP address and port numbers.
In some embodiments of the invention, after establishing communication port between terminal, carrying out file transmission
Before, first with it has been determined that encryption key file is encrypted after, then pass over the communication channels
Defeated, to improve the safety of file transmission.Such as, data encryption standards (Data Encryption is used
Standard, vehicle economy S) file is encrypted by the DEA that provides.
It is appreciated that to maintain the smoothness connected between two terminals, terminal transmission group can be set
Broadcast the cycle of message, a multicast message will be sent when the cycle arrives.For example, it is possible to will arrange in the cycle
For 3s, then, every 3s can send a multicast message.
In some embodiments of the invention, after first terminal and the second terminal set up communication port, first eventually
End and the second terminal are that the application program utilizing it to be installed is to initiate file transmission respectively.Refer to Fig. 4,
The schematic flow sheet of the file sharing method that Fig. 4 provides for other embodiments of the present invention;As shown in Figure 4,
A kind of file sharing method comprises the steps that
401, first terminal sends multicast message, and this multicast message includes first terminal IP address and port numbers;
402, the multicast message that the second terminal monitoring first terminal sends, obtains first eventually from multicast message
The IP address of end and port numbers;
403, the second terminal is according to the IP address in UDP message bag and port numbers, and first terminal is set up
Communication port;
404, first terminal starts the application A installed, and is sent to the second terminal by application A
File;
Wherein, first terminal is provided with application A, equally, the second terminal is also provided with
Application A, first terminal and the second terminal all start application A.
Wherein, application A can be browser etc..To describe in detail as a example by browser below.
Refer to the file on the browser that Fig. 5, Fig. 5 provide for the embodiment of the present invention and send the schematic diagram at interface.
As it is shown in figure 5, first terminal starts browser, after browser selects file to send, display is corresponding
File sends interface, sends interface at file and includes sending, recommending and the option such as renewal, wherein, sends out
The option sent includes transmission current web page, sends file, transmission photo, transmission video etc..User
Have selected transmission file therein, select interface to select the file needing to send, at literary composition subsequently into file
Part selects interface to have " transmission " button, is completed by click " transmission " button after having selected file
Send.
405, the second terminal starts the application A installed, and receives file by application A.
It is appreciated that first terminal passes through application A and sends file to the second terminal, in the second terminal
On there are also installed application A, and the second terminal has had been turned on application A, therefore, based on opening
Dynamic application A, ejects file reception interface on the table, and user can be on file reception interface
Select to preserve file.
It can be seen that by setting up direct communication port in the middle of two terminals in the embodiment of the present invention,
Then recycle the application program of installation, it is achieved the transmission of file, to realize file-sharing, improve file
Transmission speed, improves Consumer's Experience.
Refer to the structural representation of the terminal that Fig. 6, Fig. 6 provide for some embodiments of the invention;Such as Fig. 6
Shown in, a kind of terminal 600 comprises the steps that
Multicast module 610, is used for sending multicast message, so that the second terminal is by monitoring described multicast message
And set up communication port according to described multicast message and described terminal, described multicast message includes described terminal
Internet protocol address IP address and port numbers;
Transport module 620, for carrying out file biography with described second terminal based on the described communication port set up
Defeated.
Wherein, the multicast module 610 of terminal 600 is by sending multicast message, so that the second terminal exists
When listening to multicast message, it is possible to according to IP address and the port numbers of the terminal 600 carried in multicast message,
Set up communication port with first terminal, be then based on the communication port set up, first terminal and the second terminal
Realize the quick transmission of file.
Alternatively, in some embodiments of the invention, above-mentioned multicast module 610 specifically for, periodically
Described multicast message is sent to multicast channel.
Alternatively, in some embodiments of the invention, above-mentioned multicast module 610 also particularly useful for, send
UDP message bag, described UDP message bag includes IP address and the port numbers of described terminal, so that described
UDP message bag described in second terminal monitoring also communicates with the foundation of described terminal according to described multicast message
Road.
Alternatively, in some embodiments of the invention, terminal 600 and described second terminal are mounted on
One application program;Transport module 620 specifically for, start the first application program, by described communication lead to
Road sends file to the first application program of described second terminal;Or start the first application program, pass through
Described communication port receives the file that the first application program of described second terminal sends.
Refer to the structural representation of the terminal that Fig. 7, Fig. 7 provide for some embodiments of the invention;Such as Fig. 7
Shown in, a kind of terminal 700 includes:
Monitoring module 710, for monitoring the multicast message that first terminal sends, described multicast message includes institute
State Internet protocol address IP address and the port numbers of first terminal;
Set up communication module 720, for according to described multicast message, set up with described first terminal and communicate
Road;
Transport module 730, for carrying out file transmission with described first terminal based on the communication port set up.
Alternatively, in some embodiments of the invention, above-mentioned monitoring module 710 is specifically for, monitoring group
Broadcast passage, from described multicast channel, obtain the multicast message that described first terminal sends.
Alternatively, in some embodiments of the invention, above-mentioned monitoring module 710 also particularly useful for, monitor
The UDP UDP message bag that described first terminal sends, described UDP message bag includes institute
State IP address and the port numbers of first terminal.
Alternatively, in some embodiments of the invention, above-mentioned terminal 700 and described first terminal are respectively mounted
There is the first application program;Described transport module specifically for, start described first application program, by institute
State communication port and send file to the first application program of described first terminal;Or starting described first should
By program, receive, by described communication port, the file that the first application program of described first terminal sends.
Refer to the structural representation of the shared file system that Fig. 8, Fig. 8 provide for the embodiment of the present invention;As
Shown in Fig. 8, a kind of shared file system 800 comprises the steps that first terminal and the second terminal.
Wherein, first terminal is above-mentioned terminal 600, and the second terminal is above-mentioned terminal 700.
Refer to first terminal and the second terminal are illustrated by embodiment of the method and device embodiment,
Do not repeat them here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment
The part described in detail, may refer to the associated description of other embodiments.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list
The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit
Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this
The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme
Completely or partially can embody with the form of software product, this computer software product is stored in one
In storage medium, including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention
Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. the various media that can store program code.
Above a kind of file sharing method provided by the present invention, terminal and shared file system are carried out
It is discussed in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, specifically
All will change on embodiment and range of application, in sum, this specification content should not be understood
For limitation of the present invention.
Claims (17)
1. a file sharing method, it is characterised in that including:
First terminal sends multicast message, so that the second terminal is by monitoring described multicast message and according to institute
Stating multicast message and set up communication port with described first terminal, described multicast message includes described first terminal
Internet protocol address IP address and port numbers;
Described first terminal carries out file transmission with described second terminal based on the described communication port set up.
Method the most according to claim 1, it is characterised in that
Described first terminal sends multicast message and includes: described first terminal periodically sends to multicast channel
Described multicast message.
Method the most according to claim 1 and 2, it is characterised in that
Described first terminal sends multicast message and includes:
Described first terminal sends UDP UDP message bag, and described UDP message bag includes
The IP address of described first terminal and port numbers, so that UDP message bag described in described second terminal monitoring is also
Communication port is set up according to described multicast message and described first terminal.
Method the most according to claim 1, it is characterised in that described first terminal and described second
Terminal is mounted on the first application program, and described first terminal and described second terminal are based on described in foundation
Communication port carries out file transmission and includes:
Described first terminal starts the first application program, by described communication port to described second terminal
First application program sends file;Or described first terminal starts the first application program, by described logical
The file that first application program of the second terminal described in letter channel reception sends.
5. a file sharing method, it is characterised in that including:
The multicast message that second terminal monitoring first terminal sends, described multicast message includes described first eventually
The Internet protocol address IP address of end and port numbers;
Described second terminal, according to described multicast message, sets up communication port with described first terminal;
Described second terminal carries out file transmission with described first terminal based on the communication port set up.
Method the most according to claim 5, it is characterised in that
The multicast message that described second terminal monitoring first terminal sends includes:
Described second terminal monitoring multicast channel, obtains described first terminal from described multicast channel and sends
Multicast message.
7. according to the method described in claim 5 or 6, it is characterised in that described second terminal monitoring
The multicast message that one terminal sends includes:
The UDP UDP message bag that first terminal described in described second terminal monitoring sends, institute
State UDP message bag and include IP address and the port numbers of described first terminal.
Method the most according to claim 5, it is characterised in that described second terminal and described first
Terminal is mounted on the first application program, and described second terminal and described first terminal are based on the communication set up
Passage carries out file transmission and includes:
Described second terminal starts described first application program, by described communication port to described first eventually
First application program of end sends file;Or described second terminal starts described first application program, logical
Cross described communication port and receive the file that the first application program of described first terminal sends.
9. a terminal, it is characterised in that including:
Multicast module, is used for sending multicast message, so that the second terminal is by monitoring described multicast message also
Setting up communication port according to described multicast message and described terminal, described multicast message includes described terminal
Internet protocol address IP address and port numbers;
Transport module, for carrying out file transmission with described second terminal based on the described communication port set up.
Terminal the most according to claim 9, it is characterised in that
Described multicast module specifically for, periodically send described multicast message to multicast channel.
11. according to the terminal described in claim 9 or 10, it is characterised in that
Described multicast module also particularly useful for, send UDP UDP message bag, described UDP
Packet includes IP address and the port numbers of described terminal, so that UDP described in described second terminal monitoring
Packet also sets up communication port according to described multicast message and described terminal.
12. terminals according to claim 9, it is characterised in that described terminal and described second is eventually
End is mounted on the first application program;
Described transport module specifically for, start the first application program, by described communication port to described
First application program of the second terminal sends file;Or start the first application program, by described communication
The file that first application program of the second terminal described in channel reception sends.
13. 1 kinds of terminals, it is characterised in that including:
Monitoring module, for monitoring the multicast message that first terminal sends, described multicast message includes described
The Internet protocol address IP address of first terminal and port numbers;
Set up communication module, for according to described multicast message, set up communication port with described first terminal;
Transport module, for carrying out file transmission with described first terminal based on the communication port set up.
14. terminals according to claim 13, it is characterised in that
Described monitoring module specifically for, monitor multicast channel, from described multicast channel, obtain described the
The multicast message that one terminal sends.
15. according to the terminal described in claim 13 or 14, it is characterised in that
Described monitoring module also particularly useful for, monitor described first terminal send UDP
UDP message bag, described UDP message bag includes IP address and the port numbers of described first terminal.
16. terminals according to claim 13, it is characterised in that described terminal and described first is eventually
End is mounted on the first application program;
Described transport module specifically for, start described first application program, by described communication port to
First application program of described first terminal sends file;Or start described first application program, pass through
Described communication port receives the file that the first application program of described first terminal sends.
17. 1 kinds of shared file systems, it is characterised in that including: first terminal and the second terminal;
Wherein, described first terminal terminal as described in any one of claim 9~12, described second terminal
Terminal as described in any one of claim 13~16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610209132.4A CN105933384B (en) | 2016-04-06 | 2016-04-06 | File sharing method, terminal and file sharing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610209132.4A CN105933384B (en) | 2016-04-06 | 2016-04-06 | File sharing method, terminal and file sharing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105933384A true CN105933384A (en) | 2016-09-07 |
CN105933384B CN105933384B (en) | 2021-05-25 |
Family
ID=56840474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610209132.4A Active CN105933384B (en) | 2016-04-06 | 2016-04-06 | File sharing method, terminal and file sharing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933384B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106559690A (en) * | 2016-11-15 | 2017-04-05 | 武汉斗鱼网络科技有限公司 | The live method and system for throwing screen are realized based on multicast on a kind of intelligent television |
CN106921961A (en) * | 2017-01-25 | 2017-07-04 | 北京奇虎科技有限公司 | Data transmission method, device and mobile terminal between a kind of different system |
CN107592364A (en) * | 2017-09-22 | 2018-01-16 | 中汇信息技术(上海)有限公司 | A kind of distributed message exchange method and system |
CN107612979A (en) * | 2017-08-28 | 2018-01-19 | 北京白鹭时代信息技术有限公司 | A kind of method and device of the file of Real-Time Sharing in a local network change |
CN108900878A (en) * | 2018-06-27 | 2018-11-27 | 福建天泉教育科技有限公司 | A kind of method and system for realizing wireless display |
CN111988414A (en) * | 2020-08-26 | 2020-11-24 | 杭州速递科技有限公司 | Video hard terminal conference control method and system |
CN112583472A (en) * | 2020-12-28 | 2021-03-30 | 四川安迪科技实业有限公司 | Multicast file sending, receiving and transmitting method and device for batch upgrading of satellite equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466324A (en) * | 2002-09-06 | 2004-01-07 | 联想(北京)有限公司 | Method for realixing dynamic networking connection and resource sharing in equipment of home backbone network |
CN101043345A (en) * | 2006-03-20 | 2007-09-26 | 腾讯科技(深圳)有限公司 | Point-to-point technique based picture sharing system and method |
CN102647802A (en) * | 2012-03-28 | 2012-08-22 | 青岛海信移动通信技术股份有限公司 | Wireless data sharing method and terminals for realizing sharing |
WO2013056746A1 (en) * | 2011-10-21 | 2013-04-25 | Nokia Siemens Networks Oy | Bearer service in communications |
CN103888488A (en) * | 2012-12-20 | 2014-06-25 | 三星电子(中国)研发中心 | WIFI-based data sharing method |
CN104065692A (en) * | 2013-04-02 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Web-game interaction method, device and system |
-
2016
- 2016-04-06 CN CN201610209132.4A patent/CN105933384B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466324A (en) * | 2002-09-06 | 2004-01-07 | 联想(北京)有限公司 | Method for realixing dynamic networking connection and resource sharing in equipment of home backbone network |
CN101043345A (en) * | 2006-03-20 | 2007-09-26 | 腾讯科技(深圳)有限公司 | Point-to-point technique based picture sharing system and method |
WO2013056746A1 (en) * | 2011-10-21 | 2013-04-25 | Nokia Siemens Networks Oy | Bearer service in communications |
CN102647802A (en) * | 2012-03-28 | 2012-08-22 | 青岛海信移动通信技术股份有限公司 | Wireless data sharing method and terminals for realizing sharing |
CN103888488A (en) * | 2012-12-20 | 2014-06-25 | 三星电子(中国)研发中心 | WIFI-based data sharing method |
CN104065692A (en) * | 2013-04-02 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Web-game interaction method, device and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106559690A (en) * | 2016-11-15 | 2017-04-05 | 武汉斗鱼网络科技有限公司 | The live method and system for throwing screen are realized based on multicast on a kind of intelligent television |
CN106921961A (en) * | 2017-01-25 | 2017-07-04 | 北京奇虎科技有限公司 | Data transmission method, device and mobile terminal between a kind of different system |
CN107612979A (en) * | 2017-08-28 | 2018-01-19 | 北京白鹭时代信息技术有限公司 | A kind of method and device of the file of Real-Time Sharing in a local network change |
CN107592364A (en) * | 2017-09-22 | 2018-01-16 | 中汇信息技术(上海)有限公司 | A kind of distributed message exchange method and system |
CN108900878A (en) * | 2018-06-27 | 2018-11-27 | 福建天泉教育科技有限公司 | A kind of method and system for realizing wireless display |
CN111988414A (en) * | 2020-08-26 | 2020-11-24 | 杭州速递科技有限公司 | Video hard terminal conference control method and system |
CN112583472A (en) * | 2020-12-28 | 2021-03-30 | 四川安迪科技实业有限公司 | Multicast file sending, receiving and transmitting method and device for batch upgrading of satellite equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105933384B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105933384A (en) | File sharing method, terminal and file sharing system | |
CN110121902B (en) | Communication establishment method and terminal | |
CN104135704A (en) | Sound box networking method and sound box network | |
JP2009021966A (en) | Communication channel selection and use method | |
CN101674606A (en) | Data transmission method and device | |
CN104584490A (en) | Data transmitting method and device | |
CN110913006B (en) | Remote diagnosis method and system | |
WO2016090120A1 (en) | Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system | |
CN102845123A (en) | Virtual private cloud connection method and tunnel proxy server | |
CN102201846A (en) | Wireless data transmission system and method based on soft AP (access point) technology | |
CN102118831A (en) | Wireless access method and device | |
CN104243281A (en) | Voice communication method based on mobile Internet | |
CN109168171A (en) | configuration information obtaining method, device, equipment and system | |
CN103516567A (en) | Method and system for equipment discovery and server | |
CN103517378A (en) | Method for building packet data network connection and equipment | |
CN103716230B (en) | Message sending method, device and server | |
CN107509176A (en) | Method for building up and device, the computer-readable storage medium of a kind of group | |
CN107534648A (en) | For supporting the mechanism of operator's auxiliary parent's control | |
CN107371139A (en) | Transmission method, the apparatus and system of broadcasting service | |
CN102932214B (en) | A kind of discovery polymerization of home network dissimilar medium equipment | |
CN105743663A (en) | Data transmission device and method | |
CN102821359B (en) | Method, device and system for business share transmission | |
CN104883460A (en) | Processing method of IP-based telephone conference access and apparatus | |
CN102611783A (en) | Mobile terminal and method for processing mobile internet communication service with the same | |
CN103530342B (en) | Method and device for sharing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |