Summary of the invention
The present invention is directed to the defective or the deficiency that exist in the prior art, data flow control method in a kind of mobile immediate communication system is provided.Adopt this method, can reduce the transmission that repeats of friend information, professional the taking of mobile data network resource improved data signaling rate, reduce transmission fault, reach the purpose of improving user experience when saving customer using cost thereby reduce.
Technical conceive of the present invention is, carry out client storage by friend information to the user, when user's friend information changes, user's friend information that only will take place to change sends to client and preserves together with the information of originally having preserved, so both guaranteed the integrality of user's friend information, greatly reduce the flow of network service again, avoid the user when starting client use business, need to receive from server again all friend informations of user thereby reach; User's friend information of avoiding the user in use not change simultaneously by the continuous reception of mobile data network.
Technical scheme of the present invention is as follows:
Data flow control method in a kind of mobile immediate communication system, comprise the mobile immediate communication server and carry out the client that data are connected with it by mobile data network, transfer of data between this client and this server includes user's friend information and discusses information, it is characterized in that: described client has carries out the function of client storage and described user's friend information is carried out client storage described user's friend information, with the transmission that repeats of friend information in the minimizing system.
Described client storage may further comprise the steps: step 1, and the user starts client; Step 2, client connects with server by mobile data network; Step 3, client connects game server by data; Step 4 uses professional user to carry out the authentication of identity by server; Step 5, client receives the friend information that the user has existed from server; Step 6, user's friend information is in client storage; Step 7, good friend's state variation of server real-time judge user; Step 8, the user's friend information after server will change is sent to client; Step 9, the user's friend information after client changes is preserved.
User in the described step 1 starts mode that client adopts for manually booting or starting automatically; The mode that connection in the described step 2 is adopted is, behind client terminal start-up, the data network connecting interface that client provides by calling the mobile terminal software platform is set up and connected with the data between the server; User's friend information in the described step 5 receives the mode that is adopted and is the user's friend information that has existed that the disposable reception server of client sends over; User's friend information in the mode that client storage adopted is in the described step 6, client is after receiving user's friend information that server passes over, user's friend information is kept at certain form in the file system of client, uses when using business in order to the user.
The mode that the client that is sent to user's friend information after server in the described step 8 will change adopts is: client is initiatively sent request, user's friend information that request server will change is sent to client, so that the user is in using professional process, good friend's state of knowing oneself and other information that can be clear and definite; And/or, the inspection user's that server is continuous or periodic friend information, whether the detecting friend information variation has taken place, in case change, friend information after just will changing sends to client, so that the clear and definite at any time good friend's state of knowing oneself of user and other some information.
User's friend information after client in the described step 9 changes is preserved the mode that is adopted: client compares the user's friend information that receives with the friend information that is kept at client, existed but variation has taken place if belong to friend information, then the friend information that will exist is made amendment, make it with change after information consistent, and amended information preserved; And/or client compares the user's friend information that receives with the friend information that is kept at client, if belong to the good friend who increases newly, then the friend information that increases newly is kept at client together with the friend information of having preserved.
Described client storage comprises by server and initiatively sends the method that friend information carries out client storage, and/or, send the method that friend information carries out client storage by the user end to server request.
Describedly initiatively send the method that friend information carries out client storage by server and comprise the steps:
Manually/automatically startup of steps A, client;
Step B, client call terminal mobile data network interface;
Step C, client connects with server by mobile data network;
Step D, client sends to server with user's authentication information;
Step e, server judge whether the user is validated user, if illegal, then point out the illegal and broken clients end of user with the connection of server, return step B, if legal, then enter step F;
Whether step F, all friend informations of user be in client storage, and if not, then server is delivered to all friend informations of user client and enters step I, if then enter step G;
Step G, whether user's friend information changes, if do not change then enter step J, if change, then enters step H;
Step H, the user's friend information after server will change passes to client;
Step I, client is preserved user's friend information;
Step J finishes the friend information transmission.
Describedly send the method that friend information carries out client storage, comprise the steps: by the user end to server request
Step a, manually/automatically startup of client;
Step b, client call terminal mobile data network interface;
Step c, client connects with server by mobile data network;
Steps d, client sends to server with user's authentication information;
Step e, server judge whether the user is validated user, if illegal, then point out the illegal and broken clients end of user with the connection of server, return step b, if legal, then enter step f;
Step f judges all friend informations of user and does not preserve in client;
Step g, user end to server sends request and transmits user's friend information;
Step h, the request of the transmission user friend information that server reception client sends over;
Step I, server is sent to client with user's friend information;
Step j, client is preserved user's friend information, and friend information transmits and finishes.
Technique effect of the present invention is as follows:
Because data flow control method in a kind of mobile immediate communication system of the present invention, adopted the technical measures of client storage, make client in the professional use no longer frequent receive the user's friend information that does not change from server.This data flow control method can be avoided the user to bring into use business at every turn and when starting client, needs to receive from server again all friend informations of user; User's friend information of avoiding the user in use not change simultaneously by the continuous reception of data network, can save the lot of data flow, reduce professional taking to the mobile data network resource, improve data signaling rate, reduce transmission fault, thereby the stand-by period that has shortened the user owing to the transmission time that has reduced data when saving customer using cost is improved user experience.
Embodiment
Further the present invention is described in detail with specific embodiment with reference to the accompanying drawings below.
At first, core of the present invention is described, user's friend information transmits and preserves in client, comprising: 1. user's friend information all is sent to client by the data connection and all preserves in client; Connecting friend information after will changing by data when 2. user's friend information changes is sent to client and preserves in client.
Further specify corresponding transfer of data of this transmission and preserving type and preserving type, wherein:
One, the user friend information store method 1. corresponding: when the user uses when professional by client for the first time with mode, at this time owing to the friend information of client without any the user, need obtain friend information that all user's friend information () servers initiatively send the user to client by two kinds of approach, and preserve in client; (2) client initiatively requires to transmit user's friend information and preserves to client and in client.Below method (), (two) are described respectively:
(1) server initiatively sends friend information and arrives client: as Fig. 1, after client connects foundation with data in server, and user's identity is the authentication by server, it is that the first pass client is used business that server is judged the user, so client is without any friend information, at this time, server connects by data, initiatively the whole friend informations with the user that preserves in the server send to client, and client is preserved all friend informations.
(2) client initiatively requires to transmit friend information: as Fig. 2, after client is set up with the connection of server, and user's identity is the authentication by server, client is judged the user and is used this business for the first time, so client is without any friend information, at this time, client connects by data, send request to server, the request service is sent to client with all friend informations of user, server sends to client with all friend informations by the data connection after the request of receiving client, client is preserved all friend informations.
Two, transmit and store method with the 2. corresponding user's friend information of mode: when user's friend information changed, (one) server initiatively sent the user's who changes friend information and preserves to client and in client; (2) client initiatively requires to transmit the user's friend information that changes and preserves to client and in client.Below method (), (two) are described respectively:
(1) server initiatively sends the user's friend information that changes and arrives client, and preserve: as Fig. 1 in client, when the friend information that server determines the user changes, connect by data, initiatively the user's friend information of preserving in the server that changes is sent to client, client is preserved the friend information that changes.
(2) client initiatively requires server to transmit friend information, and preserve: as Fig. 2 in client, client is in the regular hour, initiatively send message to server, whether inquiry user's friend information changes, if change, server is after the request of receiving client, whether the friend information of judging the user changes, if change, friend information after then will changing sends to client by the data connection, and client is preserved the friend information that changes.
Illustrated in figures 1 and 2, shown that specifically the technology of the present invention problem solves like this, the control mode of the communication flows of client and server in a kind of mobile immediate communication system is provided, comprise step:
1.1) user starts client; The user is when using instant messaging service to begin, and at first will start in the portable terminal is the client of communication system.
According to data flow control method provided by the invention, described user starts client, it is characterized in that, and is further comprising the steps of:
1.1.1) can be that the user is when business is used in hope, by manually starting client;
1.1.2) can be when the user opens portable terminal, according to the configuring condition of portable terminal, mobile terminal system starts client automatically.
1.2) client connects with server by mobile data; Behind client terminal start-up, client also is API (ApplicationProgram Interface) by the data network connecting interface that calls the mobile terminal software platform and provide, foundation connects with the data between the server, for path is prepared in the transmission of data between client and server that goes on foot down.
1.3) client lands service end; After client had been set up with the connection between the server, client was with the link information of necessity, and as the attribute of client, version information etc. and user's authentication information sends to server as information such as username and passwords.
1.4) authenticating user identification; Whether server is after receiving the user authentication information that client sends over, and the user's who has existed with server legal information compares, legal with the identity of determining the user.Just return the legal information of identity to client if user identity is legal, and allow the user to use business to client.If the non-rule of user identity sends the identity invalid information to client, forbid that the user uses part or all of business.
1.5) client receives the user from server and be retained in whole friend informations the server; According to data flow control method provided by the invention, described client receives user's friend information from server, it is characterized in that further comprising the steps of:
1.5.1) if do not preserve the Any user friend information in the client, then sending request to server, request server sends all good friends' of user information, and server sends to client with all friend informations after the request of receiving;
1.5.2) server also can independently judge whether there is all or part of friend information in the client, if not existence then sends to client with all or part of friend information;
1.5.3) if there has been user's friend information in client, then server only need send to client with the user's friend information that changes.
1.6) user's friend information is in client storage; Client is kept at user's friend information in the file system of client after receiving user's friend information that server passes over certain form, use when using business in order to the user.
According to data flow control method provided by the invention, described client storage user's friend information is characterized in that further comprising the steps of:
1.6.1) client compares with the friend information of having preserved in client the friend information that receives, when good friend's friend information exists when any variation not taking place in client, client is not preserved this part good friend's information;
1.6.2) client compares with the friend information of having preserved in client the friend information that receives, when good friend's message part or all change, client will be preserved the friend information after changing.
1.7) good friend's state variation of the real-time judgement user of server; In the use of business, whether server changes the continuous or periodic user's of judgement user profile, if do not change, does not then send friend information to client, if variation has taken place, then prepare to send the user's friend information changed to client.
1.8) user's friend information after server will change sends to client; Server passes to client by user's friend information that the data that are based upon between the client and server will connect after will changing.According to data flow control method provided by the invention, described user's friend information sends to client, it is characterized in that, may further comprise the steps:
1.8.1) client can extract friend information from server; Client can initiatively be sent request, and user's friend information that request server will change is sent to client, so that the user is in using professional process, and good friend's state of knowing oneself and other information that can be clear and definite;
1.8.2) server initiatively sends to client with friend information; Server is with continuous or periodic inspection user's friend information, examine the survey friend information whether variation has taken place, in case change, the friend information after just will changing sends to client, so that good friend's state of knowing oneself that the user can be clear and definite at any time and other some information.
1.9) user's friend information after client changes keeps; Client is kept in the client after user's friend information original in the client is integrated with being kept at having received generation that server passes over behind the user's friend information that changes.
According to data flow control method provided by the invention, described user's friend information is kept at client, it is characterized in that, may further comprise the steps:
1.9.1) client compares user's friend information of receiving with the friend information that has been kept at client, existed but variation has taken place if belong to friend information, then the friend information that will exist is made amendment, make it with change after information consistent, and amended information preserved.
1.9.2) client compares user's friend information of receiving with the friend information that has been kept at client's section, if belong to the good friend who increases newly, then the friend information that increases newly is kept at client together with the friend information of having preserved.
1.10) client do not need frequent to receive the whole friend informations of user from service end.Because there has been the user's friend information that does not change in client, do not need to receive whole user's friend informations from service end, receive only the part that changes.So both guaranteed the integrality of user's friend information, greatly reduced the flow of communication again, and avoided the user when starting client use business, needed to receive from server again all friend informations of user thereby reach; User's friend information of avoiding the user in use not change simultaneously by the continuous reception of data network, can reach and save the lot of data flow, reduce professional taking to the mobile data network resource, improve data signaling rate, reduce transmission fault, improve the purpose of user experience when saving customer using cost.
Should be pointed out that the above execution mode can make those skilled in the art more fully understand the present invention, but do not limit the present invention in any way.Therefore, although this specification has been described in detail to the present invention,, it will be appreciated by those skilled in the art that still and can make amendment or be equal to replacement the present invention; And all do not break away from the technical scheme and the improvement thereof of spirit of the present invention, and it all should be encompassed in the middle of the protection range of patent of the present invention.