CN103368822A - Identity changing method - Google Patents

Identity changing method Download PDF

Info

Publication number
CN103368822A
CN103368822A CN2013100699469A CN201310069946A CN103368822A CN 103368822 A CN103368822 A CN 103368822A CN 2013100699469 A CN2013100699469 A CN 2013100699469A CN 201310069946 A CN201310069946 A CN 201310069946A CN 103368822 A CN103368822 A CN 103368822A
Authority
CN
China
Prior art keywords
message
mask
guid
client
requestor
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
CN2013100699469A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2013100699469A priority Critical patent/CN103368822A/en
Publication of CN103368822A publication Critical patent/CN103368822A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an identity changing method, comprising the steps that a mask is arranged, aiming at an IMUsr (Instant Message User); when the IMUsr sends information, the identity of the IMUsr is replaced by the arranged mask through a server to which the IMUsr belongs; an information receiver obtains the identity of an information sender to whom the information receiver is more familiar; and therefore the IMUsr can very conveniently select different identities to interact with different user groups. The invention also provides a mask setting method, and dishonest behaviors are prevented from happening in the mask setting process through the method.

Description

The Face Changing method
Technical field
The present invention relates to internet communication, relate to or rather and hide or the communicate by letter method of side's identity of conversion the method for namely assuming a hostile attitude.
Background technology
Application number be 201210041577.8 or " communication means and system " patent of invention of 201310037232X solved the IMS(instantaneous communication system, Instant Messenger System) the problem that interconnects, so that belong to the Internet user (IUsr of different IMS, Internet User) can realize intercoming mutually, thereby make things convenient for the communication of IUsr." shadow code addressing method " patent of invention of 201210041677.0 or the 201310049772.X that application number is can realize global Unified Identity (GUID, Global Unified Identity) with the unification of telephone number shape shadow, so that telecommunications network user (TNUsr, Telecommunication Network User) can apply for a shadow code similar to its phone number, i.e. special GUID, thus made things convenient for its own and other people use.
Described GUID comprises two parts: ownership code (HCode, Home Code) and user code (UCode, User Code).Wherein, HCode indicates this GUID, the IUsr that also namely this GUID is corresponding belongs to instant messaging network (IMN, Instant Messenger Network) which IMS in, also namely belong to the attribution server (HSvr of which IMS, Home Server), UCode is used to indicate different IUsr under the HCode.
If people, zhangsanfeng for example, have a very short GUID, for example QQ number: QQ#333, and the shadow code of its phone number of likeness in form, for example: 86*139*23730285, because this shadow code is oversize, therefore, in the middle of the reality, zhangsanfeng often comes login system with QQ#333.But, its kith and kin but often only the shadow code by zhangsanfeng contact him because this shadow code and its phone number likeness in form, and need not deliberately remove to remember this shadow code.Often complain that kith and kin zhangsanfeng does not login (namely as not login of shadow code user) afterwards yet, zhangsanfeng has to selecting after QQ#333 signs in among the IMS of QQ, select again shadow code 86*139*23730285 to sign in to the IMS of this shadow code ownership, in order to keep information opened with kith and kin.If QQ#333 belongs to different IMS with 86*139*23730285, zhangsanfeng may also will install respectively the client software corresponding to different IMS so, therefore, is very much trouble.
Also have, some, zhugeliang for example, for different life circles, household for example, the classmate, the colleague, different GUID is arranged, in some cases, for example send congratulatory letter red-letter day, zhugeliang wishes simultaneously to send information with a plurality of identity to the friend of a plurality of circles, for example, zhugeliang has the shadow code of a likeness in form phone number, for example 86*139*23568901, shadow code with a likeness in form landline telephone, for example 86*755*82881689 also has a QQ account, for example simultaneously, 123987#99, zhugeliang wishes: can send information for colleague or business partner with the identity of 86*755*82881689, send information with the identity of 86*139*23568901 to kith and kin, send information for online good friend or bean vermicelli with the QQ identity.But in the existing situation, usually, zhugeliang will sign in to respectively just can achieve one's goal among the corresponding IMS with these three GUID and sends information to the user of different circles.Especially, if when these GUID belong to a plurality of IMS, for example, zhugeliang has the QQ number of a Tengxun and the Hi number of a Baidu simultaneously, zhugeliang also will be by the client that fills a plurality of IMS, and like this, zhugeliang uses just very inconvenient.
About the more information of GUID, referring to described " means of communication and system " patent of invention; About the more information of shadow code, referring to described " shadow code addressing method " patent of invention.For avoiding waste technical staff's reading time, back of the present invention is to the no longer repeat specification of quoting generally of related content in these two files.
Summary of the invention
In view of this, the invention provides a kind of Face Changing method, realize according to the method, an IUsr can realize carrying out information interaction with different identity and different user group by mask is set, and is very easy to the communication between the IUsr.
A kind of Face Changing method is characterized in that, HSvr sets in advance mask and owner's corresponding relation, said method comprising the steps of:
B, HSvr receive the message of having carried purpose GUID of the user A transmission that belongs to oneself; According to the mask that arranges and owner's corresponding relation, determine the requestor of message;
C, described HSvr are included in the requestor of described definite message in the described message.
Comprise also in the corresponding relation of described mask and owner's client that the requestor indicates;
In step b, comprise that further the requestor indicates in the described message that user A sends, described according to the mask of setting and owner's corresponding relation, the requestor who determines message further is: according to the requestor's sign that carries in the message, according to the mask that arranges and owner's corresponding relation, determine the requestor of message.
Further comprise step a before the step b: according to the mask that arranges and owner's corresponding relation, set up the corresponding relation of mask and owner's client;
Described step b further is: receive the message of having carried purpose GUID of the user A transmission that belongs to oneself, according to the client that sends this message, according to the mask of setting up and the corresponding relation of owner's client, determine the requestor of message.
Described step a further is: create online record in online user's information table, according to login GUID, according to the mask that arranges and owner's corresponding relation, obtain corresponding mask; The corresponding relation of login GUID, the mask that obtains and owner's client is kept in the online record of establishment;
In step b, comprise that further the requestor indicates in the described message that user A sends; Described client according to sending this message, according to the mask of setting up and the corresponding relation of owner's client, the requestor who determines message further is: according to the client that sends this message, from online user's information table, determine the online record at the requestor place of message;
Described step c further is: judge that described request person sign is whether for being 0, if, then corresponding login GUID in the online record that obtains is included in the described message as the requestor of described message, otherwise, the requestor of corresponding mask in the online record that obtains as described message is included in the described message.
Comprise also in the corresponding relation of described mask and owner's client that the requestor indicates;
In step a, the described corresponding relation of setting up mask and owner's client further carries out according to requestor's sign of corresponding mask;
In step b, comprise that further the requestor indicates in the described message that user A sends, correspondingly, described client according to sending this message, corresponding relation according to mask and owner's client, the requestor who determines message further is: according to the requestor's sign that carries in the client that sends this message and the message, according to the corresponding relation of mask and owner's client, determine the requestor of message.
In step a, described mask is kept in the different tables according to requestor's sign from the corresponding relation of owner's client;
In step b, according to the requestor's sign that carries in the client that sends this message and the message, corresponding relation according to mask and owner's client, the requestor who determines message further is: indicate the mapping table of determining the needs retrieval according to the requestor who carries in the message first, then determine the requestor of message according to the client of this message from determined mapping table.
Further comprise step a before the step b: according to the mask that arranges and owner's corresponding relation, described HSvr produces session identification, sets up the corresponding relation of session identification, mask and owner's client; Described session identification is sent to corresponding owner;
Described step b further is: described HSvr receives the message of having carried session identification and purpose GUID of the user A transmission that belongs to oneself, according to described session identification, according to the corresponding relation of described session identification, mask and owner's client, determine the requestor of message.
The present invention also provides a kind of Face Changing method, and the mask by arranging carries out legitimate verification to requestor's identity that client provides, thereby the Face Changing behavior that guarantees the user is carried out in expection.
A kind of Face Changing method is characterized in that, HSvr sets in advance mask and owner's corresponding relation, said method comprising the steps of:
B, described HSvr receive the message of having carried requestor GUID and purpose GUID of the user A transmission that belongs to oneself;
C, described request person is verified, checking by the time, forward follow-up flow process to, end process when authentication failed; Described checking refers to: according to true request person GUID, carry out according to the mask that arranges and owner's corresponding relation.
Further comprise step a before the step b: according to the mask that arranges and owner's corresponding relation, described HSvr sets up the corresponding relation of mask and owner's client;
Correspondingly, in step c, described checking refers to: according to the client that sends this message, according to the corresponding relation of mask and owner's client described request person is verified.
The present invention also provides a kind of mask method to set up, by the method, prevents the non-honest behavior that occurs in the mask setting up procedure.
A kind of mask method to set up is characterized in that, said method comprising the steps of:
A, HSvr obtain owner and mask after receiving that mask arranges request, then produce password, and the password that produces is sent to described mask;
B, described HSvr receive the affirmation password from described owner or mask;
C, described HSvr judge whether the affirmation password that receives is consistent with the password of generation, if consistent, then preserve described mask according to described owner.
By Face Changing method provided by the invention, IUsr can according to the different masks that arrange, carry out information interaction from different customer groups, thereby reach the purpose of playing the part of a plurality of roles by an IUsr.
Description of drawings
Shown in Figure 1, be the IMN networking diagram that interconnects.
Shown in Figure 2, be Face Changing method General Implementing mode one flow chart.
Shown in Figure 3, be Face Changing method General Implementing mode two flow charts.
Shown in Figure 4, be Face Changing method General Implementing mode three flow charts.
Shown in Figure 5, be many identity terminal schematic diagram.
Shown in Figure 6, be mask setting procedure figure.
Embodiment
The present invention proposes a kind of Face Changing method, by for an IUsr mask (Mask) being set, when this IUsr sends information, its attribution server (HSvr) substitutes the identity of this IUsr with the mask that arranges, thereby, so that the information receiver obtains the more identity of familiar information transmitter of this recipient oneself.Described mask is the GUID of another IUsr.
Specify that the same with institute's patent of carrying in the background, for the ease of reading, the value of the GUID that mentions among the present invention or HCode or UCode when occurring with character string forms, should value cause next not resembling in the actual programming with quotation marks.For example, the GUID that says UsrA is sunquan#qq, and does not say that the GUID of UsrA is " sunquan#qq ".
As shown in Figure 1, be the IMN networking diagram.In the figure, the HSvr of A service provider (SP-A) is HSvr-A, and wherein, registration has user A(UsrA) and user X(UsrX); The HSvr of B service provider (SP-B) is HSvr-B, and wherein, registration has user B(UsrB) and user Y(UsrY); The HSvr of C service provider (SP-C) is HSvr-C, and wherein, registration has user C(UsrC) and user Z(UsrZ).
For ease of understanding, in the description of back, we with, SP-A is that Tengxun, SP-B are that Netease, SP-C are Microsofts, is example.
For example, among the present invention, the corresponding relation of domain name kind HCode and HSvr, and the corresponding relation of international merchant code (IBC, International Business Code) class HCode and HSvr, can be as shown in table 1:
Table 1
HCode The HSvr host IP address Remark
163 The host IP address of HSvr-B HSvr-B
163.com The host IP address of HSvr-B HSvr-B
352 The host IP address of HSvr-C HSvr-C
99 The host IP address of HSvr-A HSvr-A
Hotmail.com The host IP address of HSvr-C HSvr-C
live.com The host IP address of HSvr-C HSvr-C
MSN The host IP address of HSvr-C HSvr-C
QQ The host IP address of HSvr-A HSvr-A
qq.com The host IP address of HSvr-A HSvr-A
WY The host IP address of HSvr-B HSvr-B?
yeah.net The host IP address of HSvr-B HSvr-B
HSvr determines the HSvr of this IUsr ownership according to the HCode of an IUsr according to the corresponding relation of described HCode and HSvr.In the present invention, the HCode of an IUsr refers to the HCode that the GUID of this IUsr is corresponding.
About the corresponding relation that belongs to two tuples (H2T, Home Two-Tuple) and HSvr referring to " shadow code addressing method " patent of invention, for example, can be shown in table 1 in this patent.
Unified each HSvr of agreement is used for setting up tcp server port that SS connects number towards other HSvr, and for example, arranging unified port numbers is 1868.Here, the SS connection refers to that HSvr is to the connection of HSvr.
According to " communication means and system " patent of invention, HSvr carries out without turning to the Message Processing flow process when receiving a request message:
Step 01, judge whether the addressing purpose GUID of this message belongs to oneself, if not, then execution in step 02; Otherwise, execution in step 03.
Step 02, this message is sent to the HSvr of addressing purpose GUID ownership, finish.
Step 03, this message is sent to the corresponding client of addressing purpose GUID.
Like this, a HSvr can send to a GUID with a message, also, according to a GUID described message is sent, and also, described message is sent to client corresponding to this GUID.For example: a HSvr can send to client corresponding to this purpose GUID with this message according to the purpose GUID of a message, that is, when this HSvr when this purpose GUID belongs to oneself, this message is directly sent to client corresponding to this purpose GUID; When this HSvr when this purpose GUID belongs to other HSvr, this message is sent to the HSvr of this purpose GUID ownership, directly this message is sent to client corresponding to this purpose GUID by the HSvr of this purpose GUID ownership.
For a request message, the addressing purpose is the purpose user of message, and source address is the source user of message, i.e. requestor; For an answer message, the addressing purpose is replied the source user of message for this, also is the source user of corresponding requests message, and source address is replied the purpose user of message for this, also is the purpose user of corresponding requests message.Arrange like this, can conveniently reply the structure of message.Send message content referring to UsrA in " communication means and system " patent of invention to UsrB and be the process of " support firmly prime minister send forces to suppress disorderly crafty Liu is standby ".
Specify, carry from background technology that three inventions are different to be, in the present invention, understand flow process of the present invention for the ease of the technical staff, for replying message, the addressing purpose is also with this purpose user who replys message, and this purpose user is actual to be the source user of the request message of correspondence, the i.e. source address of request message.Also namely: for the answer message of a request message, the addressing purpose of described answer message is the purpose user of this answer message, also, is the source user of corresponding requests message; The source address of described answer message is the source user of this answer message, also, is the purpose user of corresponding requests message.
In addition, referring to " diversion treatments method " patent of invention of submitting to simultaneously, when a GUID setting turns to, the message that sends to this GUID will according to the purpose that turns to that arranges, finally be sent to the final recipient of message.
Described HSvr directly sends to a client corresponding to GUID with a message and refers to, HSvr has preserved the corresponding relation of GUID and client, HSvr is according to a GUID, determine corresponding client according to the GUID that preserves and the corresponding relation of client, then this message is sent to this client.For example, HSvr can identify a client with IP address and the port numbers of client.Referring to " communication means and system " patent of invention.
How to carry out information interaction about IUsr and HSvr, and how to carry out information interaction between two HSvr, for example, how an IUsr sends to the HSvr that a HCode belongs to a message, and how a HSvr sends to an IUsr with a message, etc., more information is referring to " communication means and system " patent of invention, and " shadow code addressing method " patent of invention.The present invention no longer selects.
The present invention considers emphatically how HSvr when the message of transmitting from the IUsr client, hides sender's identity.
In order to hide sender of the message's identity, the present invention at first arranges mask information.For example, HSvr-A preserves the corresponding mask of this IUsr according to the GUID of an IUsr, the mask information table that ginseng is shown in Table 2:
Table 2
GUID Mask Remark
sunquan#qq lusu#99 The mask setting of sunquan#qq
zhouyu#99 jianggan@163.com The mask setting of zhouyu#99
Certainly, also can in the accounts information table, increase the mask that the Mask field is preserved an IUsr.
For UsrA, if he sends message will for UsrX or UsrB, so, he at first sends to this message the HSvr that oneself belongs to, i.e. HSvr-A, HSvr-A will be before will sending to UsrX or UsrB from the message of UsrA, from described mask information table, obtain the mask of UsrA, with the requestor of this mask as described message, be included in the described message, then, just carry out the described operation that this message is sent of " communication means and system " patent of invention.Referring to Face Changing method General Implementing mode one flow chart shown in Figure 2.
The present invention claims to have the IUsr of a mask, is the owner of this mask.
For convenience of description the present invention is defined as follows message format one here, but is not used in restriction the present invention:
ToUsr: the purpose user who is used to specify message;
FromUsr: be used to specify the source user of message, i.e. source address;
MsgCode: message code: for example, ShortMsg represents that this is a short message;
MsgContent: message content.
With ToUsr, and FromUsr, MsgCode, this form of MsgContent} represents a message instance, for example: the GUID of UsrB, and the GUID of UsrA, ShortMsg, " happy new year! " " happy new year to the UsrB transmission for expression UsrA! " message instance of short message, wherein, the GUID of ToUsr=UsrB, the GUID of FromUsr=UsrA, MsgCode=ShortMsg, MsgContent=" happy new year! ".
Example one: UsrA is sunquan#qq, has mask lusu#99, and UsrA sends short message to UsrB, and " happy new year! ".
The true sender UsrA of step 1101, message will carry the requestor, i.e. the GUID of oneself, and purpose GUID, i.e. the GUID of UsrB, message send to HSvr-A.Described message is: and the GUID of UsrB, sunquan#qq, ShortMsg, " happy new year! ".
Step 1102, HSvr-A are searched corresponding mask according to the GUID of UsrA from mask information table as shown in table 2, with requestor in the message, namely FromUsr is set to this mask.Like this, obtain message and be: the GUID of UsrB, lusu#99, ShortMsg, " happy new year! ".
Step 1103, HSvr-A send described message.
Like this, in the message that UsrB finally receives, message request person is lusu#99, rather than sunquan#qq.Like this, just reached the purpose of hiding true sender sunquan#qq.
In step 1102, if do not find corresponding mask, then can end process, or enter the abnormality processing flow process, or the FromUsr of message is set to the GUID of UsrA.
About step 1103, how HSvr-A sends described message, and finally by the described message of UsrB client, is not considering that UsrB arranges in the situation about turning to, can be referring to " communication means and system " patent of invention.For example, when HSvr-A belonged to oneself at UsrB, namely the HCode of UsrB was had by HSvr-A, directly according to the GUID of UsrB, described message was sent to UsrB; When UsrB belongs to other HSvr, the HCode that is UsrB is not had by HSvr-A, for example, HCode according to UsrB determines that the HSvr of UsrB ownership is HSvr-B, send to this HSvr-B with having carried the GUID of UsrB and requestor's message, receive message from HSvr-A by HSvr-B, and according to the GUID of UsrB described message is sent to UsrB.
About step 1103, how HSvr-A sends described message, and finally by the described message of UsrB client, is considering that UsrB arranges in the situation about turning to, and referring to " diversion treatments method " patent of invention, or else the present invention does not select.Similar place, back also no longer describes.
In " communication means and system " patent of invention, UsrA is to the HSvr of its ownership, when being HSvr-A transmission message, can in this message, carry the GUID of UsrA, also mention, preserved the corresponding relation of client and GUID at HSvr-A after, HSvr-A can according to the client that sends message, obtain the GUID of corresponding IUsr according to the corresponding relation of the client of preserving and GUID.
In " communication means and system " patent of invention, preserve the corresponding relation of described client and GUID by online user's information table.In described patent of invention, give the mode that two kinds of IUsr login HSvr, HSvr preserves the corresponding relation of described client and GUID by online user's information table after the log messages checking of IUsr is passed through.
Described online user's information table is as shown in table 3.
Table 3
GUID The IP address Port Remark
sunquan#qq The IP address of sunquan#qq Corresponding port numbers
zhouyu#99 The IP address of zhouyu#99 Corresponding port numbers
huanggai#99 The IP address of huanggai#99 Corresponding port numbers
In table 3, identify a client with client ip address and port numbers.Certainly, if the port numbers of unified agreement client, then in the table 3, the Port field also can be saved.
When client and HSvr set up TCP and are connected, can also be with corresponding connection identifier, for example corresponding socket descriptor (SktD, Socket Descriptor) identifies this client.How to obtain the IP address of client and the associated description of port numbers about HSvr, referring to " communication means and system " patent of invention, repeat no more here.
Back of the present invention is to identify a client as example with client ip address and port numbers.But be not used in restriction the present invention.
Behind the corresponding relation of having set up client and GUID, in step 1101, when UsrA sends described message to HSvr-A, can not carry the GUID of UsrA, like this, HSvr-A is according to the client that sends message, i.e. corresponding IP address and port numbers obtains the GUID of UsrA according to the corresponding relation of the client of preserving and GUID.
Example two: UsrA is sunquan#qq, has mask lusu#99, and UsrA sends short message to UsrB, and " happy new year! ".
Step 1201, HSvr-A create the online record of UsrA in online user's information table as shown in table 3 after the log messages checking of the GUID that comprises UsrA is passed through, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record.The client of described UsrA is by the IP address of this client and port numbers sign, source IP address and the source port number sign of the described message that is namely sent by UsrA.
The true sender UsrA of step 1202, message will carry purpose GUID, i.e. the GUID of UsrB, message send to HSvr-A.Described message is: and the GUID of UsrB, null, ShortMsg, " happy new year! ".
Step 1203, HSvr-A be according to the client of UsrA, and source IP address and the source port number of the described message that is namely sent by UsrA according to online user's information table as shown in table 3, obtain corresponding GUID, that is, and and the GUID of UsrA.
Step 1204, HSvr-A are searched corresponding mask according to the GUID of UsrA from mask information table as shown in table 2, with requestor in the message, namely FromUsr is set to this mask.Like this, obtain message and be: the GUID of UsrB, lusu#99, ShortMsg, " happy new year! ".
Step 1205, HSvr-A send described message.
Here, HSvr is in the message that receives TCP client or other HSvr, for example, connection request, or during the UDP message bag, can obtain the IP address of opposite end by resolving corresponding IP protocol header, by resolving corresponding Transmission Control Protocol head or udp header, can obtain the port numbers of opposite end.For example, use the socket technology, HSvr can when accepting connection request, obtain IP address and the port numbers of TCP client by accept () function.HSvr can also obtain by getpeername () function IP address and the port numbers of TCP client.More information about the IP address that how to obtain message sending end can referring to the socket technical data of " communication means and system " patent of invention or relevant unix, repeat no more here.
In step 1201, usually, a HSvr verifies the log messages from client according to the account information of preserving.Be simplified characterization, among other the embodiment, describe no longer especially in the back.How to login the HSvr of its ownership about IUsr, with and the HSvr of ownership how come the log messages of this IUsr is verified according to the account information of preserving, and after checking is passed through, preserve the online information of this IUsr by online user's information table, etc., more information referring to " means of communication and system " patent of invention, no longer selects here.
In step 1204, if do not find corresponding mask, then can end process, or enter the abnormality processing flow process, or the FromUsr of message is set to the GUID of UsrA.
In order to reduce the number of times that the mask information table is retrieved, can also further set up the corresponding relation of mask and owner's client, like this, just can determine corresponding mask configuration information according to the corresponding relation of mask and owner's client according to the client that sends message.Referring to Face Changing method General Implementing mode two flow charts shown in Figure 3.
Can be by a structure such as the mask as described in independently tables of data is preserved of table 3 and the corresponding relation of owner's client.
Owing to exist IUsr that the situation of mask is not set, therefore, when from the corresponding relation of described mask and owner's client, can not get corresponding mask according to the client that sends message, also need further according to the client that sends message to obtain corresponding GUID, like this from online user's information table as shown in table 3, for the IUsr that mask is not set, when processing corresponding message, need the mapping table of extra retrieval mask and owner's client, so just affected the treatment effeciency of HSvr.
To this, the present invention's suggestion is preserved the corresponding relation of described mask and owner's client by online user's information table.For example, by online user's information table, one of can be in the following way, set up the corresponding relation of mask and owner's client:
Mode one: preserve the mask of this IUsr and the corresponding relation of this IUsr client by the online record of IUsr.That is, in described table 3, increase the Mask field and preserve a mask configuration information that IUsr is corresponding.Like this, according to the mask data that arrange in the described mask information table, can arrange Mask field in described online user's information table.
For example, after an IUsr logins HSvr, when HSvr preserves online user's information of this IUsr in online user's information table, further according to the GUID of this IUsr, from mask information table as shown in table 2, search corresponding mask, judge whether to obtain, if obtain, then in online user's information table, the Mask field that this IUsr is corresponding is set to this mask.If this IUsr does not arrange mask, then in online user's information table, the Mask field that this IUsr is corresponding is set to null value null, shown in table 3-1:
Table 3-1
GUID Mask The IP address Port
sunquan#qq lusu#99 The IP address of sunquan#qq Corresponding port numbers
zhouyu#99 jianggan@163.com The IP address of zhouyu#99 Corresponding port numbers
huanggai#99 null The IP address of huanggai#99 Corresponding port numbers
According to table 3-1, described step 1203 and step 1204 can directly be merged into:
HSvr-A is according to the client of UsrA, be source IP address and the source port number of described message, according to the online user's information table shown in table 3-1, obtain corresponding online record, whether the Mask field of judging this record is null value, the GUID field value that if so, then will record is included in the described message as the requestor of message; Otherwise the Mask field value that then will record is included in the described message as the requestor of message.Like this, the search operaqtion of " HSvr-A searches corresponding mask according to the GUID of UsrA from mask information table as shown in table 2 " in the described step 1204 is removed.Thereby improve the efficient of HSvr information exchange.
Example three: UsrA is sunquan#qq, has mask lusu#99, and UsrA sends short message to UsrB, and " happy new year! ".
Step 1301, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, in the online user's information table shown in table 3-1, create the online record of UsrA, by this record, the corresponding relation of the GUID of preservation UsrA and the client of UsrA, GUID according to UsrA, from mask information table as shown in table 2, search corresponding mask, judge whether to obtain, if obtain corresponding mask, then in the online record with UsrA, corresponding Mask field is set to this mask, otherwise, in the online record with UsrA, corresponding Mask field is set to null value.The client of described UsrA is by the IP address of this client and port numbers sign, source IP address and the source port number sign of the described message that is namely sent by UsrA.
The true sender UsrA of step 1302, message will carry purpose GUID, i.e. the GUID of UsrB, message send to HSvr-A.Described message is: and the GUID of UsrB, null, ShortMsg, " happy new year! ".
Step 1303, HSvr-A are according to the client of UsrA, from the online user's information table shown in table 3-1, determine corresponding online record, judge whether the Mask field of this record is null value, the GUID field value that if so, then will record is included in the described message as the requestor of message; Otherwise the Mask field value that then will record is included in the described message as the requestor of message.Like this, obtain message and be: the GUID of UsrB, lusu#99, ShortMsg, " happy new year! ".Here, the client of described UsrA is by source IP address and the source port number sign of the described message of UsrA transmission.
Step 1304, HSvr-A send described message.
In step 1301, if judge an IUsr mask is not set, then in online user's information table, can also the online record of this IUsr in corresponding Mask field be set to the GUID of this IUsr.If shown in the table 3-2:
Table 3-2
GUID Mask The IP address Port
sunquan#qq lusu#99 The IP address of sunquan#qq Corresponding port numbers
zhouyu#99 jianggan@163.com The IP address of zhouyu#99 Corresponding port numbers
huanggai#99 huanggai#99 The IP address of huanggai#99 Corresponding port numbers
Like this, according to table 3-2, described step 1203 and step 1204 can directly be merged into:
HSvr-A is according to the client of UsrA, i.e. the source IP address of described message and source port number, and the online user's information table according to shown in table 3-2 obtains corresponding online record, and the Mask value of this record requestor as message is included in the described message.Here, the search operaqtion of " HSvr-A searches corresponding mask according to the GUID of UsrA from mask information table as shown in table 2 " in the described step 1204 is removed.Corresponding decision operation in the described step 1303 also is removed.Thereby improve the efficient of HSvr information exchange.
According to table 3-2, described step 1301 further is: HSvr-A is after passing through the log messages checking of the GUID that comprises UsrA, in the online user's information table shown in table 3-2, create the online record of UsrA, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record, GUID according to UsrA, from mask information table as shown in table 2, search corresponding mask, judge whether to obtain, if obtain corresponding mask, then in the online record with UsrA, corresponding Mask field is set to this mask, otherwise, in the online record with UsrA, corresponding Mask field is set to the GUID of UsrA.Correspondingly, described step 1303 further is: HSvr-A is according to the client of UsrA, according to the online user's information table shown in table 3-2, determines corresponding online record, and the Mask field value of this record requestor as message is included in the described message.
Above-mentioned, in step 1205, or in step 1304, when HSvr-A belonged to oneself at UsrB, namely the HCode of UsrB was had by HSvr-A, direct GUID according to UsrB, the described message that will comprise the requestor sends to UsrB, for example, the client according to the GUID of UsrB determines UsrB from online user's information table sends to this client with described message; When UsrB does not belong to oneself, the HCode that is UsrB is not had by HSvr-A, namely the HCode according to UsrB determines that the HSvr of UsrB ownership is HSvr-B, the message of having carried the GUID of requestor and UsrB is sent to this HSvr-B, receive message from HSvr-A by HSvr-B, and according to the GUID of UsrB described message is sent to UsrB.Referring to " communication means and system " patent of invention, the no longer repeat specification of similar place, back.
In the middle of the reality, although UsrA is provided with mask, but he is when sending message to other IUsr, be not all will use mask at every turn, to this, in above-mentioned each example, when UsrA sends to HSvr-A in the message of the GUID that will carry UsrB, in message, can carry requestor's sign, in order to indicate whether the requestor of mask as message.For example, this requestor is masked as 0, and expression uses the GUID of UsrA as the requestor of message, and this requestor is masked as 1, and expression uses the mask of UsrA as the requestor of message.
Example four: UsrA is sunquan#qq, has mask lusu#99, and UsrA sends short message with mask lusu#99 to UsrB, and " happy new year! ".
Step 1401, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, in the online user's information table shown in table 3-1, create the online record of UsrA, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record, GUID according to UsrA, from mask information table as shown in table 2, search corresponding mask, judge whether to obtain, if obtain corresponding mask, then in the online record with UsrA, corresponding Mask field is set to this mask, otherwise in the online record with UsrA, corresponding Mask field is set to null value.The client of described UsrA is by IP address and the port numbers sign of this client.
The true sender UsrA of step 1402, message will carry requestor sign and purpose GUID, i.e. the GUID of UsrB, message send to HSvr-A.Can carry by the FromUsr cell of described message format one described request person's sign, owing to be to send message with mask lusu#99, therefore, FromUsr is 1 rather than 0, and like this, described message is: { the GUID of UsrB, 1, ShortMsg, " happy new year! ".
Step 1403, HSvr-A from the online user's information table shown in table 3-1, are determined corresponding online record according to the client of UsrA; Judge whether described request person sign is 1, and if so, then execution in step 1404, otherwise with the GUID field value of this record, i.e. true request person GUID is included in the described message as the requestor of message, directly turns step 1405.
The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 1404, judge whether the Mask field of this record is null value, if so, then finish, perhaps enter the abnormality processing flow process; Otherwise the Mask field value that then will record is included in the described message as the requestor of message.Like this, obtain message and be: the GUID of UsrB, lusu#99, ShortMsg, " happy new year! ".
Step 1405, HSvr-A send described message.
In step 1404, described abnormality processing flow process can be to return " mask does not exist " cause value to UsrA.
In the middle of the reality, also can carry described request person's sign by in message format one, increasing new cell.
Mode two: the corresponding relation of preserving mask and its owner's client by online record independently.Namely, in table 3, do not increase the Mask field, but when IUsr logins HSvr, HSvr is when preserving the online information of this IUsr, judge also whether this IUsr is provided with mask, if be provided with mask, be kept in described online user's information table by the corresponding relation with this mask and its owner's client of online record independently.As show 3-3:
Table 3-3
GUID The IP address Port
sunquan#qq The IP address of sunquan#qq Corresponding port numbers
lusu#99 The IP address of sunquan#qq Corresponding port numbers
zhouyu#99 The IP address of zhouyu#99 Corresponding port numbers
jianggan@163.com The IP address of zhouyu#99 Corresponding port numbers
huanggai#99 The IP address of huanggai#99 Corresponding port numbers
The table 3-3 in, GUID be the online record of lusu#99 actual be online record corresponding to mask of sunquan#qq; GUID be the online record of jianggan@163.com actual be online record corresponding to mask of zhouyu#99.
According to table 3-3, the true sender UsrA of message will carry purpose GUID, i.e. the GUID of UsrB, message when sending to HSvr-A, further carry requestor GUID.Here, described request person GUID can be described mask, perhaps the GUID of UsrA.After HSvr-A receives this message, usually, be to described request person, be requestor GUID, carry out legitimate verification, for example, HSvr-A judges the requestor receive the whether GUID of UsrA or the mask of UsrA, if so, thinks that then the requestor of message is legal; Otherwise, think that the requestor of message is illegal, and can further make abnormality processing.Referring to Face Changing method General Implementing mode three flow charts shown in Figure 4.
If described request person GUID is not carried out legitimate verification, so, the client of UsrA usually, should be by provider's customization of HSvr-A, to guarantee that the requestor GUID that client is carried is expected in described message, namely or be the GUID of UsrA, or be the mask of UsrA, rather than other GUID that arbitrarily fills in.
Example five: UsrA is sunquan#qq, has mask lusu#99, and UsrA sends short message with mask lusu#99 to UsrB, and " happy new year! ".
Step 1501, HSvr-A is after passing through the log messages checking of the GUID that comprises UsrA, in the online user's information table shown in table 3-3, create online record, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record, GUID according to UsrA, from mask information table as shown in table 2, search corresponding mask, judge whether to obtain, if obtain corresponding mask, then in the online user's information table shown in table 3-3, create online record, preserve this mask and its owner's client, the i.e. corresponding relation of the client of UsrA by the record that creates.
The true sender UsrA of step 1502, message will carry requestor GUID and purpose GUID, i.e. the GUID of UsrB, message send to HSvr-A.Owing to be to send message with mask lusu#99, therefore, FromUsr is the GUID of lusu#99 rather than UsrA, and like this, described message is: and the GUID of UsrB, lusu#99, ShortMsg, " happy new year! ".
Whether the requestor of step 1503, HSvr-A checking message is legal: HSvr-A is according to client and the described request person GUID of UsrA, from the online user's information table shown in table 3-3, search corresponding online record, judge whether to find, if find, then described request person is legal, otherwise, illegal, process ends.The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 1504, HSvr-A send described message.
In the middle of the reality, when an IUsr was provided with mask, he can be distributed to the related personnel by a mask with oneself, and the GUID of self can be used as a kind of account of secret, and unknown by the people.In this case, HSvr can limit this IUsr when judging that an IUsr is provided with mask, make it carry out information interaction by mask.For example, in table 3-3, no longer preserve the corresponding relation of the owner of a mask and this owner's client.Like this, described owner just must outwards send message by the mask that arranges.This processing mode is also referred to as owner's secret processing mode, referring to following mode three.
Mode three: when there is mask in an IUsr, only create the online record of its mask, and no longer create the online record of this IUsr.Namely, in table 3, do not increase the Mask field, but when IUsr logins HSvr, HSvr is when preserving the online information of this IUsr, judge first whether this IUsr is provided with mask, if be provided with mask, then use the mask of this IUsr as the GUID field of the online record of this IUsr, otherwise, with the GUID of this IUsr GUID field as the online record of this IUsr.As show 3-4:
Table 3-4
GUID The IP address Port
lusu#99 The IP address of sunquan#qq Corresponding port numbers
jianggan@163.com The IP address of zhouyu#99 Corresponding port numbers
huanggai#99 The IP address of huanggai#99 Corresponding port numbers
The table 3-4 in, GUID be the online record of lusu#99 actual be online record corresponding to mask of sunquan#qq; GUID be the online record of jianggan@163.com actual be online record corresponding to mask of zhouyu#99.
According to table 3-4, described step 1303 further is: HSvr-A is according to the client of UsrA, be source IP address and the source port number of described message, according to the online user's information table shown in table 3-4, determine corresponding online record, the GUID field value of this record requestor as described message is included in the described message.
Example six: UsrA is sunquan#qq, has mask lusu#99, and UsrA sends short message with mask lusu#99 to UsrB, and " happy new year! ".
Step 1601, HSvr-A are creating online record in the online user's information table shown in table 3-4 after the log messages checking of the GUID that comprises UsrA is passed through; According to the GUID of UsrA, from mask information table as shown in table 2, search corresponding mask, judge whether to obtain, if obtain corresponding mask, then preserve this mask and its owner's client by the record that creates, i.e. the client of UsrA, corresponding relation; Otherwise, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by the record that creates.The client of described UsrA is by IP address and the port numbers sign of this client.
The true sender UsrA of step 1602, message will carry purpose GUID, i.e. the GUID of UsrB, message send to HSvr-A.Described message is: and the GUID of UsrB, null, ShortMsg, " happy new year! ".
Step 1603, HSvr-A are according to the client of UsrA, be source IP address and the source port number of described message, according to such as the online user information table of table shown in the 3-4, determine corresponding online record, the GUID field value of this record requestor as described message is included in the described message.Like this, obtain message and be: the GUID of UsrB, lusu#99, ShortMsg, " happy new year! ".
Step 1604, HSvr-A send described message.
Certainly, directly send this situation of message to UsrA if consider other IUsr, because HSvr-A will determine according to the GUID of UsrA the client of UsrA from described online user's information table, in order to described message is sent to the client of UsrA, so just should not adopt mode three, preferably, employing mode one or mode two.
In the middle of the reality, UsrA may need to arrange a plurality of masks, and for example, UsrA is zhugeliang, and its GUID is 123987#99, is provided with two mask: 86*139*23568901 and 86*755*82881689.As show the mask information table shown in the 2-1.
Table 2-1
GUID Mask Remark
sunquan#qq lusu#99 The mask setting of sunquan#qq
zhouyu#99 jianggan@163.com The mask setting of zhouyu#99
123987#99 86*139*23568901 The mask 1 of 123987#99 arranges
123987#99 86*755*82881689 The mask 2 of 123987#99 arranges
With table 2 contrast, allow an IUsr to have a plurality of masks among the 2-1, for example 123987#99 has two masks.
When UsrA sends to HSvr-A in the message of the GUID that will carry UsrB, can directly carry requestor GUID in message, this requestor GUID can directly be described mask, the perhaps GUID of UsrA.After HSvr-A receives this message, usually, carry out legitimate verification to described request person GUID, for example, the requestor that HSvr-A judges the message receive is one of the GUID of UsrA or mask of UsrA whether, if so, thinks that then the requestor of message is legal; Otherwise, think that the requestor of message is illegal, and can further make abnormality processing.
Example 21: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2101, with step 1201.
The message that step 2102, UsrA will carry the GUID of requestor GUID and UsrB sends to HSvr-A.Because UsrA sends short message with mask 86*755*82881689 to UsrB, therefore, FromUsr is 86*755*82881689, and like this, described message is: and the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".
Whether the requestor of step 2103, HSvr-A checking message is legal, that is, the requestor of checking message is the GUID of UsrA or the mask of UsrA whether, if not, then process ends is assumed a hostile attitude unsuccessfully in explanation.
HSvr-A is according to the client of UsrA, according to online user's information table as shown in table 3, obtains corresponding GUID, that is, the GUID of UsrA judges the whether GUID of UsrA of described request person, and if so, then described request person is legal.If described request person is not the GUID of UsrA, then further judge the whether mask of UsrA of described request person, namely, according to GUID and the described request person of UsrA, from the mask information table shown in table 2-1, search corresponding record, judge whether to find, if find, illustrate that then described request person is legal, otherwise, illustrate that described request person is illegal.
The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2104, HSvr-A send described message.
In step 2101, can also from mask information table shown in table 2-1, obtain the mask information of UsrA further according to the GUID of UsrA, the mask information that obtains is sent to UsrA.For example, the described mask information of 123987#99 comprises: 86*139*23568901 and 86*755*82881689.Like this, the UsrA client just can be corresponding with it according to the different window of the different mask information creatings that obtain, and for example, create different windows according to different masks, thereby the aspect user selects different identity to carry out the transmission of information by different windows.Like this, just reach in client and realize shadow mobile phone (networking telephone of number and phone number likeness in form), the purpose of shadow landline telephone (networking telephone of number and fixed telephone number likeness in form).
In the middle of the reality, can limit the mask number that an IUsr has at most, like this, can a plurality of mask fields be set correspondingly in online user's information table as shown in table 3, preserve respectively the mask that an IUsr may have.Like this, by the online record of an IUsr, can preserve the corresponding relation of the client of the mask of this IUsr and this IUsr.For example, limit each IUsr and can have at most two masks, shown in table 3-5:
Table 3-5
Figure BDA0000288714581
In table 3-5, if an IUsr does not have mask, then in its online record, corresponding Mask1 and Mask2 field all are null value null, for example huanggai#99; If an IUsr only has a mask, then in its online record, corresponding Mask1 field value is this mask, and corresponding Mask2 field is null value null, for example sunquan#qq and zhouyu#99.And 123987#99 has two mask 86*139*23568901 and 86*755*82881689, and corresponding Mask1 and Mask2 field are set to respectively this two masks in its online record.
Example two or two: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2201, HSvr-A create the online record of UsrA in the online user's information table shown in table 3-5 after the log messages checking of the GUID that comprises UsrA is passed through, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record; According to the GUID of UsrA, from the mask information table shown in table 2-1, search corresponding mask, preserve the mask that finds by Mask1 in the online record of UsrA and Mask2 field.The client of described UsrA is by the IP address of this client and port numbers sign, source IP address and the source port number sign of the described message that is namely sent by UsrA.
Here, HSvr-A can also be further sends to UsrA with the mask 86*139*23568901 that finds and 86*755*82881689 etc. mask information, so that client creates different management objects according to different masks.Described management object can be window, the page, tab etc.
When described management object was the page, described client was generally browser.For example, HSvr-A produces corresponding page object data according to different masks, and the page object data that produce are sent to client, is shown by client browser.
The message that step 2202, UsrA will carry the GUID of requestor GUID and UsrB sends to HSvr-A.Because UsrA sends short message with mask 86*755*82881689 to UsrB, therefore, the FromUsr of described message is 86*755*82881689, and like this, described message is: and the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".
Whether the requestor of step 2203, HSvr-A checking message is legal, that is, the requestor of checking message is the GUID of UsrA or the mask of UsrA whether, if not, then process ends is assumed a hostile attitude unsuccessfully in explanation.
Here, HSvr-A determines corresponding online record according to the client of UsrA from the online user's information table shown in table 3-5; Judge described request person GUID whether corresponding online record GUID value or one of the value of Msak1 or value of Mask2 etc., if so, think that then the requestor of message is legal, otherwise think that the requestor of message is illegal.
The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2204, HSvr-A send described message.
If consider owner's secret processing mode, among the table 3-5, described GUID field can be removed, and when an IUsr does not arrange mask, with the GUID of this IUsr Mask1 value as respective record.Also namely:
Described step 2201 further is: HSvr-A is after passing through the log messages checking of the GUID that comprises UsrA, in table 3-5, create online record, GUID according to UsrA, from the mask information table shown in table 2-1, search corresponding mask, preserve the mask that finds by Mask1 in the online record of UsrA and Mask2 field; If do not find corresponding mask, then the GUID with UsrA is kept in the Mask1 field of its online record, and the Mask2 field is set to null value null; If only find a mask, then this mask is kept in the online record of UsrA in the Mask1 field, the Mask2 field is set to null value null; The IP address and the Port field that then with client ip address and the port numbers of UsrA this record are set.
Correspondingly, whether the requestor of checking message is legal in the described step 2203 further is: the requestor of checking message is the mask of UsrA whether.
Allow an IUsr to have in the situation of a plurality of masks, can preserve by online record independently the corresponding relation of mask and its owner's client equally, as showing shown in the 3-6:
Table 3-6
GUID The IP address Port
sunquan#qq The IP address of sunquan#qq The respective ends slogan
lusu#99 The IP address of sunquan#qq The respective ends slogan
zhouyu#99 The IP address of zhouyu#99 The respective ends slogan
jianggan@163.com The IP address of zhouyu#99 The respective ends slogan
123987#99 The IP address of 123987#99 The respective ends slogan
86*139*23568901 The IP address of 123987#99 The respective ends slogan
86*755*82881689 The IP address of 123987#99 The respective ends slogan
huanggai#99 The IP address of huanggai#99 The respective ends slogan
According to table 3-6, in step 2103, the requestor of described checking message whether legal referring to: HSvr-A according to client and the described request person of UsrA, from the online user's information table shown in table 3-6, determine corresponding online record, judge whether to find, if find, think that then the requestor of message is legal, otherwise think that the requestor of message is illegal.
The client of described UsrA also is source IP address and the source port number of the described message of UsrA transmission by IP address and the port numbers of this client, sign.
Example two or three: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2301, HSvr-A are creating online record in the online user's information table shown in table 3-6 after the log messages checking of the GUID that comprises UsrA is passed through, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record; GUID according to UsrA, from the mask information table shown in table 2-1, search corresponding mask, for the mask that finds, in the online user's information table shown in table 3-6, create online record, preserve the corresponding relation of the client of the described mask that finds and UsrA by the online record that creates.The client of described UsrA is by the IP address of this client and port numbers sign, source IP address and the source port number sign of the described message that is namely sent by UsrA.
Here, HSvr-A can also be further sends to UsrA with the mask 86*139*23568901 that finds and 86*755*82881689 etc. mask information.
The message that step 2302, UsrA will carry the GUID of requestor GUID and UsrB sends to HSvr-A.Because UsrA sends short message with mask 86*755*82881689 to UsrB, therefore, the FromUsr of described message is 86*755*82881689, and like this, described message is: and the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".
Whether the requestor of step 2303, HSvr-A checking message is legal, that is, the requestor of checking message is the GUID of UsrA or the mask of UsrA whether, if not, then process ends is assumed a hostile attitude unsuccessfully in explanation.
Here, whether the requestor of checking message legal referring to: judge the corresponding relation of whether having preserved the client of 86*755*82881689 and UsrA in the online user's information table shown in table 3-6, if, then the requestor of description messages is one of the GUID of UsrA or mask of UsrA, and namely the requestor of message is legal; Otherwise, think that the requestor of message is illegal.
The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2304, HSvr-A send described message.
If consider owner's secret processing mode, then described step 2301 is: after the log messages checking of the GUID that comprises UsrA is passed through, HSvr-A is according to the GUID of UsrA, from the mask information table shown in table 2-1, search corresponding mask, if find, then preserve the corresponding relation of the client of the mask that finds and UsrA by in table 3-6, creating online record; If do not find corresponding mask, then preserve the corresponding relation of the client of the GUID of UsrA and UsrA by in table 3-6, creating online record.Like this, according to the mask information data of table shown in the 2-1, among the resulting table 3-6, will no longer contain the GUID field value and be respectively the record of sunquan#qq, zhouyu#99 and 123987#99 etc.
Compare with example 21, in example two or two and example two or three, when the requestor of message was a mask, the requestor of described checking message whether legal operating efficiency was higher.
According to example 21, or example two or two, or example two or three, the client of UsrA can be when sending message may with identity create different windows, thereby set up different windows and different requestors' corresponding relation.Like this, when selecting different windows to send message, just can use different identity as the requestor of message.The described identity that may use can be the GUID of UsrA, also can be the mask of UsrA.
As seen, by setting up the corresponding relation of mask and window, can utilize different windows to play the part of that different users comes and different customer group exchanges in client, thereby be very easy to user's use.
In the middle of the reality, can also in table 2-1, increase requestor's attribute field, shown in table 2-2:
Table 2-2
GUID Mask FromUsrFlag Remark
sunquan#qq lusu#99 1 The mask setting of sunquan#qq
zhouyu#99 jianggan@163.com 1 The mask setting of zhouyu#99
123987#99 86*139*23568901 1 The mask 1 of 123987#99 arranges
123987#99 86*755*82881689 2 The mask 2 of 123987#99 arranges
Based on table 2-2, when UsrA sends to HSvr-A in the message of the GUID that will carry UsrB, can be to use the GUID of UsrA as the requestor of message by in message, carrying requestor's sign, indicating, or use certain mask of UsrA as the requestor of message.After HSvr-A receives this message, according to requestor's value of statistical indicant that message is carried, determine corresponding requestor.As show shown in the 2-2, when UsrA is zhugeliang, this requestor is masked as 0, expression is with the GUID of UsrA, i.e. 123987#99 is as the requestor of message, this requestor is masked as 1, expression uses 86*139*23568901 as the requestor of message, and this requestor is masked as 2, and expression uses 86*755*82881689 as the requestor of message.
Can carry with the FromUsr of message format one described request person's flag information, also can carry described request person's flag information by in message format one, increasing a FromUsrFlag cell.Take the latter as example, define IUsr here and send the message format of message to HSvr, i.e. following message format two, but be not used in restriction the present invention:
ToUsr: the purpose user who is used to specify message;
FromUsr: be used to specify the source user of message, i.e. source address;
FromUsrFlag: requestor's sign or session identification;
MsgCode: message code: for example, ShortMsg represents that this is a short message;
MsgContent: message content.
With ToUsr, and FromUsr, FromUsrFlag, MsgCode, this form of MsgContent} represents a message instance, for example: the GUID of UsrB, and null, 2, ShortMsg, " happy new year! " " happy new year to the UsrB transmission with mask 86*755*82881689 for expression UsrA! " message instance of short message, wherein, the GUID of ToUsr=UsrB, FromUsr=null, FromUsrFlag=2, MsgCode=ShortMsg, MsgContent=" happy new year! ".
Example two or four: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2401, with step 1201.
Step 2402, UsrA will carry the requestor indicate 2 and the message of the GUID of UsrB send to HSvr-A.Described message is: and the GUID of UsrB, null, 2, ShortMsg, " happy new year! ".
Step 2403, HSvr-A according to online user's information table as shown in table 3, are obtained corresponding GUID according to the client of UsrA, that is, and and the GUID of UsrA.
The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2404, HSvr-A judge whether described request person sign is 0, and if so, then mask is not used in explanation, and the GUID of UsrA is included in the described message as the requestor of message, directly turn step 2406; Otherwise, execution in step 2405.
Step 2405, according to the GUID of UsrA and described request person's sign, from the mask information table shown in table 2-2, search corresponding mask, judge whether to obtain, if obtain, then the requestor of this mask as message is included in the described message, otherwise it is invalid to illustrate that the requestor indicates, assume a hostile attitude unsuccessfully, finish.
Like this, according to message format one, obtain message and be: the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".Here, comprised an information format conversion, that is, carried out the message format conversion according to message format one, corresponding FromUsrFlag cell has been removed.No longer repeat with regard to this type of situation in the example of back.
Step 2406, HSvr-A send described message.
In step 2401, can also from mask information table shown in table 2-2, obtain the mask information of UsrA further according to the GUID of UsrA, namely the mask of UsrA and corresponding requestor sign sends to UsrA with the mask information that obtains.For example, the described mask information of 123987#99 comprises: (86*139*23568901,1), (86*755*82881689,2), and here, the requestor of mask 86*139*23568901 is masked as 1, and the requestor of mask 86*755*82881689 is masked as 2.Like this, the UsrA client just can be corresponding with it according to the different window of the different mask information creatings that obtain, and for example, indicates the window that establishment is different according to different requestors, thereby aspect user selects different identity to carry out the transmission of information by different windows.Like this, just reach in client and realize shadow mobile phone (networking telephone of number and phone number likeness in form), the purpose of shadow landline telephone (networking telephone of number and fixed telephone number likeness in form).
According to table 3-5, in step 2405, the mask information table is carried out the operation of corresponding retrieval and can save.
Example two or five: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2501, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, in the online user's information table shown in table 3-5, create the online record of UsrA, preserve the corresponding relation of the client of the GUID of UsrA and UsrA by this record, GUID according to UsrA, from the mask information table shown in table 2-2, search corresponding mask information, with the mask that the finds requestor's sign according to correspondence, be kept in the online record of UsrA in corresponding Mask1 or the Mask2 field.Because 123987#99 has two mask 86*139*23568901 and 86*755*82881689, corresponding requestor's sign is respectively 1 and 2, therefore, in the online record of UsrA, corresponding Mask1 and Mask2 field value are respectively 86*139*23568901 and 86*755*82881689.The client of described UsrA is by the IP address of this client and port numbers sign, source IP address and the source port number sign of the described message that is namely sent by UsrA.
Step 2502, UsrA will carry the requestor indicate 2 and the message of the GUID of UsrB send to HSvr-A.Described message is: and the GUID of UsrB, null, 2, ShortMsg, " happy new year! ".
Step 2503, HSvr-A are determined corresponding online record according to the client of UsrA from the online user's information table shown in table 3-5.The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2504, HSvr-A are not used mask judging that described request person is masked as at 0 o'clock, that is, with described online record the GUID value be included in the described message as the requestor of message; HSvr-A is judging that described request person is masked as at 1 o'clock, with described online record the Mask1 value be included in the described message as the requestor of message; HSvr-A is judging that described request person is masked as at 2 o'clock, with described online record the Mask2 value be included in the described message as the requestor of message.Like this, according to message format one, obtain message and be: the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".
Here, be masked as at 2 o'clock the requestor, if corresponding Mask2 field is null value in the described online record, it is invalid to illustrate that then the requestor who carries indicates; Be masked as at 1 o'clock the requestor, if corresponding Mask1 field is null value in the described online record, it is invalid to illustrate that also the requestor who carries indicates.Indicate the requestor who carries to illustrate and to assume a hostile attitude unsuccessfully when invalid, can end process, or enter the abnormality processing flow process.
Step 2505, HSvr-A send described message.
In step 2501, can also further the mask information that obtains be sent to UsrA.For example, the described mask information of 123987#99 comprises: (86*139*23568901,1), (86*755*82881689,2), and here, the requestor of mask 86*139*23568901 is masked as 1, and the requestor of mask 86*755*82881689 is masked as 2.Like this, the UsrA client just can be corresponding with it according to the different window of the different mask information creatings that obtain, and for example, indicates the window that establishment is different according to different requestors, thereby aspect user selects different identity to carry out the transmission of information by different windows.
Can indicate according to the requestor, online user's information table shown in table 3-5 is divided into a plurality of tables, as, to login GUID and client corresponding relation is kept among the table 3-5-0, first mask and owner's client corresponding relation are kept among the table 3-5-1, second mask and owner's client corresponding relation are kept among the table 3-5-2
Table 3-5-0
GUID The IP address Port
sunquan#qq The IP address of sunquan#qq The respective ends slogan
zhouyu#99 The IP address of zhouyu#99 The respective ends slogan
123987#99 The IP address of 123987#99 The respective ends slogan
huanggai#99 The IP address of huanggai#99 The respective ends slogan
Table 3-5-1
GUID The IP address Port
lusu#99 The IP address of sunquan#qq The respective ends slogan
jianggan@163.com The IP address of zhouyu#99 The respective ends slogan
86*139*23568901 The IP address of 123987#99 The respective ends slogan
Table 3-5-2
GUID The IP address Port
86*755*82881689 The IP address of 123987#99 The respective ends slogan
Like this, receive the described message that UsrA sends in step 2502 after, HSvr-A decides the requestor who determines message from which table according to the requestor's sign that carries in the message.For example:
HSvr-A according to the client of UsrA, determines corresponding online record judging that described request person is masked as at 0 o'clock from the online user's information table shown in table 3-5-0; HSvr-A according to the client of UsrA, determines corresponding online record judging that described request person is masked as at 1 o'clock from the online user's information table shown in table 3-5-1; HSvr-A according to the client of UsrA, determines corresponding online record judging that described request person is masked as at 2 o'clock from the online user's information table shown in table 3-5-2.With determined online record the GUID value be included in the described message as the requestor of message, then just described message sends.Like this, because the scale of the tables of data of retrieval descends, therefore, can obtain higher recall precision.
In the middle of the reality, HSvr-A can further preserve the corresponding relation of session identification (SID, Session ID) and corresponding GUID.For example, in table 3-6, increase the SID field, be used for preserving the session identification of corresponding GUID.As show shown in the 3-7:
Table 3-7
SID GUID The IP address Port
101 sunquan#qq The IP address of sunquan#qq The respective ends slogan
102 lusu#99 The IP address of sunquan#qq The respective ends slogan
125 zhouyu#99 The IP address of zhouyu#99 The respective ends slogan
126 jianggan@163.com The IP address of zhouyu#99 The respective ends slogan
201 123987#99 The IP address of 123987#99 The respective ends slogan
202 86*139*23568901 The IP address of 123987#99 The respective ends slogan
203 86*755*82881689 The IP address of 123987#99 The respective ends slogan
361 huanggai#99 The IP address of huanggai#99 The respective ends slogan
Like this, when UsrA sends to HSvr-A in the message of the GUID that will carry UsrB, can in message, carry a session identification, like this, HSvr-A can be according to the session identification that carries in the message, obtain corresponding GUID according to the session identification of preserving with the corresponding relation of corresponding GUID, with the requestor of this GUID as message.This GUID can be the GUID of UsrA, also can be the mask of UsrA.
For example, UsrA sends the request of setting up session to HSvr-A, carry requestor's sign in the request message, after HSvr-A receives this request, indicate definite requestor according to the requestor who carries in the request message, for example, this requestor is masked as 0, expression uses the GUID of UsrA as the requestor of message, and this requestor is masked as 1, and expression uses the mask of UsrA as the requestor of message; Produce session identification, set up the requestor of described message and the corresponding relation of this session identification, then this session identification is sent to UsrA.Like this, when UsrA sends message in next time to HSvr-A, carry described session identification in message, HSvr-A is according to this session identification, obtains corresponding requestor according to the corresponding relation of described session identification and corresponding GUID.
Preferably, HSvr-A according to the GUID of UsrA, searches corresponding mask from the mask information table shown in table 2-1 after the log messages checking of UsrA is passed through, according to the GUID of the mask that finds and UsrA, in the online user's information table shown in table 3-7, create respectively online record.
When creating online record, can produce at random corresponding SID field value by a randomizer.Like this, the client of UsrA just can create according to different session identifications different windows, thereby sets up different windows and different requestors' corresponding relation.Like this, the user just can select different windows to carry out alternately with corresponding customer group with different identity in client.
Because session identification can produce at random, therefore, indicate whether to use mask with session identification, and use which mask, to a certain extent, can play the effect of protection communication privacy.
Example two or six: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2601, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, GUID according to UsrA, from the mask information table shown in table 2-1, search corresponding mask, according to the mask 86*139*23568901 and the 86*755*82881689 that find, and the GUID of UsrA, in the online user's information table shown in table 3-7, create respectively online record; The session identification and the corresponding GUID that produce are sent to UsrA.
Here, HSvr-A is according to the GUID of UsrA, i.e. 123987#99, and create online record: the GUID field of this record is 123987#99, IP address and the port numbers of the client of the corresponding UsrA of client, the random number 201 that SID produces for the randomizer that arranges; Create online record according to mask 86*139*23568901: the GUID field of this record is 86*139*23568901, IP address and the port numbers of the client of the same corresponding UsrA of client, the random number 202 that SID produces for the randomizer that arranges; Create online record according to 86*755*82881689 in the same way; (123987#99,201), (86*139*23568901,202) and session identifications such as (86*755*82881689,203) and corresponding GUID are sent to UsrA.
The message that step 2602, UsrA will carry the GUID of session identification and UsrB sends to HSvr-A.Described message is: and the GUID of UsrB, null, 203, ShortMsg, " happy new year! ".
Step 2603, HSvr-A be according to described session identification, according to the online user's information table shown in table 3-7, determines corresponding online record, and the GUID field value of this record requestor as message is included in the described message.Like this, according to message format one, obtain message and be: the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".
Step 2604, HSvr-A send described message.
Swindle for fear of SID, described step 2603 can further be: HSvr-A is according to the client of described session identification and UsrA, according to the online user's information table shown in table 3-7, determine corresponding online record, the GUID field value of this record requestor as message is included in the described message.The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
In table 3-7, described SID can further be a FromUsrFlag, shown in table 3-8:
Table 3-8
FromUsrFlag GUID The IP address Port
0 sunquan#qq The IP address of sunquan#qq The respective ends slogan
1 lusu#99 The IP address of sunquan#qq The respective ends slogan
0 zhouyu#99 The IP address of zhouyu#99 The respective ends slogan
1 jianggan@163.com The IP address of zhouyu#99 The respective ends slogan
0 123987#99 The IP address of 123987#99 The respective ends slogan
1 86*139*23568901 The IP address of 123987#99 The respective ends slogan
2 86*755*82881689 The IP address of 123987#99 The respective ends slogan
0 huanggai#99 The IP address of huanggai#99 The respective ends slogan
Example two or seven: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2701, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, GUID according to UsrA, from the mask information table shown in table 2-2, search corresponding mask information, according to the mask information (86*139*23568901 that finds, 1) and (86*755*82881689,2), and the GUID of UsrA, in the online user's information table shown in table 3-8, create respectively online record.For example, HSvr-A creates online record according to 123987#99: the GUID field of this record is 123987#99, IP address and the port numbers of the client of the corresponding UsrA of client, FromUsrFlag is 0, then create online record according to 86*139*23568901: the GUID field of this record is 86*139*23568901, IP address and the port numbers of the client of the same corresponding UsrA of client, FromUsrFlag is 1, then create online record according to 86*755*82881689: the GUID field of this record is 86*755*82881689, IP address and the port numbers of the client of the same corresponding UsrA of client, FromUsrFlag is 2.
Here, if from the mask information table shown in table 2-1, search corresponding mask information, the mask information that then finds is 86*139*23568901 and 86*755*82881689, at this moment, HSvr-A can be according to sequencing, be masked as 1 for 86*139*23568901 assignment requestor, be masked as 2 for 86*755*82881689 assignment requestor, in order in the online user's information table shown in table 3-8, create corresponding online record.
The message that step 2702, UsrA will carry the GUID of requestor's sign and UsrB sends to HSvr-A.Described message is: and the GUID of UsrB, null, 2, ShortMsg, " happy new year! ".
Step 2703, HSvr-A from the online user's information table shown in table 3-8, are determined corresponding online record according to the described requestor's sign that carries and the client of UsrA, and the GUID field value of this record requestor as message is included in the described message.Like this, according to message format one, obtain message and be: the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2704, HSvr-A send described message.
In step 2701, HSvr-A can also be further sends to UsrA with the mask information (86*139*23568901,1) that finds and (86*755*82881689,2) etc.Like this, the client of UsrA just can indicate according to different requestors to create different windows, thereby sets up different windows and different requestors' corresponding relation.For example, described window has a requestor to indicate attribute and a GUID attribute, and described request person indicates that corresponding GUID is the GUID of this window.
Equally, can indicate according to the requestor, the online user's information table shown in table 3-8 is divided into a plurality of tables, referring to table 3-5-0, table 3-5-1, table 3-5-2, repeat no more here.
Example sixteen: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2801, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, GUID according to UsrA, from the mask information table shown in table 2-2, search corresponding mask information, GUID according to UsrA, and the mask information (86*139*23568901 that finds, 1) and (86*755*82881689,2), in the online user's information table shown in table 3-5-0,3-5-1,3-5-2 etc., creating online record respectively.For example, according to 123987#99, create online record in table 3-5-0: the GUID field of this record is 123987#99, IP address and the port numbers of the client of the corresponding UsrA of client, then according to 86*139*23568901, create online record in table 3-5-1: the GUID field of this record is 86*139*23568901, IP address and the port numbers of the client of the same corresponding UsrA of client, then according to 86*755*82881689, create online record in table 3-5-2: the GUID field of this record is 86*755*82881689, IP address and the port numbers of the client of the same corresponding UsrA of client.
The message that step 2802, UsrA will carry the GUID of requestor's sign and UsrB sends to HSvr-A.Described message is: and the GUID of UsrB, null, 2, ShortMsg, " happy new year! "
Step 2803, HSvr-A indicate online user's information table of determining the needs retrieval according to the requestor of described message, because the requestor of message is masked as 2, therefore, online user's information table of determining is table 3-5-2, according to the client of UsrA, from determined online user's information table, namely as showing the online user's information table shown in the 3-5-2, in determine corresponding online record, the GUID field value of this record requestor as message is included in the described message.Like this, according to message format one, obtain message and be: the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2804, HSvr-A send described message.
In the middle of the reality, the online user's information table shown in table 3-8 can also be divided into two tables: login GUID online user information table, shown in table 3-5-0, and mask online user information table, shown in table 3-8-1.
Table 3-8-1
FromUsrFlag GUID The IP address Port
1 lusu#99 The IP address of sunquan#qq The respective ends slogan
1 jianggan@163.com The IP address of zhouyu#99 The respective ends slogan
1 86*139*23568901 The IP address of 123987#99 The respective ends slogan
2 86*755*82881689 The IP address of 123987#99 The respective ends slogan
Like this, in step 2803, when requestor's sign of judging described message is designated as described login GUID, will according to the client of UsrA, from the online user's information table shown in table 3-5-0, determine corresponding online record; When requestor's sign of judging described message is designated as mask, will according to client and the described request person's sign of UsrA, from the online user's information table shown in table 3-8-1, determine corresponding online record.
Example two or nine: UsrA is 123987#99, has mask 86*139*23568901 and 86*755*82881689, and UsrA sends short message with mask 86*755*82881689 to UsrB, and " happy new year! ".
Step 2901, HSvr-A are after passing through the log messages checking of the GUID that comprises UsrA, GUID according to UsrA, from the mask information table shown in table 2-2, search corresponding mask information, GUID according to UsrA, and the mask information (86*139*23568901 that finds, 1) and (86*755*82881689,2), in the online user's information table shown in table 3-5-0,3-8-1 etc., creating online record respectively.For example, according to 123987#99, create online record in table 3-5-0: the GUID field of this record is 123987#99, IP address and the port numbers of the client of the corresponding UsrA of client, then according to 86*139*23568901, create online record in table 3-8-1: the GUID field of this record is 86*139*23568901, IP address and the port numbers of the client of the same corresponding UsrA of client, FromUsrFlag is 1, then according to 86*755*82881689, create online record in table 3-8-1: the GUID field of this record is 86*755*82881689, IP address and the port numbers of the client of the same corresponding UsrA of client, and FromUsrFlag is 2.
The message that step 2902, UsrA will carry the GUID of requestor's sign and UsrB sends to HSvr-A.Described message is: and the GUID of UsrB, null, 2, ShortMsg, " happy new year! "
Step 2903, HSvr-A indicate that according to the requestor of described message online user's information table of determining the needs retrieval is 3-8-1, client and described request person's sign according to UsrA, from the online user's information table shown in table 3-8-1, determine corresponding online record, the GUID field value of this record requestor as message is included in the described message.Like this, according to message format one, obtain message and be: the GUID of UsrB, 86*755*82881689, ShortMsg, " happy new year! ".The client of described UsrA is identified by source IP address and the source port number of the described message that UsrA sends.
Step 2904, HSvr-A send described message.
In step 2903, when the requestor of described message is masked as 0, determine that needing online user's information table of retrieval is 3-5-0.
In step 1103, when UsrB belonged to oneself, HSvr-A can also construct answer message, and to the requestor of respective request message, namely replied the purpose user of message, and for example lusu#99 transmits a reply message.When UsrB belonged to other HSvr, the HSvr of UsrB ownership can construct answer message equally after described message is sent to UsrB, and to the requestor of respective request message, namely replied the purpose user of message, sent the answer message of structure.For example, described answer message is: { lusu#99, the GUID of UsrB, ResShortMsg, the sign of expression " sending successfully " }, wherein, ResShortMsg is the answer message code corresponding to ShortMsg.
If UsrA does not arrange mask, that is, in step 1102, the FromUsr of message is not set to corresponding mask, and then, the ToUsr in the above-mentioned answer message is the GUID of UsrA.
When the ToUsr in replying message was the mask of UsrA, the purpose that turns to of this mask was set to the true sender of respective request message, the i.e. GUID of UsrA in advance, like this, send to the message of this mask, comprise answer message, finally all be sent to UsrA.Referring to " diversion treatments method " patent of invention of submitting to simultaneously.Like this, UsrA just can carry out information interaction from different customer groups, thereby reach the purpose of playing the part of a plurality of roles by an IUsr according to different masks, just wears different masks such as a user and comes in the face of different customer groups.
Especially, in step 1103, when UsrB belongs to oneself, HSvr-A can also be not according to the purpose user who replys message, and for example lusu#99 sends this answer message, but the answer message that directly will construct sends to the true sender of respective request message, i.e. UsrA.Like this, when UsrA is provided with mask, when particularly this mask is the IUsr of other HSvr, can reduces and to reply the time that message sends to the true sender of respective request message.
Equally, in step 1205, when UsrB belonged to oneself, HSvr-A can also construct answer message, and to the requestor of respective request message, namely replied the purpose user of message, and for example lusu#99 transmits a reply message.When UsrB belonged to other HSvr, the HSvr of UsrB ownership can construct answer message equally, and to the requestor of respective request message, namely replied the purpose user of message, sent the answer message of structure.For example, described answer message is: { lusu#99, the GUID of UsrB, ResShortMsg, the sign of expression " sending successfully " }.
Behind the above-mentioned corresponding relation of setting up different windows and different requestors in client, client just can be according to the purpose user in the answer message that is received from HSvr, and namely original addressing purpose sends to different windows with different answer message.Here, in the message from HSvr that client will receive, corresponding original addressing purpose is searched corresponding window as the GUID of window, this message is sent to the window that finds.Referring to " diversion treatments method " patent of invention of submitting to simultaneously.For example, in window object, increase a GUID attribute, be used for depositing corresponding GUID, when sending message by this window, the requestor of this message is set to the GUID value of this window, when receiving the message of HSvr, searching the GUID attribute is the window of the original addressing purpose of receipt message, and this message is sent to this window.Also for example, in window object, increase a GUID attribute and FromUsrFlag attribute, be used for depositing corresponding GUID value and FromUsrFlag value, when sending message by this window, the FromUsrFlag value of this window is included in the described message, in order to indicate the requestor of this message, so that corresponding HSvr determines the requestor of message according to described FromUsrFlag value; When receiving the message of HSvr, searching the GUID attribute is the window of the original addressing purpose of receipt message, and this message is sent to this window.For example, for message format one and message format two, the ToUsr value that described original addressing purpose is message.
In the middle of the reality, also can substitute above-mentioned window with tab, that is, set up the corresponding relation of tab and mask, the GUID of described tab is the GUID of the mask of correspondence.Certainly, also a window can be divided into several zones, substitute above-mentioned window with described zone, that is, set up the corresponding relation of described zone and mask, the GUID in described zone is the GUID of corresponding mask.Like this, just can realize respectively by a plurality of zones of a window user's shadow mobile phone and shadow landline telephone.Many identity terminal schematic diagram as shown in Figure 5.In the figure, the D button is dialing (Dial) button, and the R button is for redialing (Redial) button, and the C button is cancellation (Cancel) button.
The present invention also provides a kind of mask method to set up, by the method, prevents the non-honest behavior that occurs in the mask setting up procedure.
Specifically, described mask method to set up may further comprise the steps as shown in Figure 6:
Step 3101, HSvr obtain owner and mask after receiving that mask arranges request, then produce password, and the password that produces is sent to described mask.
Step 3102, receive the affirmation password from described owner or mask.
Whether whether the affirmation password that step 3103, judgement receive is consistent with the password of generation, for example equate, if consistent, then in the mask information table, preserves described mask according to described owner.
In step 3101, when the password that will produce sends to described mask, can also further send described owner.Like this, described mask can be confirmed the owner whether corresponding owner expects when receiving described password.
Usually, described mask arranges request by described owner's initiation.For example: UsrA is sunquan#qq, and wish lusu#99 is set to its mask:
Step 3201, UsrA will comprise that the mask of mask lusu#99 arranges request and sends to HSvr-A.
After step 3202, HSvr-A receive that described mask arranges request, obtain the GUID of UsrA, and from request message, obtain corresponding mask lusu#99; HSvr-A produces a password, and this password is sent to described mask lusu#99.
Here, described mask arranges the GUID that can carry UsrA in the request, and like this, HSvr-A just can obtain the GUID of UsrA from request message.Usually, HSvr-A sets up the corresponding relation of client and GUID, and is as shown in table 3, like this, HSvr-A can be by described request message source IP address and source port number, obtain corresponding GUID according to described client with the corresponding relation of GUID, with this GUID as described owner.
Step 3203, UsrA send to HSvr-A and confirm password.
Here, UsrA should obtain described password by lusu#99, and this password is confirmed password as corresponding.Otherwise UsrA can't obtain correct password, like this, just prevent that a random IUsr is set to the situation generation of mask.
After step 3204, HSvr-A received the described affirmation password of UsrA transmission, relatively whether this affirmation password was consistent with the password that produces, and for example, whether equated that if consistent, then the GUID according to UsrA preserves described mask lusu#99 in the mask information table; Otherwise, finish.
Like this, when the password that the affirmation password that sends as UsrA and HSvr-A send to described mask was inconsistent, HSvr-A is the described mask setting operation of refusal execution just.So just can prevent that UsrA from other IUsr occuring as the situation of mask without permission.
In the middle of the reality, described mask arranges request and also can be initiated by corresponding mask.For example: UsrA is sunquan#qq, and the lusu#99 wish oneself is set to the mask of UsrA:
Step 3301, lusu#99 will comprise that by the HSvr that oneself belongs to the mask of the GUID of owner UsrA arranges the HSvr-A that request sends to the UsrA ownership.
When lusu#99 ownership and HSvr-B, HSvr-B sends to the HSvr that belongs to described owner, i.e. HSvr-A with described message.
After step 3302, HSvr-A receive that described mask arranges request, from request message, obtain GUID and the corresponding mask lusu#99 of owner UsrA; HSvr-A produces a password, and this password is sent to described mask lusu#99.
Here, mask lusu#99 is carried in step 3301 in the described message, it also can be the corresponding relation that the HSvr of mask lusu#99 ownership has set up client and GUID, the HSvr of mask lusu#99 ownership is according to the client that sends described message, obtain corresponding GUID according to having set up client with the corresponding relation of GUID, be lusu#99, lusu#99 is included in the described message.
Step 3303, lusu#99 or UsrA send to HSvr-A and confirm password.
After step 3304, HSvr-A receive the described affirmation password of lusu#99 or UsrA transmission, whether relatively whether this affirmation password is consistent with the password that produces, for example, equate, if consistent, then the GUID according to UsrA preserves described mask lusu#99 in the mask information table; Otherwise, finish.
Being preferred embodiment of the present invention only below, is not for limiting protection scope of the present invention.All in the spirit and principles in the present invention and so on, any modification of doing, improve, be equal to replacement etc. and all should be included within protection scope of the present invention.

