Movatterモバイル変換


[0]ホーム

URL:


CN101631127A - File transfer method and clients - Google Patents

File transfer method and clients
Download PDF

Info

Publication number
CN101631127A
CN101631127ACN200910164198ACN200910164198ACN101631127ACN 101631127 ACN101631127 ACN 101631127ACN 200910164198 ACN200910164198 ACN 200910164198ACN 200910164198 ACN200910164198 ACN 200910164198ACN 101631127 ACN101631127 ACN 101631127A
Authority
CN
China
Prior art keywords
instant communication
communication client
file
client
information
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.)
Pending
Application number
CN200910164198A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN200910164198ApriorityCriticalpatent/CN101631127A/en
Priority to PCT/CN2009/076001prioritypatent/WO2011015020A1/en
Publication of CN101631127ApublicationCriticalpatent/CN101631127A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a file transfer method and clients. The method comprises the following steps that: a first instant messaging client sends a request message for requesting file transfer to a second instant messaging client by an instant messaging server, and receives a message for approving the file receiving from the second instant messaging client by the instant messaging server, wherein the message for approving the file receiving carries information of the second instant messaging client; the first instant messaging client carries out the connection based on a transfer control protocol TCP/internet protocol IP protocol to the second instant messaging client according to the information of the second instant messaging client, and if the connection is successful, the first instant messaging client directly sends files to the second instant messaging client. The file transfer method and the clients reduce the burden of the instant messaging server and improve the performance of the instant messaging server and the efficiency of file transfer.

Description

