CN106302459A - Networking operational approach and device - Google Patents

Networking operational approach and device Download PDF

Info

Publication number
CN106302459A
CN106302459A CN201610675944.8A CN201610675944A CN106302459A CN 106302459 A CN106302459 A CN 106302459A CN 201610675944 A CN201610675944 A CN 201610675944A CN 106302459 A CN106302459 A CN 106302459A
Authority
CN
China
Prior art keywords
service end
network
networking
information
login
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610675944.8A
Other languages
Chinese (zh)
Inventor
丁强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610675944.8A priority Critical patent/CN106302459A/en
Publication of CN106302459A publication Critical patent/CN106302459A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of networking operational approach and device.Wherein, the method includes: client, under the triggering of call request, obtains current network state information and logging status information, and wherein, call request is for obtaining the game data corresponding with the game treating networking operation client from service end;Client, in the case of determining that according to network state information there is network between client with service end is connected, receives the game data that service end returns;Client, in the case of determining that according to logging status information the game treating networking operation is in login running status, uses game data to perform networking operation.The present invention solves the network state detection scheme of the strong internet game provided in correlation technique and is not particularly suited for the technical problem of weak working application.

Description

Networking operational approach and device
Technical field
The present invention relates to internet arena, in particular to one networking operational approach and device.
Background technology
At present, the application (as a example by hands is swum) provided in correlation technique can be generally divided into strong networking and weak networking two kind Type.It is higher to network demand that strong networking hands trip refers to game itself, typically requires during playing omnidistance real Time networking, main be embodied in game in other players immediate feedback degree require higher, need game player true Go operation, and be not the mirror image data of server transport, such as: talk on the journey to west;It is right that the trip of weak networking hands refers to game itself Network demand is relatively low, and its core playing method (including: primary game logic) is substantially all and can be completed by client, its Depart from network and can't affect game experiencing, only require and network in the part of functions or some nodes of game (such as: will Game data reports to server and stores), other function is not networked and is allowed also to player's entrance, such as: cat and mouse.
For needing the hands trip of networking, accurately detection real-time network state is typically to be difficult to, and its reason is: net Network state itself is difficult to real-time query.The technical scheme of the detection real-time network state generally used in correlation technique be Server is periodically conducted interviews by game backstage special configuration particular thread, to detect current network state, and the reality of other functions If existing needs obtains current network state, then can call the interface of this thread to obtain corresponding network state, such as: every Being spaced three seconds and initiate once to connect to server, each and server all opens an intervalometer during being attached, as Fruit exceedes the preset duration of intervalometer, and server does not the most return confirmation response message, then assert that current network cannot with regard to this Normal connection.
But, the defect of above-mentioned solution is: the current game run needs the moment to keep network connection state, as Resolutely open network to connect, then game will be unable to properly functioning.Therefore, above-mentioned solution is swum often appropriate only to strong networking hands, And it is not particularly suited for the trip of weak networking hands.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide a kind of networking operational approach and device, at least to solve provided in correlation technique The network state detection scheme of strong internet game is not particularly suited for the technical problem of weak working application.
An aspect according to embodiments of the present invention, it is provided that a kind of networking operational approach, the method is applicable to weak networking Application, including:
Under the triggering of call request, obtain current network state information and logging status information, wherein, call request For obtaining the application data that the application treating networking operation is corresponding from service end;Determining according to network state information and service end Between exist network connect in the case of, receive service end return application data;Wait to join determining according to logging status information In the case of the application of net operation is in login running status, application data are used to perform networking operation.
Alternatively, obtain current network state information and include: send synchronization request message, and opening timing to service end Device;The sync response corresponding with synchronization request message that service end returns is received in the first preset duration that intervalometer sets Message, determines that there is network between service end is connected.
Alternatively, obtain current network state information and include: send synchronization request message, and opening timing to service end Device;The synchronization sound corresponding with synchronization request message that service end returns is not received in the first preset duration that intervalometer sets Answer message, determine that there is not network between service end is connected;Send to service end and set up connection request;Come from receiving After service end corresponding with setting up connection request sets up connection response, be spaced the second preset duration again to service end send with Step request message, and opening timing device;Receive in the first preset duration service end return synchronous response message, determine with There is network between service end to connect.
Alternatively, obtain logging status information to include: determine stepping on of the application that waiting networks operates according to logging status information Record state, when logging status is for being not logged in off-line state, obtains user login information to be verified from service end, or, connect Receive the user login information to be verified of user's input;Login authentication request is sent, wherein, in login authentication request to service end Carry user login information to be verified;Receive the login authentication response corresponding with login authentication request that server returns; According to login authentication in response to determining that treat that the application of networking operation is in login running status.
Alternatively, before obtaining network state information and logging status information, also include: for call request distribution correspondence Signal identification, and register correspondence call back function, wherein, signal identification is used for indicating will apply data incoming to call back function Perform networking operation.
Alternatively, after using application data to perform networking operation, also include: release signal identifies.
Another aspect according to embodiments of the present invention, additionally provides a kind of networking operation device, and this device is applicable to weak Net application, including:
Acquisition module, under the triggering of call request, obtains current network state information and logging status information, Wherein, call request for obtaining the application data that the application treating networking operation is corresponding from service end;Receiver module, at root In the case of determining that there is network between service end is connected according to network state information, receive the application data that service end returns; Perform module, be used in the case of determining that according to logging status information the application treating networking operation is in login running status, Application data are used to perform networking operation.
Alternatively, acquisition module includes: the first transmitting element, for sending synchronization request message to service end, and opens Intervalometer;First determines unit, for intervalometer set the first preset duration in receive service end return with synchronization The synchronous response message that request message is corresponding, determines that there is network between service end is connected.
Alternatively, acquisition module includes: the first transmitting element, for sending synchronization request message to service end, and opens Intervalometer;First determines unit, for intervalometer set the first preset duration in do not receive service end return with The synchronous response message that step request message is corresponding, determines that there is not network between service end is connected;Second transmitting element, is used for Send to service end and set up connection request;Processing unit, for receive come from service end with set up connection request pair Answer set up connection response after, be spaced the second preset duration and again send synchronization request message, and opening timing device to service end; Second determines unit, for receiving the synchronous response message that service end returns in the first preset duration, determines and service end Between exist network connect.
Alternatively, acquisition module includes: acquiring unit, for determining the application treating networking operation according to logging status information Logging status, when logging status is for being not logged in off-line state, obtain user login information to be verified from service end, or Person, receives the user login information to be verified of user's input;3rd transmitting element, please for sending login authentication to service end Ask, wherein, login authentication request carries user login information to be verified;Receive unit, be used for receiving server and return Respond with login authentication login authentication corresponding to request;3rd determines unit, is used for according to login authentication in response to determining that wait to join The application of net operation is in login running status.
Alternatively, said apparatus also includes: processing module, for the signal identification corresponding for call request distribution, and notes The call back function that volume is corresponding, wherein, for instruction, by applying, data are incoming performs networking operation to call back function to signal identification.
Alternatively, processing module, it is additionally operable to release signal mark.
In embodiments of the present invention, use under the triggering of call request, obtain current network state information and login The mode of status information, by, in the case of determining that according to network state information there is network between service end is connected, connecing Receive the application data of service end return and determining that according to logging status information the application treating networking operation is in login and runs In the case of state, use application data to perform networking operation, reached to be not required to user in application process, kept networking State, and need only assure that user can normally set up, when needing and networking, the purpose that network connects, thus realize Individually detect current network condition and login situation when triggering networking behavior every time, thus reduce the skill of operation complexity Art effect, and then the network state detection scheme solving the strong internet game provided in correlation technique is not particularly suited for weak The technical problem of net application.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of networking operational approach according to embodiments of the present invention;
Fig. 2 is mutual in suitable environment information between client and service end once according to the preferred embodiment of the invention Flow chart;
Fig. 3 is mutual in two times information between client and service end of suitable environment according to the preferred embodiment of the invention Flow chart;
Fig. 4 is mutual in three times information between client and service end of suitable environment according to the preferred embodiment of the invention Flow chart;
Fig. 5 is to use call back function to perform to register the flow chart of function according to the preferred embodiment of the invention;
Fig. 6 is the structured flowchart of networking operation device according to embodiments of the present invention;
Fig. 7 is the structured flowchart of networking operation device according to the preferred embodiment of the invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, all should belong to the model of present invention protection Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that so use Data can exchange in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or Order beyond those described is implemented.Additionally, term " includes " and " having " and their any deformation, it is intended that cover Cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to Those steps clearly listed or unit, but can include the most clearly listing or for these processes, method, product Or intrinsic other step of equipment or unit.
According to embodiments of the present invention, it is provided that the embodiment of a kind of operational approach of networking, it should be noted that implement below Executive agent with client as the method is illustrated by example and each preferred implementation, and it is not intended that this The improper restriction of invention.Can be at the computer of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing System performs, and, although show logical order in flow charts, but in some cases, can be to be different from this The step shown or described by order execution at place.
Fig. 1 is the flow chart of networking operational approach according to embodiments of the present invention, as it is shown in figure 1, the method includes as follows Step:
Step S12, client, under the triggering of call request, obtains current network state information and logging status letter Breath, wherein, call request is for obtaining the application data corresponding with the application treating networking operation client from service end;
Step S14, client is determining that according to network state information there is network between client with service end is connected In the case of, receive the application data that service end returns;
Step S16, client is determining that according to logging status information the application treating networking operation is in login running status In the case of, use application data to perform networking operation.
By weak working application it is as a example by the trip of weak networking hands, it is contemplated that weak networking hands trip itself is support section unit playing method , it is not required to player and keeps networking state in game process, and needs only assure that game player networks at needs Time (such as: upload game data to server) can normally set up network and connect.Accordingly, it would be desirable to triggering networking every time Current network condition is individually detected during behavior.
By above-mentioned steps, use client under the triggering of call request, obtain current network state information and step on , between client and service end, there is network by client determining according to network state information in the mode of record status information In the case of connection, receive the application data of service end return and treating answering of networking operation determining according to logging status information In the case of being in login running status, use application data to perform networking operation, reached to be not required to user in application During keep networking state, and need only assure that user need network time can normally set up what network connected Purpose, it is achieved thereby that individually detect current network condition and login situation when triggering networking behavior every time, thus reduces The technique effect of operation complexity, and then solve the network state detection scheme of strong internet game provided in correlation technique It is not particularly suited for the technical problem of weak working application.
During being preferable to carry out, above-mentioned game data can include but not limited at least one of:
(1) log-on message of user;
(2) grade of game role;
(3) game credits;
(4) game charging information;
(5) time of game server.
Alternatively, in step s 12, client obtains current network state information and can include step performed below:
Step S121, client sends synchronization request message, and opening timing device to service end;
Step S122, client receives asking with Tong Bu of service end return in the first preset duration that intervalometer sets Seek the synchronous response message that message is corresponding, determine that there is network between client with service end is connected.
Owing to weak networking exists the intermittent or data interaction of timing, and cannot be true when performing data interaction operation every time Whether it is in networking state before settled, accordingly, it would be desirable to open an intervalometer in client, when triggering networking operation every time, Current network state information can be obtained by intervalometer.If in the preset duration that intervalometer sets, server is just Often return and confirm response message, then this is assert that current network can normally connect.
Alternatively, in step s 12, client obtains current network state information and can include step performed below:
Step S123, client sends synchronization request message, and opening timing device to service end;
Step S124, client do not receive in the first preset duration that intervalometer sets service end return with synchronization The synchronous response message that request message is corresponding, determines that there is not network between client with service end is connected;
Step S125, client sends to service end and sets up connection request;
Step S126, client comes from the corresponding with setting up connection request of service end and sets up connection response receiving After, it is spaced the second preset duration and again sends synchronization request message, and opening timing device to service end;
Step S127, client receives the synchronous response message that service end returns in the first preset duration, determines There is network between client with service end to be connected.
Owing to weak networking exists the intermittent or data interaction of timing, and cannot be true when performing data interaction operation every time Whether it is in networking state before settled, accordingly, it would be desirable to open an intervalometer in client, when triggering networking operation every time, Current network state information can be obtained by intervalometer.If it exceeds the preset duration that intervalometer sets, server is still So do not return confirmation response message, then this is assert that current network cannot normally connect.Now, client needs to service end Send and set up connection request, and wait that connection response is set up in service end return.And need to experience one in view of setting up network connection The protocol procedures of individual complexity, the longest, therefore, client receive service end return set up connection response after, need Certain interval of time (such as: time delay 2s) sends synchronization request message, and opening timing device to service end again;Otherwise, if Set up network connection procedure not yet to complete the most again to will be unable to normally receive sync response to service end transmission synchronization request message Message.
Alternatively, in step s 12, client obtains logging status information and can include step performed below:
Step S128, client determines the logging status of the application treating networking operation, works as login according to logging status information When state is for being not logged in off-line state, obtain user login information to be verified from service end, or, receive treating of user's input The user login information of checking;
Step S129, client sends login authentication request to service end, wherein, carries to be tested in login authentication request The user login information of card;
Step S130, client receives the login authentication response corresponding with login authentication request that server returns;
Step S131, client according to login authentication in response to determining that treat networking operation application be in login running status.
In view of the trip of weak networking hands has part unit attribute, do not ensure that the user getting player when logging in game Information, and due to server during carrying out data storage in units of user, therefore, in the trip of weak networking hands every time It is required for repeating to obtain a user login information from service end when triggering networking operation, and this repetitive operation is clearly expense Time laborious.To this end, by client when needs execution networking operation, by obtaining the game of current operation in client be The no logging status that is in judges whether to need to repeat to obtain user login information from service end.If currently run in client Game already at logging status, then the game data that can directly use service end to return performs networking operation;If it is objective On the end of family, the current game run is in and is not logged in off-line state, then need from service end obtain user login information or by with Family is manually entered user login information to initiate login authentication flow process, and after login authentication is passed through, then use service end to return Game data perform networking operation.
The technical scheme embodiment of the present invention provided below in conjunction with the preferred implementation shown in Fig. 2 to Fig. 4 Suitable environment is illustrated.
The suitable environment of the preferred embodiment of the present invention can include but not limited to following three kinds:
There is not network between suitable environment one, client and service end to be connected;
Although there is network between suitable environment two, client and service end to be connected, but not yet log in the individual of player Game account;
Suitable environment three, client not only with there is network between service end and be connected, but also Successful login player People's game account.
Fig. 2 is mutual in suitable environment information between client and service end once according to the preferred embodiment of the invention Flow chart.Client includes: the first functional unit and the second functional unit, and wherein, the first functional unit is used for detecting network even Connect state and set up network with service end and be connected, the second functional unit for perform except the first functional unit realization of functions it Other outer functions.Service end includes: first server and second server, and wherein, first server is for building with client Vertical network connects, and second server is for performing the login authentication of game account.As in figure 2 it is shown, this flow process can include following Process step:
Step S202, the second functional unit sends call request message to the first functional unit, and wherein, this call request disappears Breath is for obtaining current network state information;
Step S204, the first functional unit sends synchronization request message, and opening timing device to first server;
Step S206, the first functional unit does not receive first server in the preset duration that intervalometer sets and returns Synchronous response message;
Step S208, the first functional unit sends to first server and sets up connection request;
Step S210, what the first functional unit reception first server returned sets up connection response;
Step S212-S214, performs register in the login page that client shows, the first functional unit is to first Server sends login authentication request;
Step S216, first server forwards login authentication request to second server;
Step S218, second server returns login authentication response to first server;
Step S220, first server returns login authentication response to the first functional unit;
Step S222, the first functional unit returns the notification message logined successfully to the second functional unit.
Fig. 3 is mutual in two times information between client and service end of suitable environment according to the preferred embodiment of the invention Flow chart.Client includes: the first functional unit and the second functional unit, and wherein, the first functional unit is used for detecting network even Connect state and set up network with service end and be connected, the second functional unit for perform except the first functional unit realization of functions it Other outer functions.Service end includes: first server and second server, and wherein, first server is for building with client Vertical network connects, and second server is for performing the login authentication of game account.As it is shown on figure 3, this flow process can include following Process step:
Step S302, the second functional unit sends call request message to the first functional unit, and wherein, this call request disappears Breath is for obtaining current network state information;
Step S304, the first functional unit sends synchronization request message, and opening timing device to first server;
Step S306, the first functional unit receives the same of first server return in the preset duration that intervalometer sets Step response message;
Step S308-S310, performs register in the login page that client shows, the first functional unit is to first Server sends login authentication request;
Step S312, first server forwards login authentication request to second server;
Step S314, second server returns login authentication response to first server;
Step S316, first server returns login authentication response to the first functional unit;
Step S318, the first functional unit returns the notification message logined successfully to the second functional unit.
Fig. 4 is mutual in three times information between client and service end of suitable environment according to the preferred embodiment of the invention Flow chart.Client includes: the first functional unit and the second functional unit, and wherein, the first functional unit is used for detecting network even Connect state and set up network with service end and be connected, the second functional unit for perform except the first functional unit realization of functions it Other outer functions.Service end includes: first server and second server, and wherein, first server is for building with client Vertical network connects, and second server is for performing the login authentication of game account.As shown in Figure 4, this flow process can include following Process step:
Step S402, the second functional unit sends call request message to the first functional unit, and wherein, this call request disappears Breath is for obtaining current network state information;
Step S404, the first functional unit sends synchronization request message, and opening timing device to first server;
Step S406, the first functional unit receives the same of first server return in the preset duration that intervalometer sets Step response message;
Step S408, it is logical with what service end holding network was connected that the first functional unit returns client to the second functional unit Know message.
It is suitable for scene it will be seen that no matter which kind of is suitable for scene, for the second function of client from three of the above For assembly, the calling interface faced by it is all simple unified, will not relate to concrete network and connects associative operation and step on The operation that record account is relevant.
Alternatively, in step S12, before client obtains network state information and logging status information, it is also possible to include Step performed below:
Step S10, client is the signal identification that call request distribution is corresponding, and registers the call back function of correspondence, wherein, Signal identification is used for indicating client, and by applying, data are incoming performs networking operation to call back function.
During being preferable to carry out, above-mentioned call back function can be the execution letter realizing any function in weak internet game Number.Registering as a example by function realizing, Fig. 5 is to use call back function to perform to register the stream of function according to the preferred embodiment of the invention Cheng Tu.As it is shown in figure 5, this flow process can include following process step:
Step S502: client one idle semaphore of acquisition, and occupy the semaphore of this free time, to prevent from being performed Shared by the call back function of other functions;
Step S504: client obtains the unique identification information of the semaphore of this free time, and the execution registering correspondence is registered The call back function of function;
Step S506: client is asked the service end time to service end, the most also sends the unique of semaphore to service end Identification information;
Step S508: service end searches the call back function of registration by unique identification information, and returns the service end time;
Step S510: the semaphore that client release unique identification information is corresponding;
Step S512: client is to the call back function incoming service end time and performs this call back function.
Based on the preferred implementation shown in above-mentioned Fig. 2 to Fig. 4, the inside of the first functional unit realizes may include that determines Time device element, semaphore management element, network connection element, log in element and external interface element.Each element to realize Concrete function following (these functions both can be realized by hardware configuration, it is also possible to writes code by software view Realize):
(1) Timer Element, is responsible for the opening timing device timing when sending synchronization request message to server, beyond pre- If after duration, trigger and initiate network connection to service end (above-mentioned first server).
(2) semaphore management element, is responsible for when each first functional unit sends call request to the first functional unit, Obtaining the semaphore corresponding with this call request from initialized data queue, this semaphore corresponding calls row for indicating For, and can correctly adjust back when service end Resume Mission data in the call back function of correspondence.
Call behavior not only can take a semaphore it should be noted that each, and discharge after the behavior of calling completes Corresponding semaphore, but also a call back function can be registered, and indicated by semaphore.When server Resume Mission number According to time, by above-mentioned semaphore can find above-mentioned call behavior registration call back function and perform.
(3) network connecting module, is responsible for not existing between client with service end in the case of network is connected, to service End initiates network connecting request.
(4) login module, be responsible in the case of having not carried out register, perform register.
(5) external interface module, is responsible for the second functional unit that to carry out information mutual.
By using above-mentioned first functional unit, solve when weak internet game client is connected with service end is network-like State test problems, also solves the general behavior of necessary account logging status detection when performing networking operation simultaneously, and right The information got carries out enclosed inside, it is provided that a general asynchronous interface is that other functional unit uses, the most greatly Reduce client coding degree of difficulty and complexity.
Alternatively, in step S16, after client uses game data to perform networking operation, it is also possible to include following holding Row step:
Step S18, client release signal identifies.
The quantity of semaphore can be with infinite expanding, so that the first functional unit can process the outside of large-scale concurrent Call.And, after call request being disposed, all can be released to the signal identification of its distribution, in order to be reallocated to every time Other call request are used.
According to embodiments of the present invention, additionally providing the embodiment of a kind of operation device of networking, Fig. 6 is to implement according to the present invention The structured flowchart of the networking operation device of the application of example, this device is be applicable to weak working application and can apply to client, As shown in Figure 6, this device includes: acquisition module 10, under the triggering of call request, obtains current network state information With logging status information, wherein, call request is corresponding with the application treating networking operation client for obtaining from service end Application data;Receiver module 20, for determining that according to network state information there is network between client and service end connects In the case of connecing, receive the application data that service end returns;Perform module 30, for waiting to join determining according to logging status information In the case of the application of net operation is in login running status, application data are used to perform networking operation.
Alternatively, acquisition module 10 may include that the first transmitting element (not shown), same for sending to service end Step request message, and opening timing device;First determines unit (not shown), when first for setting at intervalometer is preset Receive the synchronous response message corresponding with synchronization request message that service end returns in length, determine client and service end it Between exist network connect.
Alternatively, acquisition module 10 may include that the first transmitting element (not shown), same for sending to service end Step request message, and opening timing device;First determines unit (not shown), when first for setting at intervalometer is preset Do not receive the synchronous response message corresponding with synchronization request message that service end returns in length, determine in client and service end Between do not exist network connect;Second transmitting element (not shown), sets up connection request for sending to service end;Process Unit (not shown), for coming from the corresponding with setting up connection request of service end and set up connection response receiving After, it is spaced the second preset duration and again sends synchronization request message, and opening timing device to service end;Second determines unit (figure Not shown in), for receiving the synchronous response message that service end returns in the first preset duration, determine at client and clothes There is network between business end to connect.
Alternatively, acquisition module 10 may include that acquiring unit (not shown), for true according to logging status information Surely treat the logging status of the application of networking operation, when logging status is for being not logged in off-line state, obtain to be verified from service end User login information, or, receive user input user login information to be verified;3rd transmitting element (does not shows in figure Go out), for sending login authentication request to service end, wherein, login authentication request carries user to be verified and logs in letter Breath;Receive unit (not shown), for receiving the login authentication response corresponding with login authentication request that server returns; 3rd determines unit (not shown), is used for according to login authentication in response to determining that treat that the application of networking operation is in login and runs State.
Alternatively, Fig. 7 is the structured flowchart of the networking operation device applied according to the preferred embodiment of the invention, such as Fig. 7 Shown in, said apparatus can also include: processing module 40, for the signal identification corresponding for call request distribution, and register right The call back function answered, wherein, signal identification is used for indicating client, and by applying, data are incoming performs networking behaviour to call back function Make.
Alternatively, processing module 40, it is additionally operable to release signal mark.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be passed through other Mode realizes.Wherein, device embodiment described above is only schematically, the division of the most described unit, Ke Yiwei A kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed is mutual Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or communication link Connect, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be for personal computer, server or the network equipment etc.) perform the whole of method described in each embodiment of the present invention or Part steps.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (12)