Claims (10)

1. a Face Changing method is characterized in that, HSvr sets in advance mask and owner's corresponding relation, said method comprising the steps of:
B, HSvr receive the message of having carried purpose GUID of the user A transmission that belongs to oneself; According to the mask that arranges and owner's corresponding relation, determine the requestor of message;
C, described HSvr are included in the requestor of described definite message in the described message.
2. method according to claim 1 is characterized in that, comprises that also the requestor indicates in the corresponding relation of described mask and owner's client;
In step b, comprise that further the requestor indicates in the described message that user A sends, described according to the mask of setting and owner's corresponding relation, the requestor who determines message further is: according to the requestor's sign that carries in the message, according to the mask that arranges and owner's corresponding relation, determine the requestor of message.
3. method according to claim 1 is characterized in that, further comprises step a before the step b: according to the mask that arranges and owner's corresponding relation, set up the corresponding relation of mask and owner's client;
Described step b further is: receive the message of having carried purpose GUID of the user A transmission that belongs to oneself, according to the client that sends this message, according to the mask of setting up and the corresponding relation of owner's client, determine the requestor of message.
4. method according to claim 3 is characterized in that, described step a further is: create online record in online user's information table, according to login GUID, according to the mask that arranges and owner's corresponding relation, obtain corresponding mask; The corresponding relation of login GUID, the mask that obtains and owner's client is kept in the online record of establishment;
In step b, comprise that further the requestor indicates in the described message that user A sends; Described client according to sending this message, according to the mask of setting up and the corresponding relation of owner's client, the requestor who determines message further is: according to the client that sends this message, from online user's information table, determine the online record at the requestor place of message;
Described step c further is: judge that described request person sign is whether for being 0, if, then corresponding login GUID in the online record that obtains is included in the described message as the requestor of described message, otherwise, the requestor of corresponding mask in the online record that obtains as described message is included in the described message.
5. method according to claim 3 is characterized in that, comprises that also the requestor indicates in the corresponding relation of described mask and owner's client;
In step a, the described corresponding relation of setting up mask and owner's client further carries out according to requestor's sign of corresponding mask;
In step b, comprise that further the requestor indicates in the described message that user A sends, correspondingly, described client according to sending this message, corresponding relation according to mask and owner's client, the requestor who determines message further is: according to the requestor's sign that carries in the client that sends this message and the message, according to the corresponding relation of mask and owner's client, determine the requestor of message.
6. method according to claim 5 is characterized in that,
In step a, described mask is kept in the different tables according to requestor's sign from the corresponding relation of owner's client;
In step b, according to the requestor's sign that carries in the client that sends this message and the message, corresponding relation according to mask and owner's client, the requestor who determines message further is: indicate the mapping table of determining the needs retrieval according to the requestor who carries in the message first, then determine the requestor of message according to the client of this message from determined mapping table.
7. method according to claim 1 is characterized in that, further comprises step a before the step b: according to the mask that arranges and owner's corresponding relation, described HSvr produces session identification, sets up the corresponding relation of session identification, mask and owner's client; Described session identification is sent to corresponding owner;
Described step b further is: described HSvr receives the message of having carried session identification and purpose GUID of the user A transmission that belongs to oneself, according to described session identification, according to the corresponding relation of described session identification, mask and owner's client, determine the requestor of message.
8. a Face Changing method is characterized in that, HSvr sets in advance mask and owner's corresponding relation, said method comprising the steps of:
B, described HSvr receive the message of having carried requestor GUID and purpose GUID of the user A transmission that belongs to oneself;
C, described request person is verified, checking by the time, forward follow-up flow process to, end process when authentication failed; Described checking refers to: according to true request person GUID, carry out according to the mask that arranges and owner's corresponding relation.
9. method according to claim 8 is characterized in that, further comprises step a before the step b: according to the mask that arranges and owner's corresponding relation, described HSvr sets up the corresponding relation of mask and owner's client;
Correspondingly, in step c, described checking refers to: according to the client that sends this message, according to the corresponding relation of mask and owner's client described request person is verified.
10. a mask method to set up is characterized in that, said method comprising the steps of:
A, HSvr obtain owner and mask after receiving that mask arranges request, then produce password, and the password that produces is sent to described mask;
B, described HSvr receive the affirmation password from described owner or mask;
C, described HSvr judge whether the affirmation password that receives is consistent with the password of generation, if consistent, then preserve described mask according to described owner.
CN2013100699469A 2012-04-09 2013-03-06 Identity changing method Pending CN103368822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100699469A CN103368822A (en) 2012-04-09 2013-03-06 Identity changing method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201210100116 2012-04-09
CN201210100116.3 2012-04-09
CN2013100699469A CN103368822A (en) 2012-04-09 2013-03-06 Identity changing method