Document transmission method and client
Technical field
The present invention relates to the communications field, in particular to a kind of document transmission method and client.
Background technology
File transfer is one of basic function of instant messaging business, and this function can make the user realize the instantaneous transmission of file fast, thus shared file, picture or other file resource easily.
At present, in instant communication traffic, file transfer all needs to do unified transfer by instant communication server, therefore, require transmit leg and recipient all will set up link with instant communication server, transmit leg transfers the file to instant communication server earlier, and instant communication server sends to the recipient with file content again.In actual environment for use, transmit leg and recipient are positioned at the consolidated network environment, can directly connect transfer files, but, under this environment, use present instant messaging business, still can carry out file transfer by transit server, thereby cause the waste of server side resource, reduced the performance of server.
Summary of the invention
Cause the problem of server resource waste, server performance reduction between the instant communication client under the consolidated network environment, carrying out file transfer still to need transit server in the correlation technique and propose the present invention, for this reason, main purpose of the present invention is to provide a kind of file transmission scenario, one of to address the above problem at least.
To achieve these goals, according to an aspect of the present invention, provide a kind of document transmission method.
Document transmission method according to the present invention is used for transfer files between the instant communication client, comprising: first instant communication client sends the request message that is used for the demand file transmission via instant communication server to second instant communication client; First instant communication client receives the message that receives file from the agreement of second instant communication client via instant communication server, wherein, carries the information of second instant communication client in the message of agreement reception file; First instant communication client directly carries out connection based on transmission control protocol TCP/ internet protocol IP protocol according to the information of second instant communication client to second instant communication client, if successful connection, then first instant communication client directly sends file to second instant communication client.
Preferably, after second instant communication client directly carried out connection failure, said method also comprised at first instant communication client: first instant communication client sends file via instant communication server to second instant communication client.
Preferably, the information of second instant communication client comprises one of following at least: the IP address of second instant communication client, the port numbers of second instant communication client.
To achieve these goals, according to a further aspect in the invention, provide another kind of document transmission method.
Another kind of document transmission method according to the present invention is used for transfer files between instant communication client, comprise: second instant communication client is via the request message that be used for demand file transmission of instant communication server reception from first instant communication client, wherein, carry the information of first instant communication client in the request message; Second instant communication client directly carries out connection based on transmission control protocol TCP/ internet protocol IP protocol according to the information of first instant communication client to first instant communication client, if successful connection, then second instant communication client directly receives the file from first instant communication client.
Preferably, after first instant communication client directly carried out connection failure, method also comprised at second instant communication client: second instant communication client is via the file of instant communication server reception from first instant communication client.
Preferably, the information of first instant communication client comprises one of following at least: the IP address of first instant communication client, the port numbers of first instant communication client.
To achieve these goals, in accordance with a further aspect of the present invention, provide a kind of client.
Client according to the present invention comprises: first receiver module, be used to receive the request message that is used for the demand file transmission from the source instant communication client, and wherein, carry the information of active instant communication client in the request message; Link block is used for directly carrying out connection based on transmission control protocol TCP/ internet protocol IP protocol according to the information of source instant communication client to the source instant communication client; Second receiver module is used under the situation of successful connection, directly receives the file from the source instant communication client.
Preferably, second receiver module also is used under the situation of connection failure via the file of instant communication server reception from the source instant communication client.
By the present invention, the scheme that employing directly connects between client, solved and carried out between the instant communication client under the consolidated network environment in the correlation technique that file transfer still needs transit server and the problem that causes the server side wasting of resources, server performance to reduce, and then alleviated the burden of instant communication server, improved the performance of instant communication server and the efficient of file transfer.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the file transfer mode one of the embodiment of the invention;
Fig. 2 is the flow chart according to the file transfer mode two of the embodiment of the invention;
Fig. 3 is the flow chart concrete according to the middle file transfer of the embodiment of the invention;
Fig. 4 is the schematic diagram according to the Signalling exchange flow process of the file transfer of the embodiment of the invention;
Fig. 5 is the structured flowchart according to the client of the embodiment of the invention;
Fig. 6 is the structured flowchart according to the another kind of client of the embodiment of the invention;
Fig. 7 is the schematic diagram according to the system configuration of the file transfer of the embodiment of the invention.
Embodiment
Functional overview
Consider that carrying out file transfer in the correlation technique between the instant communication client under the consolidated network environment still needs transit server and cause the problem that server resource is wasted, server performance reduces, the embodiment of the invention provides a kind of file transmission scenario, and the treatment principle of this scheme is as follows: first instant communication client sends the request message that is used for the demand file transmission via instant communication server to second instant communication client; First instant communication client receives the message that receives file from the agreement of second instant communication client via instant communication server, wherein, carries the information of second instant communication client in the message of agreement reception file; First instant communication client directly carries out connection based on transmission control protocol TCP/ internet protocol IP protocol according to the information of second instant communication client to second instant communication client, if successful connection, then first instant communication client directly sends file to second instant communication client.Can judge transmit leg and recipient's network environment by the embodiment of the invention, select suitable file transfer mode, avoid between the user in the identical network environment transfer files still by the instant communication server transfer, but transmit leg and recipient directly carry out file transfer, thereby have greatly improved the performance of instant communication server and the efficient of file transfer.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In following examples, can in computer system, carry out in the step shown in the flow chart of accompanying drawing such as a set of computer-executable instructions, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
Method embodiment
According to embodiments of the invention, a kind of document transmission method is provided, this method can realize by two kinds of forms.Below to respectively dual mode being described in detail.
Mode one
Fig. 1 is the flow chart according to the file transfer mode one of the embodiment of the invention, and as shown in Figure 1, this method comprises that following step S102 is to step S106:
Step S102, first instant communication client (that is transmit leg) sends the request message that is used for the demand file transmission via instant communication server to second instant communication client (that is recipient).
Step S104, first instant communication client, receive the request message of file transfer at second instant communication client after, receive the message that receives file from the agreement of second instant communication client via instant communication server, wherein, carry the information of second instant communication client in the message of agreement reception file.
Step S106, after first instant communication client receives the message of the agreement file transfer that second instant communication client replys, information according to second instant communication client in the message is directly carried out based on transmission control protocol (TransferControl Protocol to second instant communication client, abbreviate TCP as)/Internet protocol (Internet Protocol, abbreviate IP as) connection of agreement, if successful connection, represent that then transmit leg and recipient are in the consolidated network environment, can directly connect, first instant communication client directly sends file to second instant communication client.
In step S106, if first instant communication client directly carries out connection failure to second instant communication client, then first instant communication client sends file via instant communication server to second instant communication client.That is, first instant communication client sends to instant communication server with file, and then, this instant communication server is transmitted to this document second instant communication client again.
Preferably, carry the information of second instant communication client in the information of second instant communication client, this information can be the network information of second instant communication client, for example, and IP address, port numbers.
Mode two
Fig. 2 is the flow chart according to the file transfer mode two of the embodiment of the invention, and as shown in Figure 2, this flow process comprises that following step S202 is to step S204:
Step S202, second instant communication client via instant communication server, receives the request message that is used for the demand file transmission from first instant communication client, wherein, carries the information of first instant communication client in the request message.
Step S204, second instant communication client, behind the request message of the file transfer that receives first instant communication client, directly carry out connection according to the information of first instant communication client to first instant communication client based on ICP/IP protocol, if successful connection, represent that then transmit leg and recipient in the consolidated network environment, can directly connect, second instant communication client directly receives the file from first instant communication client.
In step S204, at second instant communication client after first instant communication client directly carries out connection failure, first instant communication client still sends to instant communication server with file, sends file via instant communication server to second instant communication client.
In step S202, comprise the network information of first instant communication client in the information of first instant communication client, for example, IP address, port numbers.
Be described in detail below in conjunction with the implementation procedure of example the embodiment of the invention.
Fig. 3 is the flow chart concrete according to the middle file transfer of the embodiment of the invention, as shown in Figure 3, this method may further comprise the steps S1 to step S4, and Fig. 4 is according to the schematic diagram of the Signalling exchange flow process of the file transfer of the embodiment of the invention, below in conjunction with Fig. 4 the step among Fig. 3 is described:
Step S1 is provided with two instant communication clients, an instant communication server, is used to realize the interrelated logic of instant messaging business.Wherein, two instant communication clients comprise transmit leg instant communication client and recipient's instant communication client, and instant communication client is a custom terminal, can carry out communication by standard agreement with instant communication server.
Step S2, the transmit leg instant communication client is via instant communication server, to receiving the request message that instant communication client sends the demand file transmission.
Step S3, after recipient's instant communication client is received request message from the file transfer of transmit leg instant communication client, the transmit leg instant communication client receives the message that receives file from the agreement of recipient's instant communication client via instant communication server, wherein, carry the information of recipient's instant communication client in the message of agreement reception file.
Preferably, carry the network information of recipient's instant communication client in the information of recipient's instant communication client, wherein, comprise one of following at least:
The IP address of recipient's instant communication client, the port numbers of recipient's instant communication client.
Step S4, after the transmit leg instant communication client is received and is received the message of file from the agreement of recipient's instant communication client, according to the network information in the message of agreeing the reception file, carry out connection to recipient's instant communication client based on ICP/IP protocol, if successful connection, represent that then transmit leg instant communication client and recipient's instant communication client are in the consolidated network environment, can directly connect, the transmit leg instant communication client directly sends to recipient's instant communication client with file by the link of setting up; If connection failure, then the transmit leg instant communication client sends to instant communication server with file, by instant communication server file is transmitted to recipient's instant communication client again.
Device embodiment
According to embodiments of the invention, a kind of client is provided, and Fig. 5 is the structured flowchart according to the client of the embodiment of the invention, as shown in Figure 5, this client comprises: sending module 52, receiver module 54, link block 56, file module 58, and below to being described in detail to structure.
Sending module 52 is used for via instant communication server, sends the request message that is used for the demand file transmission to the purpose instant communication client; Receiver module 54 is connected to sending module 52, is used for receiving the message that receives file from the agreement of purpose instant communication client via instant communication server.Wherein, carry the information of purpose instant communication client in the message of agreement reception file; Link block 56 is connected to receiver module 54, after being used to receive the message of the agreement file transfer that the purpose instant communication client replys, directly carry out connection to the purpose instant communication client based on ICP/IP protocol according to the information of the purpose instant communication client in the message; File module 58 is connected to link block 56, is used for directly sending file to the purpose instant communication client under the situation of link block successful connection.If the link block successful connection represents that then transmit leg and recipient in the consolidated network environment, can directly connect, first instant communication client directly sends file to second instant communication client.
Wherein, file module 58 also is used for sending file via instant communication server to the purpose instant communication client under the situation of link block connection failure.
Preferably, carry the network information of purpose instant communication client in the information of purpose instant communication client, wherein, comprise one of following at least: the IP address of purpose instant communication client, the port numbers of purpose instant communication client.
According to embodiments of the invention, another kind of client also is provided, Fig. 6 is the structured flowchart according to the another kind of client of the embodiment of the invention, as shown in Figure 6, this client comprises: first receiver module 62, link block 64, second receiver module 66 are described in detail this structure below.
First receiver module 62 is used to receive the request message that is used for the demand file transmission from the source instant communication client, wherein, carries the information of active instant communication client in the request message; Link block 64 is connected to first receiver module 62, is used for directly carrying out connection based on ICP/IP protocol according to the information of source instant communication client to the source instant communication client; Second receiver module 66 is connected to link block 64, is used under the situation of successful connection, directly receives the described file from the source instant communication client.
Wherein, second receiver module 66 also is used under the situation of connection failure via the file of instant communication server reception from the source instant communication client.
Preferably, carry the network information of active instant communication client in the information of source instant communication client, wherein, comprise one of following at least: the IP address of source instant communication client, the port numbers of source instant communication client.
System embodiment
The embodiment of the invention provides file system for transmitting in a kind of instant messaging.
Fig. 7 is the schematic diagram according to the system configuration of the file transfer of the embodiment of the invention, and as shown in Figure 7, this system comprises: instant communication client 101, instant communication client 102 and instant communication server 103.Wherein, instant communication client 101, instant communication client 102 carry out communication with instant communication server by standard agreement for customization PC terminal; Instant communication server 103 is the servers that are deployed on the network, is used to realize the processing logic of instant messaging.Telecommunication customer end 101, instant communication client 102 correspond respectively to first instant communication client and second instant communication client among the said method embodiment, and identical with among the method embodiment of the document transmission process in this system do not repeat them here.
In sum, by the foregoing description provided by the invention, when in instant messaging, carrying out file transfer, can select suitable file transfer mode automatically, avoid transmit leg instant communication client and recipient's instant communication client in consolidated network environment following time, still carry out file transfer by instant communication server transfer mode, but directly carry out file transfer by transmit leg instant communication client and the direct-connected mode of recipient's instant communication client, alleviate the burden of instant communication server, improved the performance of instant communication server and the efficient of file transfer.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

