CN1992605A - Process for establishing and keeping network connection between client ends - Google Patents

Process for establishing and keeping network connection between client ends Download PDF

Info

Publication number
CN1992605A
CN1992605A CN 200510132865 CN200510132865A CN1992605A CN 1992605 A CN1992605 A CN 1992605A CN 200510132865 CN200510132865 CN 200510132865 CN 200510132865 A CN200510132865 A CN 200510132865A CN 1992605 A CN1992605 A CN 1992605A
Authority
CN
China
Prior art keywords
network
communication
message window
customer end
client
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
Application number
CN 200510132865
Other languages
Chinese (zh)
Other versions
CN1992605B (en
Inventor
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2005101328654A priority Critical patent/CN1992605B/en
Publication of CN1992605A publication Critical patent/CN1992605A/en
Application granted granted Critical
Publication of CN1992605B publication Critical patent/CN1992605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a building and maintaining client network connection method, used to solve the problem that, in existing IM technology, when closing the information window corresponding to the client, the client's network connection also disconnects. In the invention, any part of the network connecting two parts captures the closed operation of the information window corresponding to other counterpart, if the two parts still maintain network connection, then hidden the information window, and continue to maintain the network connection, so users can resume at any time the information window for multimedia exchange and communication, greatly convenient to the process of the users to use IM software to communicate, and meanwhile, saving a lot of time for users, significantly improving the efficiency of the users to effectively use the network connection.

Description

Method of network connection between a kind of foundation and the maintenance client
Technical field
The present invention relates to instant messaging, relate in particular to a kind of foundation and keep method of network connection between the client.
Background technology
Network instant communication instrument (as Tencent QQ, the TM of Tengxun, the MSN of Microsoft and the POPO of Netease) develops into today, accepted by most netizen, and become an indispensable part in user's daily life gradually, instant communication software not only is used in user's the work, equally also a large amount of uses can realize carrying out instant effectively communication with the contact person by the instant communication software user in user's life.In user and good friend get in touch, not only need the communication of plain text, equally also need the communication way that enriches, therefore multimedia communication way such as video, audio frequency and file transfer have all appearred in various instant communication softwares, the communication way of this real-time interactive needs to set up corresponding network between user and the good friend and is connected, just can carry out the transmission of corresponding data bag, so the network connection is to carry out the necessary condition that multimedia is linked up between the user.In the instant communication software appearance of multimedia communication way greatly convenient exchanges and communication between the user, both a large amount of time and expense had been saved for the user, convenient communication way fast is provided also for simultaneously the contact between the user, has become and utilized instant communication software to carry out an indispensable part in the exchanges and communication process between the user.
See also Fig. 1, this figure sets up the flow chart that network connects by instant communication software in the prior art, and its main process is:
Step S10, customer end A are initiated network connecting request to customer end B, and the identification information of network connecting request protocol command and customer end A and customer end B is combined in the packet, and packet is carried out sending to instant communication server after the encryption;
Step S11, instant communication server receive the packet that customer end A sends, packet is decrypted parse operation, confirm this packet be extract behind the network connecting request protocol command packet wherein customer end A and the identification information of customer end B, identification information by customer end B is inquired about the dynamic IP addressing that logon server obtains customer end B, and instant communication server is transmitted to customer end B according to the dynamic IP addressing of customer end B with the network connecting request packet;
After step S12, customer end B are received the packet of instant communication server transmission, packet is decrypted parsing, obtain the identification information of network connecting request message and customer end A, customer end B is judged the current message window handle that whether has corresponding customer end A, if, execution in step S13, otherwise, execution in step S14;
Step S13, in the message window of the corresponding customer end A of customer end B side, show the information of the network connecting request of receiving customer end A, change step S15;
Step S14, customer end B utilize Windows window api function to generate the message window of corresponding customer end A, and the information that shows the network connecting request of receiving customer end A in this message window is changeed step S15;
Step S15,, customer end B is accepted this network connecting request, sets up network with customer end A and is connected.
Message window is connected with network and has certain coupling relation in the prior art, set up after network is connected in customer end A and customer end B, if in customer end A and the customer end B either party closed the message window of corresponding opposite end, then customer end A is connected also with network between the customer end B and disconnects simultaneously, if customer end A wishes that with either party client in the customer end B continuing to carry out network with the other side is connected, can only rebulid network with the other side by the mode of initiating network connecting request again is connected, thereby caused very big inconvenience to the user, had a strong impact on user's experience.
In addition, in the prior art, when client receives the other side's video connection request, if the current message window that does not have corresponding opposite end, then client generates and ejects the message window of corresponding opposite end automatically, and the mode of this automatic Pop-up message window causes certain interference to client easily.
Summary of the invention
The invention provides a kind of foundation and keep method of network connection between the client, when in instant communication process, closing the message window corresponding, be connected the problem that also can disconnect simultaneously with the network of client with client in order to solve prior art.
The inventive method comprises:
Method of network connection between a kind of foundation and the maintenance client comprises step:
A, first communication customer end are opened mutual corresponding message window respectively with the second communication client, and set up the network connection;
B, when first communication customer end or second communication client capture shutoff operation to described message window, keep if described network connects still, then hide this message window, and continue to keep described network to connect.
Among the described step B, when the shutoff operation that captures described message window, whether judge between first communication customer end and the second communication client keeps network to be connected, if, then show the information that whether continues to keep the network connection, otherwise, close described message window, disconnect described network simultaneously and connect.
Among the described step B,
When the feedback message of described prompting message connects for continuing the described network of maintenance, hide described message window, and continue to keep described network connection;
When the feedback message of described prompting message connects for disconnecting described network, close described message window, disconnect described network simultaneously and connect.
Among the described step B, when hiding described message window, write down described message window handle and its clients corresponding mapping relations between identifying;
When first communication customer end captures at the operation of the recovery message window of second communication client, or the second communication client is when capturing at the operation of the recovery message window of first communication customer end, according to described operation at client identification obtain its corresponding message window handle, if this message window handle is effective, then recover to show corresponding message window.
Described network connects in the maintenance process, shows the information that is connected with opposite end maintenance network on the user interface of first communication customer end and second communication client.
Also comprise step before the described steps A:
First communication customer end sends network connecting request to the second communication client, shows the information that is sending network connecting request simultaneously;
The second communication client shows the network connecting request that receives with the information form, and selects to accept this request.
Described steps A specifically comprises step:
Described first communication customer end is opened the message window corresponding with the second communication client, and sends network connecting request to the second communication client;
The second communication client shows the network connecting request that receives with the information form, and selects to accept this request, opens the message window corresponding with first communication customer end simultaneously, sets up network with first communication customer end and is connected.
Described network connects and comprises that video connects, audio frequency connects and file transfer connects.
Beneficial effect of the present invention is as follows:
The present invention has effectively separated message window and the video in the instant communication software, the coupled relation of network such as voice or file transfer connection procedure, when network connects among the both sides either party and carries out the operation of close message window, message window is hidden, and continuation keeps voice, the network connection procedure of video or file transfer, make the user can recover message window at any time and carry out multimedia exchanges and communication, have great convenience for the user the process of using instant communication software to exchange, also for the user has saved a large amount of time, greatly improved the efficient that the user effectively utilizes network to connect simultaneously.
Description of drawings
Fig. 1 is for setting up the flow chart that network connects by instant communication software in the prior art;
Fig. 2 is first kind of flow chart of setting up method of network connection between the client of the present invention;
Fig. 3 receives shown prompt window schematic diagram behind the video connection request for client;
Fig. 4 is an information of setting up the network connection that shows after video connects on client user interface;
Fig. 5 is second kind of flow chart of setting up method of network connection between the client of the present invention;
Fig. 6 continues to keep the flow chart of network connection when the close message window for the present invention.
Embodiment
The present invention is directed to the defective of prior art, propose in a kind of instant messaging process when closing the message window corresponding with client, be connected the processing mode that still continues maintenance with the network of client, thereby effectively separated the coupled relation that message window is connected with network, improved the efficient that the user utilizes network to connect.Below in conjunction with accompanying drawing main realization principle of the present invention and embodiment thereof are explained in detail.
See also Fig. 2, this figure is first kind of flow chart of setting up method of network connection between the client of the present invention, and its main implementation procedure is:
Step S20, first communication customer end are opened and the corresponding message window of second communication client, initiate network connecting request to the second communication client, first communication customer end is combined to network connecting request message, the identification information of self and the identification information of second communication client in the packet, after packet carried out encryption, utilize the socket port with the instant communication server agreement to send it to instant communication server;
Described network connecting request comprises video connection request, audio frequency connection request and file transfer connection request.
Step S21, instant communication server receive the packet that first communication customer end sends, packet is decrypted and parse operation, after confirming that this packet is network connecting request protocol command packet, therefrom parse the identification information of first communication customer end and second communication client, instant communication server obtains its dynamic IP addressing according to the identification information inquiry logon server of second communication client, transmits the network connecting request packet of first communication customer end according to this dynamic IP addressing to it.
Step S22, second communication client receive the packet that instant communication server sends at the socket port of agreement, to packet be decrypted with dissection process after, parse wherein the network connecting request protocol command and the identification information of first communication customer end, the second communication client ejects the network connecting request that prompt window receives in order to demonstration, Figure 3 shows that first communication customer end when the second communication client sends the video connection request, the schematic diagram of the video connection request prompt window that is ejected;
The preset height of prompt window and predetermined width are respectively nHeigth and nWidth, the second communication client utilizes Windows system api function to obtain the Point1 coordinate information (the Point data structure comprises abscissa numerical value nX and ordinate nY) in the current screen lower right corner and the altitude information that current task is blocked, can calculate the position data of prompt window upper left corner Point2 according to above-mentioned information, then:
Point2.nX=Point1.nX-nWidth;
Point2.nY=Point1.nY-nHeight-current task hurdle height;
Position data according to the prompt window upper left corner Point2 that calculates, utilize the Windows window to generate api function CreateWindow and generate height, in this prompt window, show the network connecting request that receives for nHeigth, width prompt window for nWidth.
The click message of step S23, prompt window response Windows system, obtain the position of current click by Windows click message parameter, utilize the relevant api function of Windows rectangle to judge whether the click position is arranged in the rectangular area of " acceptance " or " refusal " button, if be arranged in the rectangular area of " acceptance " button, execution in step S24 then, if be arranged in the rectangular area of " refusal " button, execution in step S25 then, if neither be, then continue response click message.
Step S24, second communication client utilize Windows window api function to create the message window of corresponding first communication customer end, set up and be connected with the network of first communication customer end, the second communication client is utilized Windows Socket (socket) API affirmation current network to connect and has been set up success, can utilize this network to connect and carry out data packet transmission.
Connect in the maintenance process at network, the corresponding information that keeps network to be connected with the opposite end that shows of the picture mark position of corresponding opposite end on the user interface of first communication customer end and second communication client Figure 4 shows that first communication customer end and second communication client set up video and be connected prompts displayed information in user interface separately afterwards.
Step S25, second communication client will be refused to accept network connecting request protocol command, the identification information of self and the identification information of first communication customer end and be combined in the packet, this packet is sent to instant communication server, instant messaging receives and is confirmed to be refusal behind this packet and accepts network and connect protocol command, this packet is transmitted to first communication customer end, after first client is received this packet, the unaccepted information of display network connection request on user interface.
In the said process, first communication customer end is initiating must to open the message window corresponding with the second communication client earlier before network connects, promptly before network connecting request is not accepted, the message window corresponding with the second communication client also must be opened always, and when some network connecting request is unaccepted, this message window will bring certain interference to the user, therefore, among the present invention before the network connecting request of first communication customer end is accepted by the second communication client, first communication customer end can not opened the message window corresponding with the second communication client earlier, by the time network connecting request is just opened the message window corresponding with the second communication client after being accepted.See also Fig. 5, this figure is second kind of flow chart of setting up method of network connection between the client of the present invention, and its main implementation procedure is:
Step S50, first communication customer end are initiated network connecting request to the second communication client, network connecting request message, the identification information of self and the identification information of second communication client are combined in the packet, after packet carried out encryption, utilize the socket port with the instant communication server agreement to send it to instant communication server;
First communication customer end is in the process that the request network connects, by obtaining the picture mark position information of second communication client on user interface, utilize the drafting of drawing function DrawTaxt corresponding icon position and show the information that is sending network connecting request.
Step S51 repeats no more to step S53, identical to step S23 with above-mentioned steps S21.
Step S54, second communication client utilize Windows window api function to create the message window of corresponding first communication customer end, first communication customer end utilizes Windows window api function to create the message window of corresponding second communication client simultaneously, setting up network between second communication client and first communication customer end is connected, the second communication client is utilized Windows Socket (socket) API affirmation current network to connect and has been set up success, can utilize this network to connect and carry out data packet transmission.
Network connects in the maintenance process, the corresponding information that is connected with opposite end maintenance network that shows of picture mark position of corresponding opposite end on the user interface of first communication customer end and second communication client.
Step S55, second communication client will be refused to accept network connecting request protocol command, the identification information of self and the identification information of first communication customer end and be combined in the packet, this packet is sent to instant communication server, instant messaging receives and is confirmed to be refusal behind this packet and accepts network and connect protocol command, this packet is transmitted to first communication customer end, after first client is received this packet, the unaccepted information of display network connection request on user interface.
Among the present invention, when first communication customer end or second communication client capture shutoff operation to described message window, if the maintenance network is connected between current first client and second client, then first communication customer end or second communication client can be hidden the message window of corresponding opposite end, and continue to keep being connected with the other side's network.See also Fig. 6, this figure is the present invention continues to keep the network connection when the close message window a flow chart, and its main implementation procedure is:
Step S60, when first communication customer end or second communication client capture the windows messaging WM_CLOSE of the message window of closing corresponding opposite end, first communication customer end or second communication client judge that being connected current whether the continuation with the other side's network keeps, if, execution in step S61, otherwise, execution in step S64.
Step S61, first communication customer end or second communication client show whether continue the information that keeps network to connect, if the user selects to continue to keep network to connect, and execution in step S62 then, otherwise, execution in step S64.
Step S62, Windows window show that the parameter of api function ShowWindow is set to SW_HIDE, promptly the message window of corresponding opposite end is hidden demonstration, set up the Map mapping relations data structure between this message window handle and its clients corresponding sign simultaneously, the mapping relations of message window handle and client identification are added in the Map relation table preserve;
In the hiding process of message window, first communication customer end is connected always with network between the second communication client and keeps.
Step S63, when first communication customer end captures at the operation of the recovery message window of second communication client, or the second communication client is when capturing at the operation of the recovery message window of first communication customer end, according to described operation at client identification query steps S62 in the Map relation table set up, obtain its corresponding message window handle, if this message window handle effectively then description messages window is in hidden state, utilize the Windows window to show api function ShowWindow, it is SW_RESTORE that this function parameters is set, and can recover to show corresponding message window.
Step S64, utilize Windows Sockets (socket) api function to close current network to connect, and connect the notification message be disconnected by the instant communication server transmission network and give the opposite end, utilize drawing function DrawTaxt that icon position, corresponding opposite end on the user interface is repainted simultaneously, no longer display reminding information.
In sum as can be known, the present invention has effectively separated message window and the video in the instant communication software, the coupled relation of network such as voice or file transfer connection procedure, when network connects among the both sides either party and carries out the operation of close message window, message window is hidden, and continuation keeps voice, the network connection procedure of video or file transfer, make the user can recover message window at any time and carry out multimedia exchanges and communication, have great convenience for the user the process of using instant communication software to exchange, also for the user has saved a large amount of time, greatly improved the efficient that the user effectively utilizes network to connect simultaneously.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (9)

1, method of network connection between a kind of foundation and the maintenance client is characterized in that, comprises step:
A, first communication customer end are opened mutual corresponding message window respectively with the second communication client, and set up the network connection;
B, when first communication customer end or second communication client capture shutoff operation to described message window, keep if described network connects still, then hide this message window, and continue to keep described network to connect.
2, the method for claim 1 is characterized in that,
Among the described step B, when the shutoff operation that captures described message window, whether judge between first communication customer end and the second communication client keeps network to be connected, if, then show the information that whether continues to keep the network connection, otherwise, close described message window, disconnect described network simultaneously and connect.
3, method as claimed in claim 2 is characterized in that,
Among the described step B,
When the feedback message of described prompting message connects for continuing the described network of maintenance, hide described message window, and continue to keep described network connection;
When the feedback message of described prompting message connects for disconnecting described network, close described message window, disconnect described network simultaneously and connect.
4, the method for claim 1 is characterized in that,
Among the described step B, when hiding described message window, write down described message window handle and its clients corresponding mapping relations between identifying.
5, method as claimed in claim 4 is characterized in that,
Also comprise step behind the described step B:
When first communication customer end captures at the operation of the recovery message window of second communication client, or the second communication client is when capturing at the operation of the recovery message window of first communication customer end, according to described operation at client identification obtain its corresponding message window handle, if this message window handle is effective, then recover to show corresponding message window.
6, the method for claim 1 is characterized in that, described network connects in the maintenance process, shows the information that is connected with opposite end maintenance network on the user interface of first communication customer end and second communication client.
7, the method for claim 1 is characterized in that,
Also comprise step before the described steps A:
First communication customer end sends network connecting request to the second communication client, shows the information that is sending network connecting request simultaneously;
The second communication client shows the network connecting request that receives with the information form, and selects to accept this request.
8, the method for claim 1 is characterized in that, described steps A specifically comprises step:
Described first communication customer end is opened the message window corresponding with the second communication client, and sends network connecting request to the second communication client;
The second communication client shows the network connecting request that receives with the information form, and selects to accept this request, opens the message window corresponding with first communication customer end simultaneously, sets up network with first communication customer end and is connected.
9, the method for claim 1 is characterized in that, described network connects and comprises that video connects, audio frequency connects and file transfer connects.
CN2005101328654A 2005-12-27 2005-12-27 Process for establishing and keeping network connection between client ends Active CN1992605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005101328654A CN1992605B (en) 2005-12-27 2005-12-27 Process for establishing and keeping network connection between client ends

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005101328654A CN1992605B (en) 2005-12-27 2005-12-27 Process for establishing and keeping network connection between client ends

Publications (2)

Publication Number Publication Date
CN1992605A true CN1992605A (en) 2007-07-04
CN1992605B CN1992605B (en) 2010-12-15

Family

ID=38214571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005101328654A Active CN1992605B (en) 2005-12-27 2005-12-27 Process for establishing and keeping network connection between client ends

Country Status (1)

Country Link
CN (1) CN1992605B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999383A (en) * 2011-09-16 2013-03-27 中兴通讯股份有限公司 Processing method and device for disconnecting virtual desktop
CN103618960A (en) * 2013-11-28 2014-03-05 乐视网信息技术(北京)股份有限公司 Method for calling TV version and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407708C (en) * 2003-08-27 2008-07-30 腾讯科技(深圳)有限公司 Voice frequency/video frequency share method and system in instantaneous communication

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999383A (en) * 2011-09-16 2013-03-27 中兴通讯股份有限公司 Processing method and device for disconnecting virtual desktop
CN102999383B (en) * 2011-09-16 2018-09-28 中兴通讯股份有限公司 Disconnect the treating method and apparatus of virtual desktop
CN103618960A (en) * 2013-11-28 2014-03-05 乐视网信息技术(北京)股份有限公司 Method for calling TV version and electronic equipment

Also Published As

Publication number Publication date
CN1992605B (en) 2010-12-15

Similar Documents

Publication Publication Date Title
CN100428126C (en) Method for editing picture in customer end contents transmission window and customer end
US8724622B2 (en) System and method for instant VoIP messaging
RU2571595C2 (en) User input back channel for wireless displays
CN101047605A (en) Remote control method and system
CN1867012A (en) Method for remote controlling computer based on intelligent mobile phone platform
CN104348878A (en) Method, device and system for remotely controlling mobile terminal as well as mobile terminal
CN101030843A (en) Method for converting multi-medium conference controlling mode
CN1941748A (en) Group message transmitting method, transmitting end and system
CN1448019A (en) On time speech information
CN101047521A (en) Method for playing network media file by customer terminal and customer terminal
CN101047511A (en) File transmission method and system
CN1866258A (en) Data-sharing system and data-sharing method
CN104521180A (en) Unified communication-based video conference call method, device and system
CA2546952A1 (en) Remote network management system
CN111988471B (en) Wireless phone system, wireless communication method and readable storage medium
WO2008097273A9 (en) Usb based virtual media system
US8370525B2 (en) Transmitting new data format under existing infrastructure
EP3133807A2 (en) Apparatus, system, and method of controlling display image, and carrier means
CN101883059A (en) Method for automatically receiving group messages on web page
CN104954724A (en) Video call switching method, intelligent television terminal, mobile terminal and system
CN1992605A (en) Process for establishing and keeping network connection between client ends
CN1622620A (en) A multi-screen display method of multi-point videoconference on Internet
US20040184096A1 (en) Legacy fax service system in home network and method thereof
CN109104774B (en) Data transmission method and system
US20040003044A1 (en) Multi-channel media streaming and distribution system and associated methods

Legal Events

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