1. a networking operational approach, it is characterised in that described method is applicable to weak working application, including:
Under the triggering of call request, obtain current network state information and logging status information, wherein, described call request For obtaining the application data that the application treating networking operation is corresponding from service end;
In the case of determining that according to described network state information there is network between described service end is connected, receive described clothes The described application data that business end returns;
In the case of the application treating networking operation according to described logging status information described in determining is in login running status, adopt Networking operation is performed by described application data.
Method the most according to claim 1, it is characterised in that obtain described current network state information and include:
Synchronization request message, and opening timing device is sent to described service end;
Receive in the first preset duration that described intervalometer sets described service end return with described synchronization request message Corresponding synchronous response message, determines that there is described network between described service end is connected.
Method the most according to claim 1, it is characterised in that obtain described current network state information and include:
Synchronization request message, and opening timing device is sent to described service end;
Disappearing with described synchronization request of described service end return is not received in the first preset duration that described intervalometer sets The synchronous response message that breath is corresponding, determines that there is not described network between described service end is connected;
Send to described service end and set up connection request;
Receive come from described service end with described set up connection request corresponding set up connection response after, be spaced second Preset duration sends described synchronization request message to described service end again, and opens described intervalometer;
In described first preset duration, receive the described synchronous response message that described service end returns, determine and described service There is described network between end to connect.
Method the most according to claim 1, it is characterised in that obtain described logging status information and include:
According to described logging status information determine described in treat the logging status of application of networking operation, when described logging status is not When logging in off-line state, obtain user login information to be verified from described service end, or, receive the to be verified of user's input User login information;
Send login authentication request to described service end, wherein, the request of described login authentication carries described use to be verified Family log-on message;
Receive the login authentication response corresponding with the request of described login authentication that described server returns;
According to described login authentication in response to determining that described in treat networking operation application be in described login running status.
Method the most according to claim 1, it is characterised in that obtaining described network state information and described logging status Before information, also include:
Distributing corresponding signal identification for described call request, and register corresponding call back function, wherein, described signal identification is used In instruction, described incoming to the described call back function of application data is performed networking to operate.
Method the most according to claim 5, it is characterised in that after using described application data to perform networking operation, Also include:
Discharge described signal identification.
7. a networking operation device, it is characterised in that described device is applicable to weak working application, including:
Acquisition module, under the triggering of call request, obtains current network state information and logging status information, its In, described call request for obtaining the application data that the application treating networking operation is corresponding from service end;
Receiver module, for determining, according to described network state information, the situation that network is connected that exists between described service end Under, receive the described application data that described service end returns;
Perform module, for treating that the application of networking operation is in login and runs shape described in determining according to described logging status information In the case of state, described application data are used to perform networking operation.
Device the most according to claim 7, it is characterised in that described acquisition module includes:
First transmitting element, for sending synchronization request message, and opening timing device to described service end;
First determines unit, for receive in the first preset duration that described intervalometer sets described service end return with The synchronous response message that described synchronization request message is corresponding, determines that there is described network between described service end is connected.
Device the most according to claim 7, it is characterised in that described acquisition module includes:
First transmitting element, for sending synchronization request message, and opening timing device to described service end;
First determines unit, for not receiving what described service end returned in the first preset duration that described intervalometer sets The synchronous response message corresponding with described synchronization request message, determines that there is not described network between described service end is connected;
Second transmitting element, sets up connection request for sending to described service end;
Processing unit, for receive come from described service end set up foundation corresponding to connection request and connect with described and ring Ying Hou, is spaced the second preset duration and again sends described synchronization request message to described service end, and open described intervalometer;
Second determines unit, and the described sync response returned for receiving described service end in described first preset duration disappears Breath, determines that there is described network between described service end is connected.
Device the most according to claim 7, it is characterised in that described acquisition module includes:
Acquiring unit, treats the logging status of application of networking operation described in determine according to described logging status information, works as institute When stating logging status for being not logged in off-line state, obtain user login information to be verified from described service end, or, receive and use The user login information to be verified of family input;
3rd transmitting element, for sending login authentication request to described service end, wherein, carries in the request of described login authentication There is described user login information to be verified;
Receive unit, for receiving the login authentication response corresponding with the request of described login authentication that described server returns;
3rd determines unit, for according to described login authentication in response to determining that described in treat networking operation application be in described login Running status.
11. devices according to claim 7, it is characterised in that described device also includes:
Processing module, for the signal identification corresponding for the distribution of described call request, and registers corresponding call back function, wherein, Described incoming to the described call back function of application data is performed networking for instruction and operates by described signal identification.
12. devices according to claim 11, it is characterised in that described processing module, are additionally operable to discharge described signal post Know.
CN201610675944.8A 2016-08-16 2016-08-16 Networking operational approach and device Pending CN106302459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610675944.8A CN106302459A (en) 2016-08-16 2016-08-16 Networking operational approach and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610675944.8A CN106302459A (en) 2016-08-16 2016-08-16 Networking operational approach and device