CN200910164198A2009-08-062009-08-06File transfer method and clientsPendingCN101631127A (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN200910164198ACN101631127A (en)2009-08-062009-08-06File transfer method and clients
PCT/CN2009/076001WO2011015020A1 (en)2009-08-062009-12-24File transmission method, system and client

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN200910164198ACN101631127A (en)2009-08-062009-08-06File transfer method and clients

Publications (1)

Publication NumberPublication Date
CN101631127Atrue CN101631127A (en)2010-01-20

Family

ID=41576072

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN200910164198APendingCN101631127A (en)2009-08-062009-08-06File transfer method and clients

Country Status (2)

CountryLink
CN (1)CN101631127A (en)
WO (1)WO2011015020A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102255940A (en)*2011-03-222011-11-23苏州阔地网络科技有限公司Priority based file batch processing transmission method and system
CN103391241A (en)*2013-07-172013-11-13厦门亿联网络技术股份有限公司Transmitting method and system for transmitting common files and screenshots in instant messaging tools
CN103746975A (en)*2013-12-262014-04-23小米科技有限责任公司Method of data transmission, device and mobile terminal
CN103812947A (en)*2014-02-282014-05-21深圳市创梦天地科技有限公司Data interaction system and method
CN105187301A (en)*2015-09-082015-12-23北京元心科技有限公司Instant communication file transfer method and system
CN105827514A (en)*2016-05-062016-08-03中南大学 A cloud storage-based instant messaging data transmission system and method
CN107786588A (en)*2016-08-252018-03-09北京京东尚科信息技术有限公司The method and system of file is transmitted between PC and mobile device
CN109309611A (en)*2017-07-262019-02-05深圳艾派网络科技股份有限公司The point-to-point text in multiple terminals connects file reception mutual exclusion method and system in transmission
CN109525628A (en)*2017-09-202019-03-26北京国双科技有限公司HTTP request adjustment method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7363378B2 (en)*2003-07-012008-04-22Microsoft CorporationTransport system for instant messaging
CN100373894C (en)*2004-07-092008-03-05腾讯科技(深圳)有限公司Instant communication roating method for mobile network
CN1808983A (en)*2006-02-152006-07-26阿里巴巴公司Method and system of implementing instant communication

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102255940A (en)*2011-03-222011-11-23苏州阔地网络科技有限公司Priority based file batch processing transmission method and system
CN103391241A (en)*2013-07-172013-11-13厦门亿联网络技术股份有限公司Transmitting method and system for transmitting common files and screenshots in instant messaging tools
CN103746975A (en)*2013-12-262014-04-23小米科技有限责任公司Method of data transmission, device and mobile terminal
CN103812947A (en)*2014-02-282014-05-21深圳市创梦天地科技有限公司Data interaction system and method
CN103812947B (en)*2014-02-282017-03-15深圳市创梦天地科技有限公司Data interaction system and method
CN105187301A (en)*2015-09-082015-12-23北京元心科技有限公司Instant communication file transfer method and system
CN105827514A (en)*2016-05-062016-08-03中南大学 A cloud storage-based instant messaging data transmission system and method
CN107786588A (en)*2016-08-252018-03-09北京京东尚科信息技术有限公司The method and system of file is transmitted between PC and mobile device
CN109309611A (en)*2017-07-262019-02-05深圳艾派网络科技股份有限公司The point-to-point text in multiple terminals connects file reception mutual exclusion method and system in transmission
CN109525628A (en)*2017-09-202019-03-26北京国双科技有限公司HTTP request adjustment method, device and system
CN109525628B (en)*2017-09-202021-09-07北京国双科技有限公司HTTP request debugging method, device and system

Also Published As

Publication numberPublication date
WO2011015020A1 (en)2011-02-10

Similar Documents

PublicationPublication DateTitle
CN101631127A (en)File transfer method and clients
CN103795689A (en)Resource subscription method and device
CN110808948B (en) Remote procedure call method, device and system
CN104486327B (en) Communication method and client side between page and persistent connection server
CN103516673A (en)Network data communication method, network data communication system, network data communication client and network data communication server
CN101778053A (en)Inter-instant messenger communication method and device
CN113572864B (en) A data processing method, network element equipment and readable storage medium
CN1145286C (en)Wireless protocol method and apparatus for supporting transaction requests with variable length responses
CN113572835A (en)Data processing method, network element equipment and readable storage medium
CN101599921B (en)Enterprise instant communication system and file transfer method thereof
CN103379130A (en)Network access system and method based on application layer data
CN110365790B (en)Message transmission method and device, cascade networking equipment and readable storage medium
CN1633096A (en)A method of short message value-added service access
CN101170734B (en) Method and device for realizing service interworking between different networks
CN101465783B (en)Connection method, device and connection network bridge for isomery household network appliances
CN103533001A (en)Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN115987931B (en)Instant messaging message uplink method and device
CN108337215B (en) A file transmission method and system, device and electronic device
WO2010009666A1 (en)Method, system and device for implementing multimedia service
US20060089164A1 (en)Method and system for transmitting MMS notification message
CN101860544A (en)Transmitting system and method of session initiation protocol message
CN101662740A (en)Transmission method of multimedia message accessory at network side and equipment thereof
CN101442790B (en)Method for sending and receiving connection management sub-layer message and customer equipment
CN101925021A (en)Method/system for processing messages and convergence service system
CN101035127B (en)Method for transferring the report message to the service provider in the multimedia message service

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

Application publication date:20100120


[8]ページ先頭

©2009-2025 Movatter.jp