Publications (1)

Publication Number Publication Date
CN103368822A true CN103368822A (en) 2013-10-23

Family

ID=49369393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100699469A Pending CN103368822A (en) 2012-04-09 2013-03-06 Identity changing method

Country Status (1)

Country Link
CN (1) CN103368822A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538551A (en) * 2013-11-25 2020-08-14 联想(北京)有限公司 Information processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020165961A1 (en) * 2001-04-19 2002-11-07 Everdell Peter B. Network device including dedicated resources control plane
CN101197738A (en) * 2006-12-06 2008-06-11 赵建奇 Wide band mobile visible communication network system
CN101860559A (en) * 2009-04-08 2010-10-13 中兴通讯股份有限公司 Peer-to-peer network and resource information backup operation method based on same
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020165961A1 (en) * 2001-04-19 2002-11-07 Everdell Peter B. Network device including dedicated resources control plane
CN101197738A (en) * 2006-12-06 2008-06-11 赵建奇 Wide band mobile visible communication network system
CN101860559A (en) * 2009-04-08 2010-10-13 中兴通讯股份有限公司 Peer-to-peer network and resource information backup operation method based on same
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538551A (en) * 2013-11-25 2020-08-14 联想(北京)有限公司 Information processing method and electronic equipment

Similar Documents