Publications (1)

Publication Number Publication Date
CN106302459A true CN106302459A (en) 2017-01-04

Family

ID=57678440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610675944.8A Pending CN106302459A (en) 2016-08-16 2016-08-16 Networking operational approach and device

Country Status (1)

Country Link
CN (1) CN106302459A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094310A (en) * 2017-05-09 2017-08-25 广州能量盒子科技有限公司 The method for connecting network and system of application in a kind of mobile terminal
CN108491256A (en) * 2018-03-15 2018-09-04 攀钢集团西昌钢钒有限公司 Library function call method, apparatus and storage medium based on strip tracking system
CN109194658A (en) * 2018-09-11 2019-01-11 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium checking operation requests
CN109582389A (en) * 2018-11-27 2019-04-05 网易(杭州)网络有限公司 Message treatment method, device, storage medium, processor and terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436232A (en) * 2008-11-20 2009-05-20 腾讯科技(深圳)有限公司 Method and system for performing network nurturance series game on mobile terminal
CN101593121A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 The method of on-line software updating, Apparatus and system
CN101729571A (en) * 2009-12-28 2010-06-09 广州游家信息技术有限公司 Method, server and system for counting network on-line user number
CN102298530A (en) * 2011-08-19 2011-12-28 深圳创维数字技术股份有限公司 Set top box software upgrading method and device
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
CN104065637A (en) * 2013-07-10 2014-09-24 腾讯科技(深圳)有限公司 Web-game running method and device
CN105607933A (en) * 2015-12-24 2016-05-25 杭州电梦网络科技有限公司 Heat updating method for mobile games

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436232A (en) * 2008-11-20 2009-05-20 腾讯科技(深圳)有限公司 Method and system for performing network nurturance series game on mobile terminal
CN101593121A (en) * 2009-06-23 2009-12-02 中兴通讯股份有限公司 The method of on-line software updating, Apparatus and system
CN101729571A (en) * 2009-12-28 2010-06-09 广州游家信息技术有限公司 Method, server and system for counting network on-line user number
CN102298530A (en) * 2011-08-19 2011-12-28 深圳创维数字技术股份有限公司 Set top box software upgrading method and device
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
CN104065637A (en) * 2013-07-10 2014-09-24 腾讯科技(深圳)有限公司 Web-game running method and device
CN105607933A (en) * 2015-12-24 2016-05-25 杭州电梦网络科技有限公司 Heat updating method for mobile games

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094310A (en) * 2017-05-09 2017-08-25 广州能量盒子科技有限公司 The method for connecting network and system of application in a kind of mobile terminal
CN108491256A (en) * 2018-03-15 2018-09-04 攀钢集团西昌钢钒有限公司 Library function call method, apparatus and storage medium based on strip tracking system
CN109194658A (en) * 2018-09-11 2019-01-11 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium checking operation requests
CN109582389A (en) * 2018-11-27 2019-04-05 网易(杭州)网络有限公司 Message treatment method, device, storage medium, processor and terminal
CN109582389B (en) * 2018-11-27 2022-06-24 网易(杭州)网络有限公司 Message processing method, device, storage medium, processor and terminal

