CN106961482A - A kind of information processing method and device, storage medium, electronic equipment - Google Patents
A kind of information processing method and device, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN106961482A CN106961482A CN201710214687.2A CN201710214687A CN106961482A CN 106961482 A CN106961482 A CN 106961482A CN 201710214687 A CN201710214687 A CN 201710214687A CN 106961482 A CN106961482 A CN 106961482A
- Authority
- CN
- China
- Prior art keywords
- server
- data message
- data
- connect
- communication connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/142—Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention discloses a kind of information processing method, methods described includes:If the first process requested and server communication, judge whether first process is set up with the server and communicate to connect;If first process is not set up with the server and communicated to connect, the second process is determined, wherein, second process is to set up to communicate to connect with the server, other processes in running process in addition to first process;The request of first process is transmitted to the server by the communication connection of second process and the server.The present invention also discloses a kind of information processor, storage medium and electronic equipment.
Description
Technical field
The present invention relates to electronic technology, more particularly to a kind of information processing method and device, storage medium, electronic equipment.
Background technology
At present, instant messaging has developed into collection exchange, information, search, ecommerce, office cooperation and corporate client clothes
The synthesization information platform that business etc. is integrated, is widely used in the routine work, life in people.There is instant messaging
In the page (Web) application of demand, it will usually set up long connection or short connection poll by front end page and enter line number with server
According to interaction.Multiple interprocess communications are had if user opens multiple windows to be communicated with server, cause server side pressure
Power increase, and because browser connects the limitation of number, Partial Window function may be caused not use.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of information processing method to solve problems of the prior art
And device, storage medium, electronic equipment, server link number can be reduced, server stress is reduced, so as to avoid because of connection number
Service is unavailable or limited caused by limitation.
What the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of information processing method, methods described includes:
If the first process requested and server communication, judge whether first process sets up logical with the server
Letter connection;
If first process is not set up with the server and communicated to connect, the second process is determined, wherein, described second
Process is to set up to communicate to connect with the server, other processes in running process in addition to first process;
The request of first process is transmitted to described by second process and the communication connection of the server
Server.
Second aspect, the embodiment of the present invention provides a kind of electronic equipment, it is characterised in that the electronic equipment is at least wrapped
Include:Communication interface, processor and memory, wherein, the processor is used for:
If the first process requested and server communication, judge whether first process sets up logical with the server
Letter connection;
If first process is not set up with the server and communicated to connect, the second process is determined, wherein, described second
Process is to set up to communicate to connect with the server, other processes in running process in addition to first process;
The request of first process is transmitted to described by second process and the communication connection of the server
Server.
The third aspect, the embodiment of the present invention provides the executable instruction that is stored with a kind of storage medium, the storage medium,
The executable instruction is configured to perform the information processing method that any one of the claims 1 to 5 are provided.
Fourth aspect, the embodiment of the present invention provides a kind of information processor, and described device includes:
Judging unit, if for the first process requested and server communication, judge first process whether with institute
State server and set up communication connection;
First determining unit, communicates to connect if do not set up for first process with the server, determines second
Process, wherein, second process is to set up to communicate to connect with the server, and first process is removed in running process
Outside other processes;
First transmission unit, for the leading to by second process and the server by the request of first process
Letter connection is transmitted to the server.
The embodiment of the present invention provides a kind of information processing method and device, storage medium, electronic equipment, wherein, if the
One process requested and server communication, judge whether first process is set up with the server and communicate to connect;If institute
State the first process and do not set up communication connection with the server, determine the second process;The request of first process is passed through into institute
State the second process and the communication connection of the server is transmitted to the server, so, when the first process requested and server
When being communicatively coupled, if in the presence of with server set up communication connection the second process when, the first process is entered by second
Journey is communicated with server, be so, it is possible to reduce server link number, is reduced server stress, so as to avoid because of connection number
Service is unavailable or limited caused by limitation.
Brief description of the drawings
Fig. 1 realizes schematic flow sheet for a kind of information processing method of the embodiment of the present invention;
Fig. 2 realizes schematic flow sheet for another information processing method of the embodiment of the present invention;
Fig. 3, which is that the embodiment of the present invention is a kind of, realizes the signal that browser multiwindow is multiplexed with server A jax interprocess communications
Figure;
Fig. 4, which is that the embodiment of the present invention is a kind of, realizes the system that browser multiwindow is multiplexed with server A jax interprocess communications
Constitute structural representation;
Fig. 5 be embodiment of the present invention one kind based on it is shared store realize browser multiwindow and server ajax communicate into
The schematic diagram of Cheng Fuyong information process;
Fig. 6 is the composition structural representation of embodiment of the present invention information processor;
Fig. 7 is the composition structural representation of embodiment of the present invention electronic equipment.
Embodiment
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
The present embodiment provides a kind of information processing method, and this method is applied to electronic equipment, and information processing method institute is real
Existing function can realize that certain program code can be stored in meter by the processor caller code in electronic equipment
In calculation machine storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Fig. 1 realizes schematic flow sheet for a kind of information processing method of the embodiment of the present invention, as shown in figure 1, this method bag
Include following steps:
Step S101, if the first process requested and server communication, judge first process whether with the clothes
Business device sets up communication connection;
Here, the electronic equipment can have information processing capability during specific embodiment to be various types of
Equipment, set such as can be mobile phone (mobile phone), panel computer, notebook computer with the movement of wireless communication ability
With the wired networking capabilities and mobile equipment of inconvenience of standby or such as desktop computer etc.
If first process is not set up with the server and communicated to connect, into step S102;If described
One process is set up with the server and communicated to connect, then first process is directly communicated with the server, and
When running process request is with the server communication, the request of the running process is passed through into first process and institute
The communication connection for stating server is transmitted to the server.
In other embodiments of the present invention, if the process requesteds of step S101 first and server communication, described is judged
Whether one process sets up communication connection with the server to be realized by following steps:
Step S101a, judges to whether there is the data message of first process in shared memory cell;
Here, if there is the data message of first process in the shared memory cell, into step
S101b, if the data message of first process is not present in the shared memory cell, shows first process not
Set up and communicate to connect with the server.
Step S101b, if there is the data message of first process in the shared memory cell, judges described
Whether the data message of one process updates;
Here, if first process data message occur update if show first process with the service
Device sets up communication connection;If the data message of first process do not occur update if show first process not with institute
State server and set up communication connection.
In other embodiments of the present invention, if there are the data of first process in the shared memory cell
Information, judges whether the data message of first process updates, and can obtain at a certain time interval twice
The data message of first process, according to the whether identical number to judge first process of the data message got twice
It is believed that whether breath updates.Specifically, it can be realized by following steps:
Step 101b1, obtains the first data message of first process;
Here, the work state information at the first process current time is at least included in first data message, no
Including timestamp information.
Step 101b2, after default time interval, obtains the second data message of first process;
Step 101b3, judges whether first data message is identical with second data message;
Here, if first data message is identical with second data message, the number of first process is shown
It is believed that ceasing no update;If first data message is different from second data message, show that described first enters
The data message of journey updates.
Step S102, communicates to connect if first process is not set up with the server, determines the second process;
Here, second process is to set up to communicate to connect with the server, and described first is removed in running process
Other processes outside process.
Here, the store path at least includes the identification information of Cloud Server.The store path can also include depositing
Storage is in the identification information of the hard disk of Cloud Server, the identification information of file.
Step S103, the request of first process is passed by the communication connection of second process and the server
Transport to the server;
Here, that is to say, that when the first process requested and server are communicatively coupled, if in the presence of with server
When setting up the second process of communication connection, the first process is communicated by the second process with server, can reduce server
Number is linked, so as to reduce server stress.
In other embodiments of the present invention, methods described also includes:
Step 21, if other process requesteds in addition to the first process run and the server communication, by institute
The request for stating other processes is transmitted to the server by the communication connection of second process and the server;
Step 22, when the second process receives the data that the server is sent, according to entering for being carried in the data
The identification information of journey sends the data to corresponding process.
In other examples, step 22 can also have corresponding alternative, i.e., when the second process receive it is described
During the data that server is sent, all processes run are given by the data broadcasting.The process run is receiving data
When middle, the data of itself needs can be obtained according to the identification information of the process carried in data.
In the prior art at present, when user repeatedly opens identical window, server is located all as new request
Reason, may result in causes the service provided inconsistent for identical window.In the case of this, the process run
It is the process with same mark.For example, needing the multiple processes of browser with server while keeping the field of real-time communication
Jing Zhong, user may open simultaneously with a certain chatting object carry out instant messaging 5 window processes, at this point it is possible to from this 5
1 window process (as the second process) is elected in individual window to be communicatively coupled with server, when the window process (as
Second process) receive after the data of server, the window process is sent to other window processes by the form of broadcast, with
Ensure the uniformity of all window processes.
During one kind is realized, the identification information of process is carried in the data of return, the second process is according to process
Identification information the data of return are sent to corresponding process.When data to be sent are sent to server, this is treated
The identification information of process is just carried in the data of transmission.When realizing, the identification information of process has two kinds of addition manners,
First way is the identification information for the process that other processes are added oneself in the data of transmission, and the second way is second to enter
Journey is the identification information that other processes add process, i.e., in both modes, the addition main body of identification information is different.
Wherein, first way, the identification information of other processes oneself addition process similar to the second process is only transparent transmission
Data, for example, the first process carries the identification information of the first process in the data for be sent to server, server is to
When one process returned data, also the identification information of the first process is carried in the data of return, therefore, the second process can
The data of return are sent to by the first process with the identification information of the first process carried in the data according to return, it is seen then that the
Two processes are similar to the data penetration transmission of the first process to server.
The second way, when the second process receives the data of other processes transmission, the second process is these numbers to be sent
It is, for example, the increased header packet information of data to be sent according to corresponding identification information is added, the header packet information is used to characterize it
The identification information of his process, then the second process by add header packet information after data be packaged, then the second process will seal
Data after dress are sent to server.Server determine need return content, by the content and header packet information of return (transmission
Header packet information in data) process is encapsulated into returned data.Second process is when receiving the data of server return, to returning
Return data to be parsed, then the data of return are sent to by the identification information of the process in the header packet information parsed
Corresponding process.
By both the above mode, when multiple processes connect same server, even if multiple processes pass through it is same
When process (such as the second process) carries out data interaction with server, the data of return can be sent out according to the identification information of process
Corresponding process is given, so that it is that correspondence is replied to avoid data, and then ensures that data will not send mistake.
That is, when there is multiple process requesteds to be communicated with server, the request data of these processes all passes through
Set up the second process being connected with server to be communicated with the server, in such manner, it is possible to which the company of server is greatly reduced
Number is connect, the communication pressure of server is greatly alleviated.
The embodiment of the present invention provides a kind of information processing method, if the first process requested and server communication first, sentences
Whether first process of breaking is set up with the server communicates to connect;If first process is not built with the server
Vertical communication connection, determines the second process;Then the request of first process is passed through into second process and the server
Communication connection transmit to the server, so, when the first process requested and server are communicatively coupled, if in the presence of
During through setting up the second process communicated to connect with server, the first process is communicated by the second process with server, can
Server link number is reduced, server stress is reduced, so as to avoid servicing unavailable or limited caused by connection number limitation.
Embodiment two
Based on foregoing embodiment, the present embodiment provides a kind of information processing method, and this method is applied to electronic equipment, should
The function that information processing method is realized can be realized by the processor caller code in electronic equipment, certain program
Code can be stored in computer-readable storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Fig. 2 realizes schematic flow sheet for another information processing method of the embodiment of the present invention, as shown in Fig. 2 this method
Comprise the following steps:
Step S201, at the end of the process of communication connection is set up with the server, determines the 3rd process;
Here, the 3rd process is communicated to connect for being set up with the server, process in running process.
In other embodiments of the present invention, at the end of step S201 works as the process with server foundation communication connection,
Determine that the 3rd process further comprises:
Step S201a, obtains the data message of current time running process;
Here, timestamp information is at least included in the data message.
Step S201b, after default time interval, obtains the data message of the running process again;
Step S201c, according to the data message of the running process obtained twice, determines that data message updates
The 3rd process collection;
Here, the 3rd process is at least included in the 3rd process collection.
Can be that the data message for the running process that will be obtained twice is contrasted in implementation process, if
The data message of the running process obtained twice is changed, then shows that the data message of the process there occurs more
Newly, it is to be in execution state to further demonstrate that the process;If the data message for having run progress obtained twice does not have
Change, then show that the data message of the process does not update, it is to be in final state to further demonstrate that the process.
Step S201d, according to the timestamp information in the data message of the 3rd process collection, according to default rule
Determine the 3rd process.
Here, such as default rule can be timestamp away from current time nearest process.
Step S202, the communication connection set up between the 3rd process and the server;
Here, in other embodiments of the present invention, set up between the 3rd process and the server after communication connection,
Methods described also includes:The data message of 3rd process is write in shared memory, and timing updates the described 3rd and entered
The data message of journey.
It should be noted that what is stored in shared memory is the data message that the process being connected is set up with server, when
The process being connected, which is set up, with server terminates rear, it is necessary to which a process is selected from the process run to be used to set up with server
Connection, and the data message of the process is written in shared memory, so that other processes have known whether process and clothes
Business device sets up connection, and is which process is connected with server foundation.
Step S203, when running process request is communicated with the server, by the running process
Request transmitted by the communication connection of the 3rd process and the server to the server;
Step S204, when the 3rd process receives the data that the server is sent, sends the data to
All processes run.
In the prior art at present, when user repeatedly opens identical window, server is located all as new request
Reason, may result in causes the service provided inconsistent for identical window.In the present embodiment, browsed based on shared storage realization
Device multiwindow is multiplexed with server interprocess communication, can be realized and remained and only one of which after user opens multiple windows
Interprocess communication and Background communication, and it is sent in the form of broadcast other all identical windows.In other words, it is described to have transported
Corresponding capable process can be same server.In extreme situations, the process run is probably to have together
The process of one mark.For example, needing the multiple processes of browser with server while keeping in the scene of real-time communication, user
The window process that instant messaging is carried out with a certain chatting object may be opened simultaneously, entered at this point it is possible to elect a window
Journey is communicatively coupled with server, after the window process receives the data of server, is sent to by the form of broadcast
All window processes, to ensure the uniformity of all window processes.
It should be noted that be may be referred in the present embodiment with the explanation of same steps in other embodiments or concept other
Description in embodiment.
In embodiments of the present invention, at the end of the process of communication connection is set up with the server, it is first determined the 3rd
Process, wherein, the 3rd process is communicated to connect for being set up with the server, process in running process;Then
The communication connection set up between the 3rd process and the server;When running process request is entered with the server
During row communication, then by the request of the running process by the communication connection of the 3rd process and the server transmit to
The server.So, after setting up the process that is connected with the server and terminating, the is elected from the process run
Three processes, for being communicated with the server, and when other processes need communicated with server when, it is not necessary to again with
Server sets up connection, but is communicated by the 3rd process with server.
Embodiment three
The embodiment of the present invention provides a kind of information processing method again, and this method is applied to electronic equipment, the information processing side
The function that method is realized can realize that certain program code can be protected by the processor caller code in electronic equipment
Exist in computer-readable storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Information processing method provided in an embodiment of the present invention is to realize browser multiwindow and service based on shared storage
The information process of device ajax interprocess communications multiplexing.When having multiple windows while when working, electing a window to be responsible for
Worked with background server real-time communication, the result communicated with server is provided in each window sharing, and then for multiple windows
Consistency service.
Fig. 3, which is that the embodiment of the present invention is a kind of, realizes the signal that browser multiwindow is multiplexed with server A jax interprocess communications
Figure, as shown in figure 3, in the case of having multiple browser windows 301 all to open, multiple browser windows in browser by leading to
Letter, based on shared storage from the browser window of opening, elects a window 302 and sets up Ajax with background server 303
Connection, is communicated by the window 302 elected with background server 303, and the data broadcasting that will be received from server
Each window is given, data sharing is realized, server request number can not only be reduced, server stress is reduced and avoids because browsing
Service is unavailable or limited caused by device connection number limitation, and can provide Consistency service for the window opened.
The embodiment of the present invention provides a kind of system for realizing browser multiwindow and the multiplexing of server A jax interprocess communications again,
Fig. 4 is a kind of composition structure for realizing the system that browser multiwindow is multiplexed with server A jax interprocess communications of the embodiment of the present invention
Schematic diagram, as shown in figure 4, the system includes:State release module 401, module 402 and data broadcast module are guarded, wherein:
The state release module 401, is responsible for all window sharings working condition of oneself.
Work shape of the selected window communicated with background server to update oneself in the form of heartbeat into shared storage
State information;
It is described to guard module 402, it is responsible for detection working condition, and according to working condition election window.Each window
The shared data of timing detection state release module 401, if not having data message or the data of publicity letter in shared storage
Breath is expired, oneself will take over work, and update work state information in shared storage.
The data broadcasting module 403, is responsible for the data broadcasting for arriving Ajax and rear end communication to all pages.
Fig. 5 be embodiment of the present invention one kind based on it is shared store realize browser multiwindow and server ajax communicate into
The schematic diagram of Cheng Fuyong information process, as shown in figure 4, methods described includes:
Step S501, registers monitoring event;
Here, the step S501 can be realized by each window opened.When each window is opened
The mark of a monitoring event, the type for distinguishing monitoring event will be generated.
Step S502, detects heartbeat data;
Here, the step S502 can be realized by each window opened.Detection heartbeat data refers to detection altogether
Enjoy the heartbeat data that whether there is other windows in storage.Here heartbeat data at least includes work state information data.
Step S503, the window of work is judged whether according to heartbeat data;
Here, the step S503 can be realized by each window opened.In the embodiment of the present invention and other realities
Apply in example, work refers to that browser has adjusted Ajax to be communicated with background server.Judge whether the window of work namely sentence
Disconnected whether there is sets up the window being connected with background server.
Here, the window for judging whether work according to heartbeat data can be by heartbeat mould in implementation process
Formula (being such as 1 second/time) obtains heartbeat data, judges whether heartbeat data updates, if heartbeat data updates,
Show the window that there is work, into step S502;If heartbeat data does not update, show that working window is not present
Mouthful, into step S504.
Step S504, sends work state information to state release module, writes and update working condition;
Here, the step S504 can be realized by each window opened.
State release module is received after the work state information of window, with heart pattern to other window sharings work
Make status information.
Step S505, selects unique window according to heartbeat mechanism and is attached with server;
Here, the step S505 can be realized by the state release module of browser.
Step S506, receives the data from server;
Here, the step S506 can be realized by setting up the window being connected with server.
Step S507, data are sent to other windows;
Here, the step S507 is realized by setting up the window being connected with server.In implementation process, Ke Yitong
Cross and call broadcast module to send data to other log-in windows.
Other log-in windows refer to the mark of monitoring event generated when registering monitoring event when window starts and with
Server sets up the mark identical window of the monitoring event of the window of connection.
It is provided in an embodiment of the present invention that browser multiwindow and server ajax interprocess communications are realized based on shared storage
The information processing method of multiplexing, which is mainly used in WEB application, needs the multiple windows of browser with server while keeping logical in real time
The scene of news, but it is not limited only to the scene.Can substantially reduce the application for there are a large amount of instantaneity communication needs by this method
Server end pressure, and provide a user complete, consistent service.
Example IV
The embodiment of the present invention provides a kind of information processor, included by each unit, each unit included by the device
Each module, and each submodule included by each module, can be realized by the processor in electronic equipment, also may be used certainly
Realized by specific logic circuit;During implementation, processor can be central processing unit (CPU), microprocessor
(MPU), digital signal processor (DSP) or field programmable gate array (FPGA) etc..
Fig. 6 is the composition structural representation of embodiment of the present invention information processor, as shown in fig. 6, described device 600 is wrapped
Judging unit 601, the first determining unit 602 and the first transmission unit 603 are included, wherein:
The judging unit 601, if for the first process requested and server communication, whether judging first process
Set up and communicate to connect with the server;
First determining unit 602, is communicated to connect, really if do not set up for first process with the server
Fixed second process, wherein, second process is to set up to communicate to connect with the server, except described the in running process
Other processes outside one process;
First transmission unit 603, for the request of first process to be passed through into second process and the clothes
The communication connection of business device is transmitted to the server.
In other embodiments of the present invention, described device also includes:
Transmitting element, for when the second process receives the data that the server is sent, being taken according in the data
The identification information of the process of band sends the data to corresponding process.
In other embodiments of the present invention, described device also includes:
Second determining unit, at the end of the process of communication connection is set up with the server, determining the 3rd process;
Here, the 3rd process is communicated to connect for being set up with the server, process in running process.
Unit is set up, for setting up the communication connection between the 3rd process and the server;
Second transmission unit, for when the running process request communicated with the server when, general described in
The request of operation process is transmitted to the server by the communication connection of the 3rd process and the server.
In other embodiments of the present invention, the judging unit 601 further comprises:
First judge module, for judging the data message in shared memory cell with the presence or absence of first process;
Second judge module, if for there is the data message of first process in the shared memory cell, sentenced
Whether the data message for first process of breaking updates, and shows if the data message of first process occurs to update
First process is set up with the server and communicated to connect;If the data message of first process does not update
Then show that first process is not set up with the server to communicate to connect.
In other embodiments of the present invention, second determining unit includes:
First acquisition module, the data message for obtaining current time running process, wherein, in the data message
At least include timestamp information;
Second acquisition module, the data for after default time interval, obtaining the running process again are believed
Breath;
First determining module, for the data message according to the running process obtained twice, determines data message
The 3rd process collection updated, wherein, the 3rd process is at least included in the 3rd process collection;
Second determining module, for the timestamp information in the data message according to the 3rd process collection, according to pre-
If rule determine the 3rd process.
It need to be noted that be:The description of apparatus above embodiment, the description with above method embodiment be it is similar,
With the similar beneficial effect of same embodiment of the method.For the ins and outs not disclosed in apparatus of the present invention embodiment, it refer to
The description of the inventive method embodiment and understand.
Embodiment five
Based on foregoing embodiment, the embodiment of the present invention provides a kind of electronic equipment, and Fig. 7 sets for embodiment of the present invention electronics
Standby composition structural representation, as shown in fig. 7, the electronic equipment 700 includes communication interface 701, storage medium 702 and processor
703, wherein, the processor 703 is used for:
If the first process requested and server communication, judge whether first process sets up logical with the server
Letter connection;
If first process is not set up with the server and communicated to connect, the second process is determined, wherein, described second
Process is to set up to communicate to connect with the server, other processes in running process in addition to first process;
The request of first process is transmitted to described by second process and the communication connection of the server
Server.
In other embodiments of the present invention, the processor 703 is additionally operable to:
When the second process receives the data that the server is sent, according to the mark of the process carried in the data
Information sends the data to corresponding process.
During in the present invention, other are implemented, the processor 703 is additionally operable to:
At the end of the process of communication connection is set up with the server, the 3rd process is determined, wherein, the 3rd process
It is to be communicated to connect for being set up with the server, process in running process;
The communication connection set up between the 3rd process and the server;
When running process request is communicated with the server, the request of the running process is passed through
3rd process and the communication connection of the server are transmitted to the server.
In other embodiments of the present invention, it is described to judge whether first process sets up communication link with the server
Connect including:
Judge the data message with the presence or absence of first process in shared memory cell;
If there is the data message of first process in the shared memory cell, the number of first process is judged
It is believed that breath whether update, if first process data message occur update if show first process with institute
State server and set up communication connection;Show first process if the data message of first process does not occur to update
Do not set up and communicate to connect with the server.
In other embodiments of the present invention, it is described at the end of the process of communication connection is set up with the server, it is determined that
3rd process, including:
The data message of current time running process is obtained, wherein, timestamp is at least included in the data message and is believed
Breath;
After default time interval, the data message of the running process is obtained again;
According to the data message of the running process obtained twice, the 3rd process that data message updates is determined
Set, wherein, the 3rd process is at least included in the 3rd process collection;
According to the timestamp information in the data message of the 3rd process collection, determine that the 3rd enters according to default rule
Journey.
Be stored with executable instruction in storage medium provided in an embodiment of the present invention, and the executable instruction is configured to perform sheet
The information processing method that invention other embodiment is provided.
It need to be noted that be:Above electronic equipment implements the description of item, is similar, tool with above method description
There is same embodiment of the method identical beneficial effect.For the ins and outs not disclosed in electronic equipment embodiment of the present invention, ability
The technical staff in domain refer to the description of the inventive method embodiment and understand.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text means relevant with embodiment
During special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure
" in one embodiment " or " in one embodiment " identical embodiment is not necessarily referred to.In addition, these specific feature, knots
Structure or characteristic can be combined in one or more embodiments in any suitable manner.It should be understood that in the various implementations of the present invention
In example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work(
It can be determined with internal logic, any limit is constituted without tackling the implementation process of the embodiment of the present invention.The embodiments of the present invention
Sequence number is for illustration only, and the quality of embodiment is not represented.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
, can be by it in several embodiments provided herein, it should be understood that disclosed apparatus and method
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be combined, or
Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion
Coupling point each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs of equipment or unit by some interfaces
Or communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location;Both a place can be located at, multiple network lists can also be distributed to
In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
Be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists
During execution, the step of execution includes above method embodiment;And foregoing storage medium includes:Movable storage device, read-only deposit
Reservoir (Read Only Memory, ROM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Or, if the above-mentioned integrated unit of the present invention is realized using in the form of software function module and is used as independent product
Sale in use, can also be stored in a computer read/write memory medium.Understood based on such, the present invention is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be with
It is personal computer, server or network equipment etc.) perform all or part of each of the invention embodiment methods described.
And foregoing storage medium includes:Movable storage device, ROM, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of information processing method, it is characterised in that methods described includes:
If the first process requested and server communication, judge whether first process sets up communication link with the server
Connect;
If first process is not set up with the server and communicated to connect, the second process is determined, wherein, second process
It is to set up to communicate to connect with the server, other processes in running process in addition to first process;
The request of first process is transmitted to the service by the communication connection of second process and the server
Device.
2. the method according to claim 1, it is characterised in that methods described also includes:
When the second process receives the data that the server is sent, according to the identification information of the process carried in the data
Send the data to corresponding process.
3. the method according to claim 1 or 2, it is characterised in that methods described also includes:
At the end of the process of communication connection is set up with the server, the 3rd process is determined, wherein, the 3rd process is to use
In what is communicated to connect with server foundation, process in running process;
The communication connection set up between the 3rd process and the server;
When running process request is communicated with the server, the request of the running process is passed through described
3rd process and the communication connection of the server are transmitted to the server.
4. the method according to claim 1 or 2, it is characterised in that it is described judge first process whether with institute
State server and set up communication connection, including:
Judge the data message with the presence or absence of first process in shared memory cell;
If there is the data message of first process in the shared memory cell, the data letter of first process is judged
Breath whether update, if first process data message occur update if show first process with the clothes
Business device sets up communication connection;If the data message of first process do not occur update if show first process not with
The server sets up communication connection.
5. the method according to claim 4, it is characterised in that if existed in the shared memory cell described
The data message of first process, judges whether the data message of first process updates, including:
Obtain the first data message of first process;
After default time interval, the second data message of first process is obtained;
Judge whether first data message is identical with second data message, wherein, if first data message
It is identical with second data message, show that the data message of first process does not update;If first number
It is believed that breath is different from second data message, show that the data message of first process updates.
6. the method according to claim 3, it is characterised in that described to work as and entering that server foundation is communicated to connect
At the end of journey, the 3rd process is determined, including:
The data message of current time running process is obtained, wherein, timestamp information is at least included in the data message;
After default time interval, the data message of the running process is obtained again;
According to the data message of the running process obtained twice, the 3rd process sets that data message updates are determined
Close, wherein, the 3rd process is at least included in the 3rd process collection;
According to the timestamp information in the data message of the 3rd process collection, the 3rd process is determined according to default rule.
7. a kind of electronic equipment, it is characterised in that the electronic equipment at least includes:Communication interface, processor and memory, its
In, the processor is used for:
If the first process requested and server communication, judge whether first process sets up communication link with the server
Connect;
If first process is not set up with the server and communicated to connect, the second process is determined, wherein, second process
It is to set up to communicate to connect with the server, other processes in running process in addition to first process;
The request of first process is transmitted to the service by the communication connection of second process and the server
Device.
8. the electronic equipment according to claim 7, it is characterised in that the processor is additionally operable to:
When the second process receives the data that the server is sent, according to the identification information of the process carried in the data
Send the data to corresponding process.
9. be stored with executable instruction in a kind of storage medium, the storage medium, it is above-mentioned that the executable instruction is configured to execution
The information processing method that any one of claim 1 to 6 is provided.
10. a kind of information processor, it is characterised in that described device includes:
Judging unit, if for the first process requested and server communication, judge first process whether with the clothes
Business device sets up communication connection;
First determining unit, communicates to connect if do not set up for first process with the server, determines the second process,
Wherein, second process is to set up to communicate to connect with the server, in running process in addition to first process
Other processes;
First transmission unit, for the request of first process to be passed through into second process and the communication link of the server
Connect and transmit to the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710214687.2A CN106961482B (en) | 2017-04-01 | 2017-04-01 | Information processing method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710214687.2A CN106961482B (en) | 2017-04-01 | 2017-04-01 | Information processing method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106961482A true CN106961482A (en) | 2017-07-18 |
CN106961482B CN106961482B (en) | 2021-01-15 |
Family
ID=59484786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710214687.2A Active CN106961482B (en) | 2017-04-01 | 2017-04-01 | Information processing method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106961482B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271123A (en) * | 2010-06-01 | 2011-12-07 | 阿里巴巴集团控股有限公司 | Communication method, system and equipment |
CN102546762A (en) * | 2011-12-16 | 2012-07-04 | 深圳中兴网信科技有限公司 | Instant messaging system and method of webpage |
CN103176854A (en) * | 2011-12-26 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Process-to-process communication method, device and system |
CN103455380A (en) * | 2012-06-05 | 2013-12-18 | 上海斐讯数据通信技术有限公司 | Multi-process communication system and establishment and communication method thereof |
US20140068702A1 (en) * | 2012-08-31 | 2014-03-06 | Avaya Inc. | Single sign-on system and method |
CN103647768A (en) * | 2013-12-06 | 2014-03-19 | 北京奇虎科技有限公司 | Game client and realization method thereof |
CN103888501A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Virtual machine migration method and device |
CN104079598A (en) * | 2013-03-27 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and device for realizing collaborative browsing of webpages |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN106547634A (en) * | 2016-11-28 | 2017-03-29 | 武汉斗鱼网络科技有限公司 | A kind of method and device of striding course communication |
-
2017
- 2017-04-01 CN CN201710214687.2A patent/CN106961482B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271123A (en) * | 2010-06-01 | 2011-12-07 | 阿里巴巴集团控股有限公司 | Communication method, system and equipment |
CN102546762A (en) * | 2011-12-16 | 2012-07-04 | 深圳中兴网信科技有限公司 | Instant messaging system and method of webpage |
CN103176854A (en) * | 2011-12-26 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Process-to-process communication method, device and system |
CN103455380A (en) * | 2012-06-05 | 2013-12-18 | 上海斐讯数据通信技术有限公司 | Multi-process communication system and establishment and communication method thereof |
US20140068702A1 (en) * | 2012-08-31 | 2014-03-06 | Avaya Inc. | Single sign-on system and method |
CN103888501A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Virtual machine migration method and device |
CN104079598A (en) * | 2013-03-27 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and device for realizing collaborative browsing of webpages |
CN103647768A (en) * | 2013-12-06 | 2014-03-19 | 北京奇虎科技有限公司 | Game client and realization method thereof |
CN104811459A (en) * | 2014-01-23 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Processing method, processing device and system for message services and message service system |
CN106547634A (en) * | 2016-11-28 | 2017-03-29 | 武汉斗鱼网络科技有限公司 | A kind of method and device of striding course communication |
Also Published As
Publication number | Publication date |
---|---|
CN106961482B (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3824659B1 (en) | Detecting communication network insights of alerts | |
CN104079548B (en) | Electronic name card management method, device, server and communication system | |
CN103546505B (en) | The method, system and device that Segment is according to priority sequentially shown | |
CN102638358A (en) | Method for performing finite shield by aiming at group message, client and system | |
CN105991408B (en) | A kind of message treatment method, device and processing server | |
CN102882762A (en) | Method and system for synchronizing chat status information in multiple pages | |
CN107169025A (en) | A kind of intelligent-tracking methods, devices and systems shared | |
CN102231739B (en) | To code method and device | |
CN109766195A (en) | The method and Related product of loss of data in supervisory messages queue | |
CN106453669A (en) | Load balancing method and server | |
CN111277483B (en) | Multi-terminal message synchronization method, server and storage medium | |
CN105897868A (en) | Sharing processing method for position information, vehicle terminal, server and system | |
CN106487654A (en) | The method of message cluster transmition | |
CN106302117A (en) | Message delivery system, method and apparatus | |
CN103795608B (en) | A kind of E-mail receiver/send method and system in network application system | |
CN107493229A (en) | Message group sending method, server and the computer-readable storage medium of converged communication | |
CN106484738A (en) | A kind of page processing method and device | |
CN106603748A (en) | Terminal internet surfing method and terminal | |
CN104363257B (en) | A kind of user interface data method for refreshing and equipment | |
CN106961482A (en) | A kind of information processing method and device, storage medium, electronic equipment | |
CN105511606B (en) | Data transmission method and device | |
CN103957266A (en) | Device centralized control method for communication system | |
CN106250008B (en) | A kind of method and terminal showing information | |
CN110519459A (en) | Method of speech processing and device, terminal device, computer readable storage medium | |
CN110264035A (en) | Configuration method, device, terminal and the storage medium of workflow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |