CN100469062C - Method for realizing instant message transfer and instant communication server - Google Patents

Method for realizing instant message transfer and instant communication server Download PDF

Info

Publication number
CN100469062C
CN100469062C CNB2005101304217A CN200510130421A CN100469062C CN 100469062 C CN100469062 C CN 100469062C CN B2005101304217 A CNB2005101304217 A CN B2005101304217A CN 200510130421 A CN200510130421 A CN 200510130421A CN 100469062 C CN100469062 C CN 100469062C
Authority
CN
China
Prior art keywords
message
client identification
instant
transfers
communication server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2005101304217A
Other languages
Chinese (zh)
Other versions
CN1980197A (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 CNB2005101304217A priority Critical patent/CN100469062C/en
Publication of CN1980197A publication Critical patent/CN1980197A/en
Application granted granted Critical
Publication of CN100469062C publication Critical patent/CN100469062C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention realizes instant message to be transferred and received among multiple ID at client ends. Corresponding message transfer client end ID is setup in instant communication server (ICS) for client end ID in advance. When having received instant message to a receiving end with client end ID of setting up message transfer option, if the receiving client end ID is in off line state, and corresponding message transfer client end ID is in on state, then ICS sends the instant message to the message transfer client end ID so as to realize transferring and receiving instant message. The invention makes user with multiple contacts corresponding to multiple client end Id possible to carry out instant communication swimmingly, providing users better operation experiences.

Description

Realize method and instant communication server that instant message shifts
Technical field
The present invention relates to instant messaging, relate in particular to a kind of instant message of realizing and shift method and the instant communication server that receives.
Background technology
The network instant communication instrument develops into today, is accepted and approve by most netizen, becomes an indispensable part in numerous netizens' life, is used widely not only in amusement and recreation at ordinary times, and in user's work.
The user can realize carrying out instant effectively communication with the contact person by JICQ, use the growth of JICQ time along with the user, a user may have a plurality of client identifications (as the Tencent QQ number, the MSN of Microsoft account number etc.), the user can wish to use at work a client identification, and in free life, use the another one client identification, why the user can have a plurality of client identifications, one may be the reason owing to the individual, the another one reason is owing to the growth along with the time, contact person's quantity has surpassed the upper limit of JICQ, for example contact person's upper limit is 500 people in Tencent QQ, and be 300 people in the MSN of Microsoft, have to apply for therefore that plural client identification gets in touch with the contact person.
When the user has a plurality of client identification owing to the number of contacts limitation reason of individual reason or JICQ, in general if guarantee to link up smoothly with the corresponding All Contacts of these client identifications, can only on a PC device, login a plurality of client identifications simultaneously, after user's logging on client sign, transmission has the packet of local IP and PORT port and registers to server, when the contact person of this client identification correspondence sends message, carry out the forwarding of message according to this client identification at the IP and the PORT port of server registers, the client identification clients corresponding is carried out the parsing of message and is carried out the demonstration and the storage of message, client is by the timed sending message packets, keep with server between be connected, the JICQ of a plurality of client identifications logins utilizes different sockets to carry out the reception and the transmission of message.
Some JICQ has limited a PC device and can only login by a client identification, the MSN of Microsoft for example, in this case, the user if desired with a plurality of MSN account numbers on the contact person link up smoothly, can only go up this MSN account number of login for a moment, login that MSN account number for a moment, thereby caused great not convenient to the user.Even can login the JICQ of a plurality of client identifications simultaneously for a PC device, for example Tencent QQ, the TM of Tengxun or the PoPo of Netease etc., login a plurality of client identifications simultaneously and also can have a strong impact on the normal operation of machine, and the user also can bring the problem of being disturbed by the contact person in a plurality of client identifications if login a plurality of client identifications simultaneously.
Summary of the invention
The invention provides a kind of method and instant communication server of realizing that instant message shifts, receive to realize the transfer of instant message between a plurality of client identifications.
The inventive method comprises:
A kind of method that realizes that instant message shifts comprises step:
A, in instant communication server, corresponding message transfers client identification is set for client identification;
When B, instant communication server are received and are recipient's instant message with described client identification, be in off-line state if receive client identification, and corresponding message transfers client identification is in line states, and then instant communication server sends described instant message to described message transfers client identification.
Also comprise in the described steps A: the contact person that all or part of contact person of the correspondence of client identification described in the instant communication server is set to implement message transfers.
Described step B is specially: when instant communication server is received and is recipient's instant message with described client identification, be in off-line state if receive client identification, and corresponding message transfers client identification is in line states, then instant communication server judges whether the transmit leg of described instant message is the contact person of described enforcement message transfers, if, then send described instant message to described message transfers client identification, otherwise, wait for that described reception client identification login back sends described instant message to it.
Also comprise among the described step B:
If described reception client identification is in line states, then instant communication server sends described instant message to this reception client identification.
Also comprise among the described step B:
If described reception client identification and corresponding message transfers client identification all are in off-line state, then instant communication server waits for that described reception client identification login back sends described instant message to it.
A kind of instant communication server comprises the message sink module, is used to receive the instant message that instant communication client sends, and also comprises:
Message transfers is provided with module, is used to client identification to carry out the message transfers setting, comprising the client that is used to client identification that corresponding message transfers client identification is set submodule is set;
The message transfers judge module, with message transfers module is set and the message sink module is connected respectively, be used to judge whether that the instant message that the message receiver module is received implements message transfers, judge comprising being used to whether the reception client identification of instant message is in off-line state, and whether corresponding message transfers client identification is in the state judgement submodule of line states;
Message transmission module is connected with the message transfers judge module, is used for sending described instant message according to the judged result of message transfers judge module.
Described message transfers is provided with module and also comprises:
The contact person is provided with submodule, with client submodule is set and is connected, and is used for carrying out the contact person that all or part of contact person of the client identification correspondence of message transfers setting is set to implement message transfers.
Described message transfers judge module also comprises:
The contact person judges submodule, judges that with state submodule is connected, and is used to judge whether the transmit leg of described instant message is the contact person of described enforcement message transfers.
Beneficial effect of the present invention is as follows:
The present invention is by being provided with corresponding message transfers client identification for client identification in advance in instant communication server, receive when being recipient's instant message at instant communication server with the client identification that carries out the message transfers setting, if this reception client identification is in off-line state, and message transfers client identification corresponding with it is in line states, then instant communication server sends this instant message to the message transfers client identification, thereby the transfer that has realized instant message receives, can make between the user contact person corresponding and carry out smooth and easy instant communication, for the user provides better operating experience with a plurality of client identifications.
Description of drawings
Fig. 1 is for carrying out the flow chart that message transfers is provided with in the embodiment of the invention one;
Fig. 2 is a flow chart of realizing the method that instant message shifts in the embodiment of the invention one;
Fig. 3 is the main composition frame chart of instant communication server in the embodiment of the invention one;
Fig. 4 is for carrying out the flow chart that message transfers is provided with in the embodiment of the invention two;
Fig. 5 is a flow chart of realizing the method that instant message shifts in the embodiment of the invention two;
Fig. 6 is the main composition frame chart of instant communication server in the embodiment of the invention two.
Embodiment
Instant communication server does not support instant message to shift setting in the prior art, make the user have under the situation of a plurality of client identifications, can only adopt the mode of a plurality of client identifications of login on same PC device to come the contact person corresponding to carry out instant messaging with the different clients sign, thereby caused serious pressure for the PC device, had a strong impact on user's operating experience.
For this reason, the present invention is by carrying out the message transfers setting to client identification in advance in instant communication server, make instant communication server receive when being recipient's instant message with the client identification that carries out the message transfers setting, meet the message transfers condition if judge it, then send this instant message to the message transfers client identification that sets in advance.
Embodiment one:
In the present embodiment, the present invention is by being provided with corresponding message transfers client identification for client identification in advance in instant communication server, receive when being recipient's instant message at instant communication server with the client identification that carries out the message transfers setting, if this reception client identification is in off-line state, and message transfers client identification corresponding with it is in line states, and then instant communication server sends this instant message to the message transfers client identification.
See also Fig. 1, this figure carries out the flow chart that message transfers is provided with in the embodiment of the invention one, and its main implementation procedure is:
Step S10, in advance in the User Information Database of instant communication server for client identification is provided with corresponding message transfers client identification field, be used for recording user and shift and hour hands are set carrying out instant message the corresponding message transfers client identification that is provided with of a certain client identification.
If for client identification is provided with corresponding message transfers client identification field, then above-mentioned steps S10 can omit, and only comprises the steps: in the instant communication server
Step S11, carry out the message transfers setting operation after user's success access of instant communicating client, at instant communication client input message transfers client identification and password to identifying, instant communication client is with the client identification of the current login of user, message type field, the message transfers client identification of user input and to the password combination that should identify in packet, packet cipher mode is by appointment encrypted, utilize the IP address and the PORT port of agreement to generate transmission protocol command socket, utilize this socket that this packet is sent to instant communication server.
Step S12, instant communication server receive the packet that instant communication client sends in the asynchronous wait of the socket of agreement, instant communication server is decrypted and parse operation the packet that receives, extract message type field, judge whether this data packet message type is that message transfers is provided with packet, if, execution in step S13, otherwise, execution in step S16.
Step S13, instant communication server extract the user and wish that the message transfers client identification that is provided with reaches the password to identifying from packet, whether the checking messages sent by users shifts the password of client identification correspondence correct, if correct, execution in step S14, otherwise, execution in step S15.
Step S14, instant communication server utilize database to write statement and messages sent by users is shifted client identification write in the corresponding message transfers client identification field of its logging on client sign, so that the follow-up message transfers of carrying out, after writing successfully, instant communication server sends the packet that message transfers successfully is set to the instant communication client of the current login of user.
Step S15, instant communication server are to the instant communication client of the current login of the user packet that sends a notification message, and the prompting user message shifts client identification and password not match closes, and please reset.
Step S16, instant communication server carry out respective handling according to the processing mode of other type of messages.
See also Fig. 2, this figure is a flow chart of realizing the method that instant message shifts in the embodiment of the invention one, and its main implementation procedure is:
It is recipient's instant message that step S20, instant communication server receive with the client identification that carries out the message transfers setting.
The current off-line state that whether is in of reception client identification of step S21, instant communication server inquiry instant message, if, execution in step S22, otherwise, execution in step S26.
Step S22, instant communication server inquiry and the current line states that whether is in of the corresponding message transfers client identification of this reception client identification, if, execution in step S23, otherwise, execution in step S27.
Step S23, instant communication server are inquired about the IP address and the PORT port of this current place of message transfers client identification client, utilize this IP address and PORT port to generate and send socket.
Step S24, instant communication server are combined to instant message content, message type field, former message receiver client identification, message sender client identification in the packet, packet cipher mode is by appointment encrypted, utilized the socket that generates among the step S23 that this packet is sent to the current place of message transfers client identification client.
The client at step S25, the current place of message transfers client identification receives the packet that instant communication server sends, packet is decrypted and dissection process, the content that on the client at the current place of message transfers client identification, shows instant message, and to this instant message of user prompt for shifting back message, simultaneously to the former message receiver client identification of this instant message of user prompt.
Step S26, instant communication server send this instant message to receiving client identification.
Step S27, instant communication server wait for that receiving client identification login back sends described instant message to it.
Correspondingly, also provide a kind of instant communication server in the present embodiment, seen also Fig. 3, this figure is the main composition frame chart of instant communication server in the embodiment of the invention one, and it mainly comprises:
The message sink module is used to receive the instant message that instant communication client sends.
Message transfers is provided with module, is used to client identification to carry out the message transfers setting, comprising client submodule is set, and is used to client identification that corresponding message transfers client identification is set.
The message transfers judge module, with message transfers module is set and the message sink module is connected respectively, be used to judge whether that the instant message that the message receiver module is received implements message transfers, judge submodule comprising state, be used to judge whether the reception client identification of instant message is in off-line state, and whether corresponding message transfers client identification is in line states.
Message transmission module is connected with the message transfers judge module, is used for sending described instant message according to the judged result of message transfers judge module.
Embodiment two:
Compare with embodiment one, present embodiment further carries out the contact person that all or part of contact person of the client identification correspondence of message transfers setting is set to implement message transfers in instant communication server, receive when being recipient's instant message at instant communication server with the client identification that carries out the message transfers setting, if the reception client identification of this instant message is in off-line state, and corresponding message transfers client identification is in line states, and the transmit leg of this instant message is for implementing the contact person of message transfers, and then instant communication client sends this instant message to the message transfers client identification.
See also Fig. 4, this figure carries out the flow chart that message transfers is provided with in the embodiment of the invention two, and its main implementation procedure is:
Step S30 is to step S36, identical to step S16 with above-mentioned steps S10.
Step S37, receive the packet that message transfers successfully is set at the instant communication client of the current login of user after, the contact person that all or part of contact person of the client identification correspondence of the current login of user is set to implement message transfers, the instant message that promptly has only these contact persons to send just can carry out the transfer of message.
The protocol command that the instant communication client of step S38, the current login of user will be implemented the contacts list of message transfers and the contact person who implements message transfers is set is combined in the packet, sends to instant communication server.
Step S39, instant communication server receive this packet, the deciphering and resolve successfully after, extract the contacts list of implementing message transfers, it is write in the User Information Database client identification of corresponding current login preserves, after writing successfully, send the client of the notification message of success to the current login of user is set.
See also Fig. 5, this figure is a flow chart of realizing the method that instant message shifts in the embodiment of the invention two, and its main implementation procedure is:
It is recipient's instant message that step S40, instant communication server receive with the client identification that carries out the message transfers setting.
The current off-line state that whether is in of reception client identification of step S41, instant communication server inquiry instant message, if, execution in step S42, otherwise, execution in step S47.
Step S42, instant communication server inquiry and the current line states that whether is in of the corresponding message transfers client identification of this reception client identification, if, execution in step S43, otherwise, execution in step S48.
Receive the contacts list of the enforcement message transfers of client identification correspondence described in step S43, the instant communication server searching user's information database, travel through this tabulation, whether the transmit leg of judging instant message is present in this tabulation, if exist, execution in step S44, otherwise, execution in step S48.
Step S44 is to step S46, identical to step S25 with above-mentioned steps S23.
Step S47, identical with above-mentioned steps S26.
Step S48, identical with above-mentioned steps S27.
Correspondingly, also provide a kind of instant communication server in the present embodiment, seen also Fig. 6, this figure is the main composition frame chart of instant communication server in the embodiment of the invention two, and it mainly comprises:
The message sink module is used to receive the instant message that instant communication client sends.
Message transfers is provided with module, be used to client identification to carry out the message transfers setting, submodule is set and the contact person is provided with submodule comprising client, client is provided with submodule and is used to client identification that corresponding message transfers client identification is set, the contact person is provided with submodule and with client submodule is set and is connected, and is used for carrying out the contact person that all or part of contact person of the client identification correspondence of message transfers setting is set to implement message transfers.
The message transfers judge module, with message transfers module is set and the message sink module is connected respectively, be used to judge whether that the instant message that the message receiver module is received implements message transfers, judge that comprising state submodule and contact person judge submodule, state judges that submodule is used to judge whether the reception client identification of instant message is in off-line state, and whether corresponding message transfers client identification is in line states, the contact person judges that submodule and state judgement submodule are connected, and are used to judge whether the transmit leg of described instant message is the contact person of described enforcement message transfers.
Message transmission module is connected with the message transfers judge module, is used for sending described instant message according to the judged result of message transfers judge module.
In summary it can be seen that the present invention is compared with existing technology, by in instant communication server to the client End sign is carried out the message transfers setting so that instant communication server message transfers arranges receiving to carry out When client identification is recipient's instant message, meet the message transfers condition if judge it, then to establishing in advance Put the message transfers client identification send this instant message, thereby the transfer that has realized instant message connects Receive, have great convenience for the user and the contact person between communication, for the user provides better operating experience.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from this Bright spirit and scope. Like this, if belonging to claim of the present invention, these modifications of the present invention and modification reach The range of its equivalent technologies, then the present invention also be intended to comprise these change and modification interior.

Claims (8)

1, a kind of method that realizes that instant message shifts is characterized in that, comprises step:
A, in instant communication server, corresponding message transfers client identification is set for client identification;
When B, instant communication server are received and are recipient's instant message with described client identification, be in off-line state if receive client identification, and corresponding message transfers client identification is in line states, and then instant communication server sends described instant message to described message transfers client identification.
2, the method for claim 1 is characterized in that, also comprises in the described steps A:
The contact person that all or part of contact person of the correspondence of client identification described in the instant communication server is set to implement message transfers.
3, method as claimed in claim 2 is characterized in that, described step B is specially:
When instant communication server is received and is recipient's instant message with described client identification, be in off-line state if receive client identification, and corresponding message transfers client identification is in line states, then instant communication server judges whether the transmit leg of described instant message is the contact person of described enforcement message transfers, if, then send described instant message to described message transfers client identification, otherwise, wait for that described reception client identification login back sends described instant message to it.
4, the method for claim 1 is characterized in that, also comprises among the described step B:
If described reception client identification is in line states, then instant communication server sends described instant message to this reception client identification.
5, the method for claim 1 is characterized in that, also comprises among the described step B:
If described reception client identification and corresponding message transfers client identification all are in off-line state, then instant communication server waits for that described reception client identification login back sends described instant message to it.
6, a kind of instant communication server comprises the message sink module, is used to receive the instant message that instant communication client sends, and it is characterized in that, also comprises:
Message transfers is provided with module, is used to client identification to carry out the message transfers setting, comprising the client that is used to client identification that corresponding message transfers client identification is set submodule is set;
The message transfers judge module, with message transfers module is set and the message sink module is connected respectively, be used to judge whether that the instant message that the message receiver module is received implements message transfers, judge comprising being used to whether the reception client identification of instant message is in off-line state, and whether corresponding message transfers client identification is in the state judgement submodule of line states;
Message transmission module is connected with the message transfers judge module, is used for sending described instant message according to the judged result of message transfers judge module.
7, server as claimed in claim 6 is characterized in that, described message transfers is provided with module and also comprises:
The contact person is provided with submodule, with client submodule is set and is connected, and is used for carrying out the contact person that all or part of contact person of the client identification correspondence of message transfers setting is set to implement message transfers.
8, server as claimed in claim 7 is characterized in that, described message transfers judge module also comprises:
The contact person judges submodule, judges that with state submodule is connected, and is used to judge whether the transmit leg of described instant message is the contact person of described enforcement message transfers.
CNB2005101304217A 2005-12-09 2005-12-09 Method for realizing instant message transfer and instant communication server Active CN100469062C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101304217A CN100469062C (en) 2005-12-09 2005-12-09 Method for realizing instant message transfer and instant communication server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101304217A CN100469062C (en) 2005-12-09 2005-12-09 Method for realizing instant message transfer and instant communication server

Publications (2)

Publication Number Publication Date
CN1980197A CN1980197A (en) 2007-06-13
CN100469062C true CN100469062C (en) 2009-03-11

Family

ID=38131205

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101304217A Active CN100469062C (en) 2005-12-09 2005-12-09 Method for realizing instant message transfer and instant communication server

Country Status (1)

Country Link
CN (1) CN100469062C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106739B (en) * 2006-07-12 2010-05-26 中国移动通信集团公司 IM message forward method for IM service
CN101360066B (en) * 2007-08-01 2012-12-26 阿里巴巴集团控股有限公司 Instant message forwarding method based on team, instant communication server and customer terminal
CN107864082B (en) * 2016-09-22 2020-08-21 腾讯科技(深圳)有限公司 Message sending method and device
CN108075965A (en) * 2017-12-13 2018-05-25 北京小米移动软件有限公司 Message treatment method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN1980197A (en) 2007-06-13

Similar Documents

Publication Publication Date Title
CN100463405C (en) Communication method and system based on group
CN101159714B (en) Instant communication method and device
CN100419649C (en) System and method for inserting a graphic object into a text based message
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
EP2710776B1 (en) Anonymous signalling
US20050220134A1 (en) Peer-to-peer mobile instant messaging method and device
WO2007007962A1 (en) Messenger notification system and method using synchronization server
CN101594242A (en) A kind of mthods, systems and devices of transmitting video data
US8204526B2 (en) Unified addressing
CN101834936A (en) System and method for implementing instant communication by using mobile phone address book
CN101243381A (en) User interface for conducting chats over a network
CN102307159A (en) Method and apparatus for efficient resending of messages using message id
CN102355509B (en) Method and device for transmitting and receiving message according to mobile number in contact list
CN105391676A (en) Instant communication message processing method, device and system
NO334033B1 (en) An e-mail system, a server and a device for sending and receiving e-mails
CN104620611A (en) Messaging service active device
CN100469062C (en) Method for realizing instant message transfer and instant communication server
CN101562794A (en) Method for transmitting information and communication equipment using same
CN100449994C (en) Method and system for storing session information in instant information business
KR100702704B1 (en) Notification System and Method Using Messenger
US20090024739A1 (en) Endpoint discriminator in network transport protocol startup packets
CN101345742B (en) System and method for instant communication user status display
CN101778052A (en) Method, device and system for sharing communication friend
CN101621479A (en) Method, server and terminal for E-mail transmission
EP1802056B1 (en) Unified addressing system

Legal Events

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