Similar Documents

Publication Publication Date Title
CN102404858B (en) Radio resource optimizing method, device and system
CN106302459A (en) Networking operational approach and device
CN104506379B (en) Network Data Capturing method and system
CN104301161B (en) Computational methods, computing device and the communication system of quality of service index
CN109634738A (en) Asynchronous processing method, server, storage medium and device based on micro services
CN108600045A (en) A kind of service link monitoring method and device
CN104869155B (en) Data Audit method and device
CN108092913A (en) A kind of method and the multi-core CPU network equipment of message shunting
CN105991412A (en) Method and device for pushing message
CN107666473A (en) The method and controller of a kind of attack detecting
CN109218370A (en) Message method and device, electronic equipment
CN109982293A (en) Flow product method for pushing, system, electronic equipment and storage medium
CN103716230A (en) Message sending method, device and server
CN104363257B (en) A kind of user interface data method for refreshing and equipment
CN108092947A (en) A kind of method and device that identity discriminating is carried out to third-party application
CN112822208A (en) Internet of things equipment identification method and system based on block chain
CN111600808A (en) Information processing method and device for instant messaging
CN107749995A (en) A kind of DTV and OTT information and mobile terminal media resource put-on method and jettison system
CN109862094B (en) Water affair equipment data sharing method and device based on stream computing
CN106790354A (en) A kind of communication means and its device of anti-data congestion
CN106603328B (en) A kind of method and device for testing fluidic device protocol identification ability
CN107306289A (en) A kind of load-balancing method and equipment based on cloud computing
CN106341342A (en) Communication connection maintaining method and device, terminal and server
CN109224451A (en) Development of games method, equipment and storage medium based on block chain subchain
CN105704057B (en) The method and apparatus for determining the type of service of burst port congestion packet loss

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication