The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on
The device for realizing instant messaging in the client for stating problem and the method for realizing instant messaging in the client accordingly.This
Bright one further objective is that will be so that avoid the overlapping development of user client communication function.
The present invention another further objective is that and to integrate user data, reduce repeated registration and the login of user.
According to one aspect of the present invention, there is provided a kind of method for realizing instant messaging in the client.The method bag
Include:Instant messaging common interface storehouse is loaded into by client, presetting in instant messaging common interface storehouse carries out stepping on for instant messaging
Record interface, first information Processing Interface, the second information processing interface;The log-on message that client is logged in is sent to into login
Interface, by login interface the login process of instant communication server is performed according to log-on message;Login interface is received by client
What is returned logins successfully after information, and instant messaging interface is generated on client end interface;Obtain pending by instant messaging interface
The information sent, and information to be sent is sent to into first information Processing Interface, to transmit to be sent by first information Processing Interface
Information, and the receive information that comes from the second information processing interface is received and exported by instant messaging interface.
Alternatively, log-on message includes client identification, ID and user's key, and login interface performs instant messaging
The login process of server includes:Inquire about corresponding instant in instant log table according to client identification by login interface
Communication chat room;Log-in instant communication is sent from login interface to instant communication server using ID and user's key to chat
The request of its room, and the login result that instant communication server is returned is forwarded to into client.
Alternatively, instant messaging record sheet is generated according to the extensible markup language form of multistage node structure, by logging in
Interface inquires about corresponding instant messaging chatroom according to client identification in instant log table to be included:Pressed by login interface
According to according to client identification step by step in instant log table inquire about, to obtain most bottom level node in record instant messaging chat
Its room information.
Alternatively, the node of instant messaging record sheet is three-level, and the affiliated platform of first order nodes records client is believed
Breath, the information of second level nodes records client, the corresponding chatroom identification information of third level nodes records client.
Alternatively, sent to instant communication server using ID and user's key from login interface and log in IMU
The request of news chatroom includes:ID and user's key are sent from login interface to client server, with by user service
Device is verified to ID and user's key, and the checking information that receive user server is issued;Give birth to according to checking information
Send into logging request and to instant communication server.
Alternatively, information to be sent is sent to into first information Processing Interface includes:By information cache to be sent to
The memory block of one information processing interface, to be read by first information Processing Interface, the memory block of first information Processing Interface according to
The mark of client is allocated.
Alternatively, information to be sent includes:The corresponding information of web page element loaded in the browser chosen by user,
Obtaining information to be sent by instant messaging interface includes:Operation of the monitoring user to web page element;It is default in operation
In the case of operation, the corresponding information of web page element is obtained by instant messaging interface.
Alternatively, the receive information bag for coming from the second information processing interface is received and exported by instant messaging interface
Include:Receive the PUSH message of the second information processing interface transmission, receive information of the PUSH message according to the second information processing interface
Generate;Receive information is read according to PUSH message in the memory block of the second information processing interface.
Alternatively, read in the memory block of the second information processing interface after receive information according to PUSH message and also wrap
Include:Judge the type of receive information, exported with the corresponding exhibition method of the type of receive information.
Alternatively, carrying out output with the corresponding exhibition method of the type of receive information includes:Generate in a browser and receive
The corresponding page of type of information, and receive information is loaded in the page.
Alternatively, information to be sent and receive information respectively include it is following any one or more:Word, audio frequency, regard
Frequently, image, file.
Alternatively, also preset in instant messaging common interface storehouse and exit interface, when client exits instant messaging, by
Client is logged off request to exiting interface and send, with by exiting interface according to request cancellation of logging off in instant communication garment
Logging status in business device, and disconnect the data cube computation with instant communication server.
According to another aspect of the present invention, a kind of device for realizing instant messaging in the client is additionally provided.The dress
Put including:Login process module, is configured to receive the log-on message for coming from client, and according to log-on message instant messaging is performed
The login process of server, and the instant communication server to client forwarding logins successfully information;The first information processes mould
Block, is configured to receive the information to be sent obtained by client, and by information transmission instant communication server to be sent;The
Two message processing modules, are configured to receive and come from the receive information that instant communication server is issued, and are transmitted to client.
Alternatively, login process module includes:Extracting sub-module, be configured to extract log-on message in client identification,
ID and user's key;Inquiry submodule, is configured to that correspondence is inquired about in instant log table according to client identification
Instant messaging chatroom;Transmission submodule, is configured so that ID and user's key send to instant communication server
The request of log-in instant communication chatroom, and the login result that instant communication server is returned is forwarded to into client.
Alternatively, inquire about submodule to be additionally configured to:According to being looked in instant log table step by step according to client identification
Ask, to obtain most bottom level node in record instant messaging chatroom information, instant messaging record sheet is according to multistage node structure
Extensible markup language form generate.
Alternatively, transmit submodule to be additionally configured to:ID and user's key are sent to client server, with by user
Server is verified to ID and user's key, and the checking information that receive user server is issued;According to checking letter
Breath generates logging request and sends to instant communication server.
Alternatively, first information processing module is additionally configured to:From in the first memory block reading client caching it is to be sent
Information, the first memory block is allocated according to the mark of client.
Alternatively, information to be sent includes:The corresponding information of web page element loaded in the browser chosen by user,
First information processing module is additionally configured to:Operation of the monitoring user to web page element;In the case where operation is for default operation,
The corresponding information of web page element is obtained by instant messaging interface.
Alternatively, the second message processing module is additionally configured to:According to the receive information issued from instant communication server to
Client sends pushed information, and receive information is stored to the second memory block;So that client reads from the second memory block
Receive information.
Alternatively, the second message processing module is additionally configured to:The corresponding page of type of receive information is generated in a browser
Face, and receive information is loaded in the page.
Alternatively, the device for realizing instant messaging in the client of the invention also includes exiting module, is configured to:In visitor
When instant messaging is exited at family end, the request of logging off that client sends is received;The request according to logging off is nullified in IMU
Logging status in inquiry server, and disconnect the data cube computation with instant communication server.
The method for realizing instant messaging in the client of the present invention, by client instant messaging common interface storehouse is loaded into,
The various functions of instant messaging are completed using every interface in instant messaging common interface storehouse, is the user using same client
There is provided intercommunion platform.
Further, it is of the invention to realize that the method for instant messaging avoids the need for the visitor to difference in functionality in the client
Instant communication function is individually developed at family end, has been saved and has been exploited natural resources.
Further, the method for realizing instant messaging in the client of the invention uses the ID of client to make
For the log-on message of instant messaging, repeat registration without the need for user and log in, effectively integrate user data.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
According to the detailed description below in conjunction with accompanying drawing to the specific embodiment of the invention, those skilled in the art will be brighter
Above-mentioned and other purposes, the advantages and features of the present invention.
Specific embodiment
Provided herein algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment.
Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this
Bright preferred forms.
Fig. 1 is the schematic diagram of the device 100 for realizing instant messaging in the client according to an embodiment of the invention.
The device 100 of instant messaging is realized in client be may include in general manner:Login process module 110, first information processing module
120th, the second message processing module 130, exit module 140, can be according to the realization in the client of the present embodiment with upper module
The concrete function of the device 100 of instant messaging is flexibly configured, and in certain embodiments, can not simultaneously be configured all
Module.Login process module 110 is optionally provided with:Extracting sub-module 112, inquiry submodule 114, transmission submodule
116。
Login process module 110 is configured to receive the log-on message for coming from client, performs according to log-on message instant
The login process of communication server, and the instant communication server to client forwarding logins successfully information.Login process mould
Block 110 uses the log-on message of client as the log-on message of instant messaging, carries out repeated registration without the need for user and login is exempted from,
Such that it is able to effectively integrate user resources, the ease of use of user is improve.
In an alternate embodiment of the present invention where, login process module 110 is included:Extracting sub-module 112, inquiry
Module 114 and transmission submodule 116.Extracting sub-module 112 can extract client identification in log-on message, ID and
User's key;Inquiry submodule 114 can inquire about corresponding instant messaging according to client identification in instant log table
Chatroom;Transmission submodule 116 sends log-in instant communication and chats using ID and user's key to instant communication server
The request of its room, and the login result that instant communication server is returned is forwarded to into client.
The instant messaging record sheet that uses of inquiry submodule 114 according to multistage node structure extensible markup language form
(Extensible Markup Language, abbreviation XML) is generated, and XML format can carry out structuring process to data, is realized
Dynamic content generates and ensure that and can more quickly and accurately inquire about.Inquiry submodule 114 can according to according to client identification by
Level is inquired about in instant log table, obtains the instant messaging chatroom information recorded in most bottom level node.
For example, the node of instant messaging record sheet can select to be set to three-level, the institute of first order nodes records client
The platform information of category, the information of second level nodes records client, the corresponding chatroom mark of third level nodes records client
Information.Inquiry submodule 114 can first according to client identification determine belonging to platform, find out first order node, Ran Hou
The Section Point matched with client identification is found out in Section Point under the first order node, finally from second for finding out
Data under level node obtain the corresponding instant messaging chatroom information of client.Namely most in bottom level node record with visitor
The instant messaging chatroom information of family end mark matching.
Transmission submodule 116 to client server sends ID and user's key, with by client server to user
Mark and user's key are verified, and the checking information that receive user server is issued;Generate to log according to checking information and ask
Ask and send to instant communication server.Above client server is used to complete its business function for possessing with client.Client
End is logged in using ID and user's key in client server, performs corresponding service.Client server is to user
Mark and after user's key is verified, can provide business service to client, and in the present embodiment, client server is tested
Card information can be with by logging request of the transmission submodule 116 as the timely communication server of generation.
First information processing module 120 is used to receive the information to be sent obtained by client, and by letter to be sent
Breath transmission instant communication server.One kind specifically performs flow process:First information processing module 120 is read from the first memory block
The information to be sent of client-cache is taken, the first memory block is allocated according to the mark of client.Above letter to be sent
Breath includes:The corresponding information of web page element loaded in the browser chosen by user, information to be sent can pass through following
Mode is obtained:Operation of the monitoring user to web page element;In the case where operation is for default operation, obtained by instant messaging interface
Take the corresponding information of web page element.For browser client, above predetermined registration operation can be such as:User pulls video network
The instant messaging of page element to client sends window, and client obtains the URL of video web-pages element
(Uniform Resource Locator, be abbreviated as URL) and video presentation information simultaneously transfer to first information processing module 120
It is transmitted;User's sliding mouse selected text, the word that client acquisition is chosen simultaneously transfers to first information processing module 120 to enter
Row sends;User pulls and chooses picture, and client obtains the picture chosen and is transmitted;User pulls and chooses download link, visitor
Family end obtains the URL or cloud disk corresponding address of download file and transfers to first information processing module 120 to be transmitted;User exists
When carrying out clicking address in address field, the URL in address field can be transferred to first information processing module 120 to carry out sending out by client
Send.
Second message processing module 130 is configured to receive and comes from the receive information that instant communication server is issued, and turns
Issue client.One kind specifically performs flow process:Second message processing module 130 by instant communication server according to being issued
Receive information to client sends pushed information, and receive information is stored to the second memory block;So that client is deposited from second
Receive information is read in storage area.The exhibition method of receive information can be:The type correspondence of receive information is generated in a browser
The page, and generate the page in load receive information.
Exiting module 140 can receive the request of logging off that client sends when client exits instant messaging;Press
The logging status in instant communication server are nullified according to request of logging off, and disconnects the data company with instant communication server
Connect, terminate the process of instant messaging.
The device 100 for realizing instant messaging in the client of the present embodiment can be configured at the user for being provided with client
In terminal, such as in PC, panel computer, smart mobile phone.Client can actively or passively provide media content as i.e.
When communication information, media content is included in good friend's dialog box or is shown otherwise, on the one hand provide for client
Real-time communication meanses, the source on the other hand also making instant communication information more enriches, extensively, so as to attract more use
Family.And realize that the device 100 of instant messaging can also pass through software development kit (Software in the client of the present embodiment
Development Kit, abbreviation SDK) configured, the API for realizing instant communication function is provided for client
(Application Programming Interface, abbreviation API), improves versatility.
The embodiment of the present invention additionally provides a kind of method for realizing instant messaging in the client, and this is realized in the client
The method of instant messaging can in the client be realized the device 100 of instant messaging by any one of above example introduction
Perform, realize the instant communication function in client.Fig. 2 is according to an embodiment of the invention realization in the client immediately
The schematic diagram of the method for communication, as illustrated, this realizes that in the client the method for instant messaging is comprised the following steps:
Step S202, by client instant messaging common interface storehouse is loaded into;
Step S204, by the log-on message that client is logged in login interface is sent to, by login interface according to login
Information performs the login process of instant communication server;
Step S206, is logined successfully after information by what client reception login interface was returned, is generated on client end interface
Instant messaging interface;
Step S208, by instant messaging interface information to be sent is obtained, and information to be sent is sent to into the first letter
Breath Processing Interface, to transmit information to be sent by first information Processing Interface, and is received and is exported by instant messaging interface
Come from the receive information of the second information processing interface.
Presetting in instant messaging common interface storehouse used in the embodiment of the present invention carries out instant messaging, the first information
Processing Interface, the second information processing interface, interface etc. is exited, above interface is respectively used to realize the part stream of instant messaging
Journey, wherein login interface complete to complete registration in instant communication server for client, and first information Processing Interface is used for
The acquisition and transmission of instant communication information are completed, the second information processing interface is used to complete the reception of instant communication information, exits
Interface is used to terminate instant messaging process.
Instant messaging common interface storehouse used in the embodiment of the present invention selects to use SDK components, the visit to instant messaging
Ask that rule, Data Transport Protocol, data transfer flow process are defined, the client with certain business function only need to be in IMU
Registered on news service platform, it is possible to by loading and call the SDK components to realize the instant communication function of client.With
Each interface in upper instant messaging common interface storehouse can be the API that SDK is provided.
The log-on message that step S204 is used can include client identification, ID and user's key, correspondingly, step
Suddenly a kind of optional flow process of S204 is:By login interface according to client identification inquire about in instant log table it is corresponding i.e.
When communication chat room;Log-in instant communication is sent from login interface to instant communication server using ID and user's key
The request of chatroom, and the login result that instant communication server is returned is forwarded to into client.
In above flow process, sending login to instant communication server using ID and user's key from login interface is
When communication chat room request include:ID and user's key are sent from login interface to client server, with by user
Server is verified to ID and user's key, and the checking information that receive user server is issued;According to checking letter
Breath generates logging request and sends to instant communication server.Client server is verified to ID and user's key
Afterwards, service can be provided to client.
Above-mentioned instant messaging record sheet is generated according to the XML of multistage node structure, inquires about corresponding instant messaging chatroom
A kind of flow process be:By login interface according to being inquired about in instant log table step by step according to client identification, to obtain most
The instant messaging chatroom information recorded in the level node of bottom.For example, the node of instant messaging record sheet can be selected as three-level, and
First nodes record the affiliated platform information of client, the information of second level nodes records client, third level nodes records
The corresponding chatroom identification information of client.So as to the process in inquiry chatroom can determine institute according to client identification first
Category platform, makes an inventory out first order node, then finds out and client identification in the Section Point under the first order node
The Section Point matched somebody with somebody, finally the data under the second level node for finding out obtain client corresponding instant messaging chatroom letter
Breath.The instant messaging chatroom information matched with client identification for namely recording most in bottom level node.
A kind of optional flow process of information transmission is in step S208:Information cache to be sent is connect to first information process
The memory block of mouth, to be read by first information Processing Interface.The memory block of above first information Processing Interface is according to client
Mark is allocated.
Information to be sent can include:The corresponding information of web page element loaded in the browser chosen by user, leads to
Crossing instant messaging interface acquisition information to be sent includes:Operation of the monitoring user to web page element;It is default behaviour in operation
In the case of work, the corresponding information of web page element is obtained by instant messaging interface.Above can be with to the predetermined registration operation of web page element
For example:User pulls the instant messaging of video web-pages element to client and sends window, and client obtains video web-pages element
URL (Uniform Resource Locator, be abbreviated as URL) and video presentation information are carried out and transferred to
First information Processing Interface sends;User's sliding mouse selected text, the word that client acquisition is chosen simultaneously transfers to the first information
Processing Interface is transmitted;User pulls and chooses picture, and the picture that client acquisition is chosen simultaneously transfers to first information Processing Interface
It is transmitted;User pulls and chooses download link, and client obtains the URL or cloud disk corresponding address that download file and transfers to the
One information processing interface is transmitted;When user carries out clicking address in address field, client can be by the URL in address field
And transfer to the transmission of first information Processing Interface.
A kind of optional flow process of information transmission is in step S206:The push for receiving the transmission of the second information processing interface disappears
Breath, PUSH message is generated according to the receive information of the second information processing interface;According to PUSH message in the second information processing interface
Memory block in read receive information.After receive information is read, the type of receive information can also be determined whether, to receive
The corresponding exhibition method of type of information is exported, for example, generate the corresponding page of type of receive information in a browser,
And load receive information in the page.
Information to be sent and receive information include respectively it is following any one or more:Word, audio frequency, video, image,
File.The information for receiving is if web page interlinkage, video file, picture file etc. can browsed in the form of web page element
When device side carries out loaded and displayed, a new webpage, the URL that opening information includes can be automatically generated in a browser
Corresponding address or the video file picture in new webpage load information etc..
In addition, can also preset in instant messaging common interface storehouse that interface is exited, when client exits instant messaging,
Log off request from client to exiting interface and send, with by exiting interface according to request cancellation of logging off in instant messaging
Logging status in server, and disconnect the data cube computation with instant communication server.
Above client can be that various providing a user with through safety verification customizes the various softwares, the applications that service, example
Can be such as browser, game, Dropbox, audio-visual broadcasting, the various clients of reading translation.
Fig. 3 is that network trip is applied in the method for realizing instant messaging in the client according to an embodiment of the invention
The schematic diagram of play platform, such as schemes, network game platform
Step S302, gaming platform client 200 sends gaming platform account password etc. and steps on to game user server 400
Record information, is logged in the game that the user is completed by game user server 400;
Step S304, game user server 400 to gaming platform client 200 return login result, game URL and
Instant communication user identification information;
Step S306, game user server 400 carries out the transmission of game data with gaming platform client 200, for
User is played;
Step S308, gaming platform client 200 sends out the mark of gaming platform account, password, gaming platform client
The device 100 for realizing instant messaging is given,
Step S312, the device 100 for realizing instant messaging sends gaming platform client to instant communication server 500
200 chatroom logging request, carries the log-on message of gaming platform client user and in gaming platform client in the request
The URL of the game subregion that the game or request started in end is entered;
Step S314, the chatroom matched with URL that the inquiry chatroom information record table of instant communication server 500 draws
Identification information;
Step S316, realizes that the device 100 of instant messaging sends chatroom and adds request to instant communication server 500;
Step S318, the chatroom that instant communication server 500 is added to the feedback request of device 100 for realizing instant messaging
Whether permission is added;
Step S320, after adding chatroom, realizes the device 100 of instant messaging with instant communication server 500 i.e.
When communication information transmission;
Step S322, the device 100 and gaming platform client 200 of realizing instant messaging carry out the biography of instant communication information
Send, representing for row information is entered by gaming platform client 200.
If there is because a certain game is to there is multiple chatrooms (such as meeting the demand for comparing hot game), then
Multiple instant messaging chatrooms mark that acquisition finds out;Then according to preset order is marked respectively to multiple instant messaging chatrooms
The messaging chat room mark of knowledge sends access request, until receiving the return information for allowing to access.That is, if there is one
Individual game or a game subregion can chat in the case that correspondence establishment has multiple chatrooms according to certain sequential query
Room is to be available for accessing (for example whether number exceedes upper limit etc.), until the chatroom for inquiring is available for accessing.
User is non-carry out instant chat first when, start gaming platform client after;Obtain gaming platform client
In the historical record played;The access information of the instant messaging chatroom that loading is matched with historical record.With historical record
The timely communication chat room of matching includes:Playing in historical record the most game of number of times or carries out number of times and at most plays correspondence
Instant messaging chatroom access information.A kind of preferred mode is:Signature analysis is carried out to historical record, to determine use
The game preference at family;Reception meets the game recommdation information of preference, and wherein game recommdation information includes institute's recommended games correspondence
Instant messaging chatroom access information.Such as user Jing is often simulated the game for managing class, then can push away to the user
The hot game for recommending Simulating management class is selected for user.
Using obtain gaming platform client log-on message as solicited message a part, for example obtain gaming platform
The log-on message of client, using log-on message as the solicited message for adding instant messaging chatroom a part, and to instant
Communication server sends solicited message.So as to avoid user's repeated registration from logging in.
In addition the method for realizing instant messaging in the client of the present embodiment can with according to log-on message to IMU
Inquiry server sends the request for creating instant messaging group;And the instant messaging group of establishment is returned in instant communication server
After success, by instant communication server to the peer user in instant messaging group carry out instant communication information transmission and/
Or receive, carry out carrying out the demand of instant messaging between small range member so as to meet client user.
In addition the method for realizing instant messaging in the client of the present embodiment can also be applied in browser, IMU
Used as the plug-in unit of browser, after user starts the plug-in unit, login interface obtains the login of browser client in news common interface storehouse
Information, is submitted to instant communication server as the Account Logon information of instant messaging using the account password of the browser and is sent
Logging request, the client identification of account password and browser of instant communication server in logging request etc., it is allowed to
User is entered in corresponding chatroom or chat group.
After log-in instant communication function, first information Processing Interface monitors operation of the user to web page element;In operation
In the case of for default operation (such as by web page element be dragged to specified location, select web page element after click on it is default send by
Button or menu), it can obtain the corresponding information of web page element with browser, transfer to first information Processing Interface to be transmitted.
The following is using web page element as instant messages transmission content several examples:User pulls video web-pages element extremely
The instant messaging of client sends window, and client obtains the URL (Uniform of video web-pages element
Resource Locator, are abbreviated as URL) and video presentation information transfer to first information Processing Interface to be transmitted;User
Sliding mouse selected text, client obtains the pen friends chosen and is transmitted by first information Processing Interface;User pulls choosing
Picture is taken, client obtains the picture chosen and transfers to first information Processing Interface to be transmitted;User pulls and chooses download link,
Client obtains the URL or cloud disk corresponding address of download file and transfers to first information Processing Interface to be transmitted;User is on ground
When carrying out clicking address in the hurdle of location, the URL in address field can be transferred to first information Processing Interface to be transmitted by client.
The instant messages that second information processing interface peer user sends, and the interface using browser opened up
Show, for example, can automatically generate a new webpage in a browser, the corresponding addresses of the URL that opening information includes or
Video file picture in new webpage load information etc..
For the security of guarantee information, the content of instant communication information can also be entered after instant communication information is received
Row security sweep, and the content to there is potential safety hazard more carries out safety instruction.For example in transmitting procedure information can be carried out
Security sweep and characteristic matching, shield or point out some to there is the information of potential safety hazard.
Browser is by calling instant messaging common interface storehouse, it is possible to achieve the instant messaging between browser client.
In a preferred embodiment of the invention, it is multiple by same developer or multiple different developers exploitation multiple client, can be with
Same instant messaging common interface storehouse is called respectively, instant messaging is carried out respectively, can also further save system resource, improve
Program operational efficiency.So that more clients use instant messaging common interface storehouse, it is ensured that information content source is more rich,
More extensively, customer group is more attracted.
Fig. 4 is that the method for realizing instant messaging in the client according to an embodiment of the invention carries out information transmission
Schematic diagram, calls the client 400 in common interface storehouse during instant communication information transmission is carried out, and client 400 passes through
User input or other modes obtain the information content to be sent, and the information content pending is cached into the first memory block 410,
Instant messaging common interface storehouse start, using first information Processing Interface 430 detect the first memory block 410 storage content more
New situation, reads after there is new information to be sent and by the information data of storage in first memory 410, sends to instant
Communication server 500, is transmitted from instant communication server 500 to peer user.Instant communication server 500 is to client
400 information contents for sending, can be cached into the second storage area 420 first, client 400 by the second information processing interface 440
The storage change situation of the second storage area 420 is detected, is read and is loaded by default mode.Transmitted by information above
Mode can in time transmit various types of information contents, such as the larger video information of data, pictorial information etc..
The method and apparatus that the present embodiment is provided, is loaded into instant messaging common interface storehouse, using instant messaging by client
Every interface in common interface storehouse completes the various functions of instant messaging, flat to provide exchange using the user of same client
Platform.And avoid the need for the client to difference in functionality and individually develop instant communication function, save and exploited natural resources.Further
Ground, can also use the ID of client as the log-on message of instant messaging, repeat registration without the need for user and log in,
User data is effectively integrated.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment required for protection one of arbitrarily
Can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Client modules realize, or with combinations thereof realization.It will be understood by those of skill in the art that can make in practice
Realized according to embodiments of the present invention realizing IMU in the client with microprocessor or digital signal processor (DSP)
The some or all functions of some or all parts in the device of news.The present invention is also implemented as performing here
(for example, computer program and computer program are produced for some or all equipment of described method or program of device
Product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or to appoint
What other forms is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame
Claim.
So far, although those skilled in the art will appreciate that detailed herein illustrate and describe multiple showing for the present invention
Example property embodiment, but, without departing from the spirit and scope of the present invention, still can be direct according to present disclosure
It is determined that or deriving many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognizes
It is set to and covers all these other variations or modifications.
The embodiment of the present invention additionally provides a kind of methods for realizing instant messaging in the client of A1., including:
Instant messaging common interface storehouse is loaded into by client, presetting in the instant messaging common interface storehouse is carried out immediately
The login interface of communication, first information Processing Interface, the second information processing interface;
The log-on message that the client is logged in is sent to into the login interface, by the login interface according to institute
State the login process that log-on message performs instant communication server;
Logined successfully after information by what the client reception login interface was returned, it is raw on the client end interface
Into instant messaging interface;
Information to be sent is obtained by the instant messaging interface, and the information to be sent is sent to into described first
Information processing interface, to transmit the information to be sent by the first information Processing Interface, and by the instant messaging
Interface receives and exports the receive information that comes from the second information processing interface.
A2. the method according to A1, wherein,
The log-on message includes client identification, ID and user's key, and the login interface performs IMU
The login process of inquiry server includes:
Corresponding instant messaging is inquired about in instant log table according to the client identification by the login interface
Chatroom;
Sent to instant communication server using the ID and user's key from the login interface and logged in
The request of the instant messaging chatroom, and the login result that the instant communication server is returned is forwarded to into the client
End.
A3. the method according to A2, wherein,
The instant messaging record sheet is generated according to the extensible markup language form of multistage node structure,
Corresponding instant messaging is inquired about in instant log table according to the client identification by the login interface
Chatroom includes:
Looked in the instant messaging record sheet step by step according to the client identification according to described by the login interface
Ask, to obtain most bottom level node in record instant messaging chatroom information.
A4. the method according to A3, wherein,
The node of the instant messaging record sheet is three-level, and the affiliated platform of client described in first order nodes records is believed
Breath, the information of client described in the nodes records of the second level, the corresponding chatroom mark letter of client described in third level nodes records
Breath.
A5. according to power A2 to A4 any one of method, wherein, by the login interface use the ID
Include to the request that instant communication server sends the login instant messaging chatroom with user's key:
The ID and user's key are sent from the login interface to client server, with by the user
Server is verified to the ID and user's key, and receives the checking letter that the client server is issued
Breath;
Logging request is generated according to the checking information and send to the instant communication server.
A6. the method according to A1, wherein, the information to be sent is sent to into the first information Processing Interface bag
Include:
By the memory block of the information cache to be sent to the first information Processing Interface, with by the first information
Processing Interface reads, and the memory block of the first information Processing Interface is allocated according to the mark of the client.
A7. the method according to A6, wherein,
The information to be sent includes:The corresponding information of web page element loaded in the browser chosen by user,
Obtaining information to be sent by the instant messaging interface includes:
Monitor operation of the user to the web page element;
In the case where the operation is for default operation, the web page element correspondence is obtained by the instant messaging interface
Information.
A8. the method according to A1, wherein, receive and export by the instant messaging interface and come from the second information
The receive information of Processing Interface includes:
Receive the PUSH message that the second information processing interface sends, the PUSH message according to second information at
The receive information of reason interface is generated;
The receive information is read according to the PUSH message in the memory block of the second information processing interface.
A9. the method according to A8, wherein, according to the PUSH message the second information processing interface storage
Read in area and also include after the receive information:
Judge the type of the receive information, exported with the corresponding exhibition method of the type of the receive information.
A10. the method according to A9, wherein, exported with the corresponding exhibition method of the type of the receive information
Including:
The corresponding page of type of the receive information is generated in a browser, and the reception is loaded in the page
Information.
A11. the method according to any one of A6 to A10, wherein,
The information to be sent and the receive information respectively include it is following any one or more:
Word, audio frequency, video, image, file.
A12. the method according to any one of A1 to A11, wherein also preset in the instant messaging common interface storehouse
Interface is exited,
When the client exits the instant messaging, from the client to it is described exit interface send log off
Request, to nullify the login shape in the instant communication server according to the request of logging off by the interface that exits
State, and disconnect the data cube computation with the instant communication server.
The embodiment of the present invention additionally provides a kind of devices for realizing instant messaging in the client of B13., including:
Login process module, is configured to receive the log-on message for coming from client, is according to log-on message execution
When communication server login process, and login successfully information to the described instant communication server of client forwarding;
First information processing module, is configured to receive the information to be sent obtained by the client, and treats described
Instant communication server described in the information transmission of transmission;
Second message processing module, is configured to receive and comes from the receive information that the instant communication server is issued, and
It is transmitted to the client.
B14. the device according to B13, wherein the login process module includes:
Extracting sub-module, is configured to extract client identification in the log-on message, ID and user's key;
Inquiry submodule, is configured to inquire about corresponding IMU in instant log table according to the client identification
News chatroom;
Transmission submodule, is configured so that the ID and user's key send to instant communication server and steps on
The request of the instant messaging chatroom is recorded, and the login result that the instant communication server is returned is forwarded to into the client
End.
B15. the device according to B14, wherein the inquiry submodule is additionally configured to:
Inquired about in the instant messaging record sheet step by step according to the client identification according to described, to obtain most bottom level
In node record instant messaging chatroom information, the instant messaging record sheet according to multistage node structure extensible markup
Language format is generated.
B16. the device according to B14 or B15, wherein, the transmission submodule is additionally configured to:
Send the ID and user's key to client server, with by the client server to the use
Family identifies and user's key is verified, and receives the checking information that the client server is issued;
Logging request is generated according to the checking information and send to the instant communication server.
B17. the device according to B13, wherein first information processing module is additionally configured to:
Read the information described to be sent of the client-cache from the first memory block, first memory block according to
The mark of the client is allocated.
B18. the device according to B17, wherein
The information to be sent includes:The corresponding information of web page element loaded in the browser chosen by user,
First information processing module is additionally configured to:
Monitor operation of the user to the web page element;
In the case where the operation is for default operation, the web page element correspondence is obtained by the instant messaging interface
Information.
B19. the device according to B13, wherein the second message processing module is additionally configured to:
Pushed information is sent to the client according to the receive information issued from the instant communication server, and by institute
State receive information to store to the second memory block;So that the client reads the receive information from second memory block.
B20. the device according to B19, wherein the second message processing module is additionally configured to:
The corresponding page of type of the receive information is generated in a browser, and the reception is loaded in the page
Information.
B21. the device according to any one of B13 to B20, also including module is exited, is configured to:
When the client exits the instant messaging, the request of logging off that the client sends is received;
Nullify logging status in the instant communication server according to the request of logging off, and disconnect with it is described
The data cube computation of instant communication server.