Publication Publication Date Title
US8200819B2 (en) Method and apparatuses for network society associating
US20220086158A1 (en) Domain-based isolated mailboxes
US8151336B2 (en) Devices and methods for secure internet transactions
US7711786B2 (en) Systems and methods for preventing spam
US20040236838A1 (en) Method and code for authenticating electronic messages
CN105229985B (en) Identity tokens
US9603171B2 (en) Contact information management methods and apparatus
US20060121880A1 (en) Method and apparatus for enabling authorized and billable message transmission between multiple communications environments
CN103607416B (en) A kind of method and application system of the certification of network terminal machine identity
US20130346331A1 (en) Methods and systems for asymmetric exchange of content
US20110125845A1 (en) Method and Apparatus for Sending Authentication Request Message in a Social Network
US9230286B2 (en) Methods and systems for associating users through network societies
EP1645999A1 (en) Method and system for embedding user profile information in electronic messages
CN102158468A (en) Method for sharing and acquiring data in social network service (SNS)
US20120195234A1 (en) Method for policy-based control of enterprise messaging
US20070255815A1 (en) Software, Systems, and Methods for Secure, Authenticated Data Exchange
US20080320105A1 (en) System, server and information terminal for detection of a black hat
US11995176B2 (en) Platform for generation of passwords and/or email addresses
KR101960368B1 (en) Systems and methods for providing and operating a secure communication network
WO2012113288A1 (en) Method and device for keeping mail address secret
JP4832922B2 (en) Mail forwarding system
CN114462944A (en) Logistics safety management method and system based on big data environment application
WO2021031801A1 (en) Indexing system and method for protecting user privacy in social network
US20060031325A1 (en) Method for managing email with analyzing mail behavior
EdalatNejad et al. {DatashareNetwork}: A Decentralized {Privacy-Preserving} Search Engine for Investigative Journalists

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Wuhou District Shaoling road Chengdu city Sichuan province 610000 No. 29 2-2-3 Li Huaijiang

Applicant after: Wang Zhengwei

Address before: 610000 Sichuan city in Chengdu province Wuhou Temple Street No. 87 (empty Jiashuyuan) 1 Building 1 unit 3

Applicant before: Wang Zhengwei

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131023