CN104579766B - A kind of more application layer webmaster concurrent access methods and device - Google Patents

A kind of more application layer webmaster concurrent access methods and device Download PDF

Info

Publication number
CN104579766B
CN104579766B CN201410835419.9A CN201410835419A CN104579766B CN 104579766 B CN104579766 B CN 104579766B CN 201410835419 A CN201410835419 A CN 201410835419A CN 104579766 B CN104579766 B CN 104579766B
Authority
CN
China
Prior art keywords
local side
nms
socket
variable
data
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.)
Active
Application number
CN201410835419.9A
Other languages
Chinese (zh)
Other versions
CN104579766A (en
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.)
Lingyun Tianbo Photoelectric Technology Co Ltd
Original Assignee
Lingyun Tianbo Photoelectric Technology 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 Lingyun Tianbo Photoelectric Technology Co Ltd filed Critical Lingyun Tianbo Photoelectric Technology Co Ltd
Priority to CN201410835419.9A priority Critical patent/CN104579766B/en
Publication of CN104579766A publication Critical patent/CN104579766A/en
Application granted granted Critical
Publication of CN104579766B publication Critical patent/CN104579766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of more application layer webmaster concurrent access methods and device.Multiple local side nms processes are monitored in a manner of I/O is multiplexed simultaneously, when receiving the connection request of local side nms process, establish the communication with local side nms process, initially enter the process for receiving data again when local side nms process sends data, it is not in thus the situation of communication blocking, fast response time, efficiency high, realize the concurrently access of local side nms process.Class wrapper is carried out to the data transmitted between local side nms process and local side access layer process simultaneously, concurrent transmission data carry out unified processing to multiple local side nms processes, occur conflicting and mistake because processing procedure is inconsistent when avoiding concurrently accessing.

Description

A kind of more application layer webmaster concurrent access methods and device
Technical field
The present invention relates to network technique field, more particularly to a kind of more application layer webmaster concurrent access methods and device.
Background technology
MOCA (Multimedia Over Coax Alliance, multimedia over Coax Alliance) is by using family The standard of interior existing coaxial cable connection home network device and consumer-elcetronics devices.MOCA access network equipments include MOCA local sides Equipment and MOCA terminal devices, the effect of MOCA local side apparatus is to be mixed network signal and TV signal etc., by same Terminal is managed for configuration to MOCA terminals for axle port transmission.The input of MOCA local side apparatus includes transmitting the net come in netting twine TV signal (TV signal can be sent by photoreceiver by coaxial line) in network signal and coaxial line etc., its output is served as reasons The radiofrequency signal of coaxial cable transmission.The signal resolution that MOCA terminal devices input coaxial line, such as by coaxial line by electricity Television set is transferred to depending on signal, data-signal and voice signal are respectively transmitted to by computer and phone by netting twine.One local side Equipment can be managed to more station terminal equipment.
Wherein, local side apparatus can be related to a variety of webmasters according to the needs of application, including:Local side WEB webmasters, based on HTTP Agreement (Hypertext transfer protocol, HTTP) receives the request of browser and response, according to clear Device of looking at asks to send corresponding request to local side finger daemon;Local side SNMP webmasters, based on snmp protocol (Simple Network Management Protocol, Simple Network Management Protocol) it is responsible for realizing national standard MIB storehouses (Management Information Base, management information bank) as defined in all nodes, gather EOC (Ethernet over Coax, the ether based on coaxial cable Net transmission) facility information, and with front-end network management system NMS (Network Management System, NMS) Exchange information;Local side TOOLING webmasters, request and the response of TOOLING softwares are received, be mainly used in plant produced and equipment is burnt Write Flash, printing nameplate etc..The webmaster of installation belongs to the application layer of local side apparatus, for these webmasters, in the soft of local side apparatus Need to provide a variety of management approach (SNMP/WEB/TOOLING) in part framework to manage.
But the software architecture of current local side apparatus, can not handle the concurrently access of a variety of webmasters, can only in a serial fashion by It is individual processing from each webmaster and come request and information, it is difficult to solve the stationary problem of shared resource, and be often configured without For data buffer storage mechanism, it is necessary to call physical layer interface to obtain configuration information, response speed is slow.
The content of the invention
The problem of a variety of webmasters concurrently access can not be handled in correlation technique to overcome, the application provides a kind of more application layers Webmaster concurrent access method and device.
According to the first aspect of the embodiment of the present application, there is provided a kind of more application layer webmaster concurrent access methods, including:
Each local side nms process obtains the first socket respectively, and accesses layer process to local side and initiate connection request;
Local side accesses the readable state that layer process poll local side accesses layer process socket, and layer process set is accessed according to local side Connect word readable state obtain the connection request of local side nms process after, obtain communicated with local side nms process second set Word is connect, establishes the communication connection that local side accesses layer process and each local side nms process;
Local side nms process will need the data that send to be packaged into first structure body, and by the first structure body send to Local side accesses layer process;
After local side access layer process receives the first structure body, outgoing end webmaster is parsed according to the first structure body Data transfer to the corresponding function interface that process is sent is handled, and the data that function interface returns are encapsulated as into the second structure Body, and second structure is sent to local side nms process, the method for packing of first structure body and the second structure is identical;
After local side nms process receives the second structure, parse second structure and obtain the number through function interface According to;
After the completion of local side nms process and local side access layer process communication, local side nms process and local side access layer process point Socket corresponding to itself is not closed.
Optionally, local side nms process and the socket of local side access layer process are UNIX domains byte Stream Socket.
Optionally, the data for needing to send are packaged into first structure body by local side nms process, including:
Local side nms process pre-define for represent webmaster type the first variable, for represent action type Two variables, the ternary for representing resource type and the 4th variable for representing resource identification,
The data for needing to send are used first variable, the second variable, ternary and the 4th by local side nms process Variable is represented, the data after being shown using first variable, the second variable, ternary and four variable table are packaged into first Structure.
Optionally, after local side access layer process receives the first structure body, parsed according to the first structure body Data transfer to the corresponding function interface that local side nms process is sent is handled, and the data that function interface returns are encapsulated as Second structure, including:
Local side access layer process pre-define for represent webmaster type the first variable, for representing action type Second variable, the ternary for representing resource type and the 4th variable for representing resource identification,
After local side access layer process receives the first structure body, the first change is parsed according to the first structure body Amount, the second variable, ternary and the 4th variable, and first variable, the second variable, ternary and the 4th variable are passed Corresponding function interface is transported to be handled, receiver function interface return data, and by function interface return data according to First variable, the second variable, ternary and the 4th variable encapsulation are the second structure.
Optionally, described more application layer webmaster concurrent access methods, in addition to:
Layer process drawn game end nms process is accessed in local side and defines socket communication interface respectively, and the socket communication connects Mouth connects including the first interface for initializing socket, the second interface for sending data, for receiving the 3rd of data the Mouth and the 4th interface for closing socket,
After local side nms process obtains first socket, call described in the first interface initialization of local side nms process First socket, local side access layer process after obtaining local side and accessing layer process socket, call the first of local side access layer to connect Mouth initializes the local side and accesses layer process socket,
Local side nms process calls the second interface of local side nms process to send the first structure body to local side and accessed Layer process,
Local side accesses layer process and calls local side to access first structure body described in the 3rd interface of layer process, and calling office The second interface that end accesses layer process sends second structure to local side nms process,
Local side nms process calls the second structure described in the 3rd interface of local side nms process,
After the completion of local side nms process and local side access layer process communication, local side nms process and local side access layer process point Respective 4th interface is not called to close the socket of itself.
Optionally, the communication established local side and access layer process drawn game end nms process, layer process one is accessed in local side End, including:
Step a1, obtain local side and access layer process socket descriptor;
Step a2, the connection request of local side nms process is monitored, the local side is accessed into the description of layer process socket adds Into descriptor set;
Step a3, the state of query specification symbol collection, judge the state of descriptor set with the presence or absence of change;
Step a4, if the state of descriptor set has change, the state of all descriptors is traveled through, judges whether shape The descriptor that state changes, otherwise, return to step a3;
Step a5:The descriptor to be changed if there is state, judges whether the descriptor that state changes is equal to The local side accesses layer process socket descriptor;
Step a6, if the descriptor that state changes is equal to the socket descriptor, local side webmaster be present and enter Journey connection request, receive the local side nms process connection request, obtain the second socket to be communicated with local side nms process Word, the communication with local side nms process is established, the descriptor to be communicated with local side nms process is added in descriptor set, returned Step a3, otherwise, local side access layer process and enter the process for receiving the data that local side nms process is sent.
Corresponding to the embodiment of the present application in a first aspect, second aspect according to the embodiment of the present application, there is provided it is a kind of it is more should With the concurrent access mechanism of layer webmaster, including:
Local side nms process link block, for obtaining the first socket respectively in each local side nms process, and to Local side accesses layer process and initiates connection request;
Local side accesses layer process link block, and layer process socket is accessed for poll local side in accessing layer process in local side Readable state, according to local side access layer process socket readable state obtain the connection request of local side nms process after, obtain The second socket to be communicated with local side nms process is taken, local side is established and accesses the logical of layer process and each local side nms process Letter connection;
Local side nms process data processing module, for the data for needing to send to be packaged into first structure body;
Local side nms process data transmission blocks, layer process is accessed for the first structure body to be sent to local side;
Local side access layer process data receiving module, the first structure body is received for accessing layer process in local side;
Local side access layer process data processing module, for parsing outgoing end nms process hair according to the first structure body The data transfer sent to corresponding function interface is handled, and the data that receiver function interface returns are encapsulated as the second structure, The method for packing of first structure body and the second structure is identical;
Local side access layer process data sending module, for second structure to be sent to local side nms process;
Local side nms process data reception module, for receiving second structure, and parse second structure Obtain the data through function interface;
Local side nms process communication closedown module, for after the completion of the communication with local side access layer process, closing itself Corresponding socket;
Local side access layer process communication closedown module, for after the completion of the communication with local side nms process, closing itself Corresponding socket.
Optionally, local side nms process and the socket of local side access layer process are UNIX domains byte Stream Socket.
Optionally, the local side nms process data processing module, including:
First variable-definition submodule, for pre-defining the first change for representing webmaster type in local side nms process Amount, the second variable for representing action type, the ternary for representing resource type and for representing resource identification 4th variable,
First data encapsulate submodule, for becoming the data for needing to send using described first in local side nms process Amount, the second variable, ternary and four variable table are shown, will use first variable, the second variable, ternary and the 4th Data after variable represents are packaged into first structure body.
Optionally, the local side access layer process data processing module, including:
Second variable-definition submodule, for local side access layer process pre-define for represent webmaster type first Variable, the second variable for representing action type, the ternary for representing resource type and for representing resource identification The 4th variable,
First analyzing sub-module, for being accessed in local side after layer process receives the first structure body, according to described the One structure parses the first variable, the second variable, ternary and the 4th variable,
Submodule is transmitted, for first variable, the second variable, ternary and the 4th variable to be transmitted to corresponding Function interface is handled;
Returned data receiving submodule, the data returned for receiver function interface;
Second encapsulation submodule, for by the data that function interface returns according to the first variable, the second variable, ternary It is the second structure with the 4th variable encapsulation.
Optionally, described more concurrent access mechanisms of application layer webmaster, in addition to:
First sockets interface definition module, in local side access layer process definition socket communication interface;
Second sockets interface definition module, for defining socket communication interface in local side nms process;
Wherein, the socket communication interface includes being used to initialize the first interface of socket, for sending data Second interface, the 3rd interface for receiving data and the 4th interface for closing socket,
After local side nms process obtains first socket, call described in the first interface initialization of local side nms process First socket, local side access layer process after obtaining local side and accessing layer process socket, call the first of local side access layer to connect Mouth initializes the local side and accesses layer process socket,
Local side nms process data transmission blocks call the second interface of itself to send the first structure body to local side Layer process is accessed, local side nms process data reception module calls the second structure described in the 3rd interface of itself,
Local side access layer process data receiving module calls first structure body described in the 3rd interface of itself, and calls The second interface of itself sends second structure to local side nms process,
Communicate closedown module and local side access layer process communication closedown module of local side nms process calls respective the respectively Four interfaces close the socket of itself.
Optionally, the local side accesses layer process link block, including:
Socket descriptor acquisition submodule, layer process socket descriptor is accessed for obtaining local side;
Submodule is monitored, layer process socket is accessed for monitoring the connection request of local side nms process, and by the local side Word description is added in descriptor set;
Descriptor set status inquiry submodule, for query specification symbol collection state, judge descriptor set state whether In the presence of change;
Descriptor status inquiry submodule, if the state for descriptor set has change, travel through all descriptors State, the descriptor that the state of judging whether changes, otherwise, return to descriptor set state-query module;
Descriptor judging submodule, for the descriptor to be changed if there is state, judge what state changed Whether descriptor, which is equal to the local side, accesses layer process socket descriptor;
Setting up submodule is communicated to connect, if being equal to the local side for the descriptor that state changes accesses layer process Socket descriptor, then receive the local side nms process connection request, obtain second to be communicated with local side nms process Socket, the communication with local side nms process is established, the descriptor to be communicated with local side nms process is added in descriptor set, Descriptor set status inquiry submodule is returned to, otherwise, local side accesses layer process and enters the data for receiving the transmission of local side nms process Process.
The technical scheme that the embodiment of the present application provides can include the following benefits:Supervised simultaneously in a manner of I/O is multiplexed Multiple local side nms processes are controlled, when receiving the connection request of local side nms process, establish the communication with local side nms process, Initially enter the process for receiving data again when local side nms process sends data, thus be not in the situation of communication blocking, Fast response time, efficiency high, realize the concurrently access of local side nms process.Local side nms process and local side access layer are entered simultaneously The data transmitted between journey carry out structure encapsulation, and to multiple local side nms processes, concurrent transmission data carry out unified place Reason, interface abstraction can also be carried out to local side nms process and local side access layer process, it is when avoiding concurrently accessing because treated Journey is inconsistent and occurs conflicting and mistake.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The application can be limited.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow signal of more application layer webmaster concurrent access methods shown in the exemplary embodiment of the application one Figure.
Fig. 2 is that a kind of flow of more application layer webmaster concurrent access methods shown in the application another exemplary embodiment is shown It is intended to.
Fig. 3 is a kind of block diagram of more concurrent access mechanisms of application layer webmaster shown in the exemplary embodiment of the application one.
Fig. 4 is a kind of block diagram of more concurrent access mechanisms of application layer webmaster shown in the application another exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
For comprehensive understanding the application, numerous concrete details are refer in the following detailed description, but this area skill Art personnel are it should be understood that the application can realize without these details.In other embodiments, it is not described in detail known Method, process, component and circuit, obscured in order to avoid undesirably resulting in embodiment.
According to the first aspect of the embodiment of the present application, there is provided a kind of more application layer webmaster concurrent access methods.Fig. 1 is this Shen A kind of schematic flow sheet of more application layer webmaster concurrent access methods that please be shown in an exemplary embodiment, in Fig. 1, dotted line represents The transmission direction of data message.As shown in figure 1, methods described includes:
Step S101, each local side nms process obtains the first socket respectively, and accesses layer process to local side and initiate to connect Connect request.
Wherein, for the ease of the design and maintenance of local side program, local side software architecture is from top to bottom in turn divided into office Hold access layer, local side business software layer, local side SDK software layers and local side operating system layer.Station-side operations system layer operates system System platform, such as the operating system platform based on LINUX;Local side SDK software layers are used to be packaged local side SDK, when SDK becomes During change, SDK layers need to be only changed, the application code on upper strata is without changing;Local side business software layer calls SDK interface, enters industry Business configuration, and business configuration is stored;Local side access layer is used to be communicated with a variety of local side webmasters and data transfer, A variety of local side webmasters are managed, and the access to a variety of local side webmasters carries out data encapsulation and interface abstraction.To local side After software architecture carries out distinguishing hierarchy, the concurrently access for a variety of local side webmasters, mainly will be solved by local side access layer, office End access layer sets up communication port with a variety of local side webmasters, enters row data communication, local side access layer and a variety of local side webmasters Communication accesses layer process by local side and a variety of local side nms processes are carried out.The data that local side access layer receives local side webmaster are laggard Row parsing, is then passed to local side business software layer, and the difference processing of local side webmaster type, local side are completed in local side access layer Business software layer just need not consider further that the type of local side webmaster, only need to carry out business processing, a variety of so as to preferably support The access of local side webmaster.
Each local side nms process obtains the first socket respectively when needing to establish communication connection with local side access layer, And access layer process to local side and initiate connection request.Local side nms process obtains the first socket and accesses layer process hair to local side Conventional method can be used by playing connection request, such as to the operating system based on LINUX (below all with the behaviour based on LINUX Illustrated as system), call socket () to obtain socket descriptor, that is, obtain the first socket, and call Connect () carries out initiation connection request to local side access layer, to start to be communicated with local side access layer.
Step S102, local side access the readable state that layer process poll local side accesses layer process socket, visited according to local side After asking that the readable state of layer process socket obtains the connection request of local side nms process, acquisition is led to local side nms process Second socket of letter, establish the communication connection that local side accesses layer process and each local side nms process.
Wherein, specifically, step S102 can include:
Step a1, local side access layer obtain local side and access layer process socket and its descriptor, and office corresponding to initialization End accesses layer process socket, under the operating system based on LINUX socket () can be called to enter to obtain local side access layer Journey socket descriptor, local side access layer process socket file path and the binding of local side access layer process socket descriptor;
Step a2, the connection request of local side nms process is monitored, local side access layer process socket descriptor is added Enter into descriptor set, listen () is called under the operating system based on LINUX, the company of local side nms process can be monitored Request is connect, descriptor set is used to store socket descriptor;
Step a3, the state of query specification symbol collection, judge that the state of descriptor set with the presence or absence of change, generally, will can retouch State symbol collection and be assigned to interim descriptor set, described temporarily using select () functional query under the operating system based on LINUX The state of collection is accorded with, the state of descriptor set is judged with the presence or absence of change by select () return value, select's () returns Change be present in the state for returning value if greater than 0 explanation descriptor set;
Step a4, if the state of descriptor set has change, the state of all descriptors is traveled through, judges whether shape The descriptor that state changes, otherwise, return to step a3, continue the state that query specification symbol collects;
Step a5:The descriptor to be changed if there is state, judges whether the descriptor that state changes is equal to The local side accesses layer process socket descriptor, i.e., accesses the description of layer process socket equal to the local side that local side access layer obtains Symbol;
Step a6, if the descriptor that state changes, which is equal to the local side, accesses layer process socket descriptor, Local side nms process connection request be present, receive the local side nms process connection request, obtain and carried out with local side nms process The socket and its descriptor of communication, i.e., described second socket and its descriptor.Under the operating system based on LINUX, institute Stating the socket descriptor to be communicated with local side nms process can be obtained using accept () function, be obtained and local side net The socket descriptor that pipe process is communicated establishes the communication with local side nms process, will be communicated with local side nms process Socket descriptor be added in descriptor set, return to step a3, continue query specification symbol collection state, with investigate whether have Other local side nms process connection requests.If the descriptor that the state currently traversed changes is not equal to local side access layer The local side of acquisition accesses layer process socket descriptor, then local side accesses the number that layer process enters the nms process transmission of reception local side According to process.
Wherein, local side accesses the change that layer process accesses layer process socket state by poll local side, is receiving office After the connection request for holding nms process, the communication connection that local side accesses layer process and each local side nms process is established, is answered with I/O Mode monitors multiple local side nms processes simultaneously, when receiving the connection request of local side nms process, foundation and local side The communication of nms process, when local side nms process sends data, (the readable descriptor traversed is not equal to local side access layer During the socket descriptor of acquisition), then the process for receiving data is initially entered, thus be not in the situation of communication blocking, ring Answer speed fast, efficiency high so that the concurrently access of local side nms process can be realized.
Step S103, local side nms process will need the data that send to be packaged into first structure body, and by first knot Structure body sends to local side and accesses layer process.
Step S104, after local side access layer process receives the first structure body, parsed according to the first structure body Data transfer to the corresponding function interface that outgoing end nms process is sent is handled, and the data that function interface is returned encapsulate For the second structure, and second structure is sent to the envelope of local side nms process, first structure body and the second structure Dress method is identical.
Step S105, after local side nms process receives the second structure, parse second structure and obtain through function The data that interface returns.
Wherein, when multiple local side nms processes concurrently access, because the type of local side webmaster is different, what is transmitted is resources-type Type, the action type that is related to is different, if the data that the access to each local side nms process is transmitted while handled respectively, by Data handling procedure will be made complicated and easily occur conflicting and mistake in processing procedure is inconsistent, for can be to multiple local side nms processes Concurrent transmission data carry out unified processing, carry out class wrapper to the data of local side nms process transmission, that is, encapsulate data For structure.For local side nms process, it would be desirable to which the data for being sent to local side access layer process are encapsulated as first structure Body, it is then forwarded to local side and accesses layer process.The data that local side nms process needs to transmit can be divided into webmaster type, behaviour Make type, resource type and resource identification, thus can local side nms process pre-define for represent webmaster type One variable, the second variable for representing action type, the ternary for representing resource type and for representing resource mark The 4th variable known, local side nms process will need the data that send using first variable, the second variable, ternary and 4th variable represents, using data after being shown using first variable, the second variable, ternary and four variable table as The member of structure, it is packaged into first structure body.For example, it is moduleType by webmaster type definition, by various action types OperType is defined as, is resType by resource type definitions, resource identification is defined as resId, the value of each variable is Specific network type, action type, resource type and resource identification.Structural texture build uAlMsg, its with moduleType, OperType, resType and resID are member, and the structure of uALMsg types is the number of the local side nms process after encapsulation According to.When local side nms process accesses layer process to local side and sends data, the structure of uAlMsg types will be directly transmitted.
Correspondingly, after local side access layer process receives the first structure body, according to the method for packing of first structure body Correspondingly the first structure body is parsed, the data that parsing outgoing end nms process is sent.For the data to encapsulation Parsed, and the encapsulation of data again subsequently when to local side nms process returned data, accessing layer process in local side can be with Pre-define for represent webmaster type the first variable, the second variable for representing action type, for representing resources-type The ternary of type and the 4th variable for representing resource identification, pre-defined variable and method and local side nms process are pre- The variable first defined is identical with method.After local side access layer process receives the first structure body, according to the first structure Body parses the first variable, the second variable, ternary and the 4th variable, such as local side accesses layer process and receives local side webmaster Process send uALMsg types structure after, extract structure in moduleType, operType, resType and ResID variables, obtain webmaster type, action type, resource type and resource identification data.
Local side accesses layer process and parsed after the first structure body obtains corresponding data, will parse obtained data transfer To the function interface handled each data, the function interface receives the interface of data, example for the function of processing data Such as the function of the processing data of local side business software layer, including conventional data filtering function etc..Will be according to first structure body Obtained the first variable, the second variable, ternary and the 4th variable is parsed to transmit to corresponding function interface and handled.Through The treated data of function access layer process, it is necessary to which the meeting returned returns to local side by function interface.Local side accesses layer process and connect After the data for receiving function interface return, data are sealed according still further to the method same with local side nms process encapsulation of data Dress.The data that function interface is returned are the second knot according to the first variable, the second variable, ternary and the 4th variable encapsulation Structure body.Such as moduleType, operType, resType and the resID for returning to function interface are encapsulated as uALMsg classes again Second structure of type.Local side accesses layer process and again sends the second structure that encapsulation obtains to local side nms process.
Wherein, after local side nms process receives the second structure that local side accesses layer process transmission, the second structure is extracted Each variable in body, the numerical value of each variable is obtained, that is, parse second structure and obtain handling through function and by function The data that interface returns.For example, after local side nms process receives the second structure of uALMsg types, extract in structure ModuleType, operType, resType and resID variable, obtain webmaster type and action type, resource after processing Type and resource identification data.
It should be noted that on local side nms process and local side access layer process be not limited in the method for packing of data Method is stated, other conventional data encapsulation methods or self-defining data method for packing can also be used.
Wherein, after local side nms process is that local side accesses layer process foundation communication connection, if necessary to send data, then The data after encapsulation are sent into function using correlation to be transmitted, such as send () is used under the operating system based on LINUX Function is transmitted.After sending data, the socket descriptor that the inquiry of local side nms process obtains is the first socket descriptor It is whether readable such as whether readable using the first socket descriptor described in select () functional query, when returning for select () When returning value more than 0, first socket descriptor is readable.When first socket descriptor is readable, illustrate that local side is visited Ask that layer process have sent data, then using receiver function, such as recv () function under operating system based on LINUX come Receive local side and access the data that layer process is sent.To save system processing resources, local side nms process is avoided unrestrictedly to inquire about Whether first socket descriptor is readable to determine whether that data can receive, when local side nms process is looked into twice in succession When the result for asking first socket descriptor is all that first socket descriptor is unreadable, local side access layer is just thought Process not returned data, and then close the first socket of local side nms process, that is, close the communication that layer process is accessed with local side.
Wherein, for local side accesses layer process, communication connection is established with local side nms process, into reception data Process when, that is, the descriptor that the state that traverses changes accesses layer process set not equal to the local side that local side access layer obtains When connecing word description symbol, the readable byte of the socket (i.e. described second socket) to be communicated with local side nms process is obtained Number, if can reading bytes be not 0, illustrate to have the data of corresponding local side nms process transmission, uses related reception letter Number receives data, such as the data of local side nms process transmission are received using recv ().Local side accesses layer process to local side webmaster When process sends data, using the transmission function of correlation to local side nms process transmission second structure, such as using Send () function is transmitted.
If obtain communicated with local side nms process socket can reading bytes be 0, illustrate local side webmaster Process has been turned off its first socket, that is, eliminates the connection to local side access layer process, and now local side accesses layer process Close the socket that is currently communicated with corresponding local side nms process, and by corresponding socket descriptor from descriptor set In remove, terminate and the communication of local side nms process.
After the completion of step S106, local side nms process and local side access layer process communication, local side nms process and local side are visited Ask that layer process closes socket corresponding to itself respectively.
Wherein, after the completion of the communication of local side nms process and local side access layer process, local side nms process and local side access Layer process closes socket corresponding to itself respectively, i.e. local side nms process closes the first socket of local side nms process, office End accesses layer process and closes the second socket that local side accesses layer process socket and local side accesses layer process, releases between the two Communication connection.
The socket and local side that above-mentioned local side nms process is related to access the socket that process is related to, preferably UNIX Domain byte Stream Socket.UNIX domains socket does not perform other relative to conventional internet domain socket, only replicate data Processing, has higher communication efficiency, and UNIX domains byte Stream Socket is more suitable for office compared to UNIX numeric field data report sockets Hold nms process and the process communication of local side access layer that there is the characteristic of long connection.
Fig. 2 is that a kind of flow of more application layer webmaster concurrent access methods shown in the application another exemplary embodiment is shown It is intended to, in Fig. 2, dotted line represents the transmission direction of data message.As shown in Fig. 2 methods described includes:
Step S201, access layer process drawn game end nms process in local side and define socket communication interface, the set respectively Connecing word communication interface includes being used for initializing the first interface of socket, the second interface for sending data, for receiving number According to the 3rd interface and the 4th interface for closing socket;
Step S202, local side access layer process drawn game end nms process define respectively for represent webmaster species first Variable, the second variable for representing action type, the ternary for representing resource type and for representing resource identification The 4th variable;
Step S203, each local side nms process obtain the first socket respectively, call respective first interface to initialize Respective first socket, and access layer process to local side and initiate connection request;
Step S204, local side access layer process and obtain local side access layer process socket, call local side to access layer process First interface initializes the local side and accesses layer process socket;
Step S205, local side access layer are inquired about the readable state that the local side accesses layer process socket, visited according to local side After asking that the readable state of layer process socket obtains the connection request of local side nms process, acquisition is led to local side nms process Second socket of letter, the communication connection established between local side access layer process and each local side nms process;
Step S206, local side nms process become the data for needing to send using first variable, the second variable, the 3rd Amount and four variable table show that the data after being shown using first variable, the second variable, ternary and four variable table are sealed First structure body is dressed up, and calls second interface to send the first structure body to local side and accesses layer process;
Step S207, local side access layer process and call the 3rd interface to after the first structure body, according to described the One structure parses the first variable, the second variable, ternary and the 4th variable, and by first variable, the second variable, Ternary and the 4th variable, which are transmitted to corresponding function interface, to be handled, the data returned after function interface is handled according to First variable, the second variable, ternary and the 4th variable encapsulation are the second structure, and call the 3rd interface by described in Second structure is sent to local side nms process;
Step S208, local side nms process calls the 3rd interface to after second structure, described in parsing Second structure obtains the data of function interface return;
After the completion of step S209, local side nms process and local side access layer process communication, local side nms process and local side are visited Ask that layer process calls the 4th interface to close socket respectively.
Wherein, because local side nms process and local side access layer process are required for carrying out the initialization of socket, data hair Send, data receiver and communication close (closing socket).For convenience of the management concurrently accessed local side nms process, Ke Yi Local side accesses layer process drawn game end nms process and defines socket communication interface respectively, and the socket communication interface includes being used for Initialize the first interface of socket, the second interface for sending data, the 3rd interface for receiving data and be used for Close the 4th interface of socket.The socket communication interface is to be combined the processing function of correlation, such as will be initial The correlation function for changing socket is combined as new function, and the new function is the first interface, by for sending data Correlation function is combined as the second interface, by that analogy.Visited using unified interface to handle local side nms process and local side Communication and the data transfer of layer process are asked, is advantageous to the management concurrently accessed local side nms process, makes management that there is uniformity, Reduce different local side webmasters and concurrently access the mistake of caused communication or transmission with conflicting.
Wherein, local side accesses layer process after obtaining local side and accessing layer process socket, calls the first of local side access layer Local side described in interface initialization accesses layer process socket, after local side nms process obtains its first socket, calls local side net The first interface of pipe process initializes its first socket.Local side nms process calls second interface to send out the first structure body Deliver to local side and access layer process, local side accesses layer process and calls first structure body described in the 3rd interface, and calls described the Second structure is sent to local side nms process, local side nms process and called described in the 3rd interface by two interfaces After the completion of second structure, local side nms process and local side access layer process communication, local side nms process and local side access layer enter Journey calls the 4th interface to close the socket of itself respectively.
The description of embodiment of the method more than, it is apparent to those skilled in the art that the application can Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on such understanding, the technical scheme of the application substantially makes tribute to prior art in other words The part offered can be embodied in the form of software product, and be stored in a storage medium, including some instructions to So that a smart machine performs all or part of step of each embodiment methods described of the application.And foregoing storage medium Including:Read-only storage (ROM), random access memory (RAM), magnetic disc or CD etc. are various can be with data storage and program The medium of code.
Corresponding to the embodiment of the present application in a first aspect, second aspect according to the embodiment of the present application, there is provided it is a kind of it is more should With the concurrent access mechanism of layer webmaster.Fig. 3 is that a kind of more application layer webmasters shown in the exemplary embodiment of the application one concurrently access The block diagram of device, in Fig. 3, existing data information transfer relation between dotted line representation module.As shown in figure 3, described device includes:
Local side nms process link block U301, for obtaining the first socket respectively in each local side nms process, And access layer process to local side and initiate connection request;
Local side accesses layer process link block U302, and layer process set is accessed for poll local side in accessing layer process in local side The readable state of word is connect, the readable state that layer process socket is accessed according to local side obtains the connection request of local side nms process Afterwards, the second socket to be communicated with local side nms process is obtained, local side access layer process is established and each local side webmaster enters The communication connection of journey;
Local side nms process data processing module U303, for the data for needing to send to be packaged into by local side nms process First structure body;
Local side nms process data transmission blocks U304, for sending to local side access layer the first structure body Journey;
Local side access layer process data receiving module U305, the first structure is received for accessing layer process in local side Body;
Local side access layer process data processing module U306, enter for parsing outgoing end webmaster according to the first structure body Data transfer to the corresponding function interface that journey is sent is handled, and the data that receiver function interface returns are encapsulated as the second structure The method for packing of body, first structure body and the second structure is identical;
Local side access layer process data sending module U307, for sending to local side webmaster second structure Journey;
Local side nms process data reception module U308, for receiving second structure, and parse second knot Structure body obtains the data through function interface;
Local side nms process communication closedown module U309, for after the completion of the communication with local side access layer process, closing Socket corresponding to itself.
Local side access layer process communication closedown module U3010, for after the completion of the communication with local side nms process, closing Socket corresponding to itself.
Wherein, the local side nms process data processing module U303, can include:
First variable-definition submodule, for pre-defining the first change for representing webmaster type in local side nms process Amount, the second variable for representing action type, the ternary for representing resource type and for representing resource identification 4th variable,
First data encapsulate submodule, for becoming the data for needing to send using described first in local side nms process Amount, the second variable, ternary and four variable table are shown, will use first variable, the second variable, ternary and the 4th Data after variable represents are packaged into first structure body.
Wherein, the local side access layer process data processing module U306, can include:
Second variable-definition submodule, for local side access layer process pre-define for represent webmaster type first Variable, the second variable for representing action type, the ternary for representing resource type and for representing resource identification The 4th variable,
First analyzing sub-module, for being accessed in local side after layer process receives the first structure body, according to described the One structure parses the first variable, the second variable, ternary and the 4th variable,
Submodule is transmitted, for first variable, the second variable, ternary and the 4th variable to be transmitted to corresponding Function interface is handled;
Returned data receiving submodule, the data returned for receiver function interface;
Second encapsulation submodule, for by the data that function interface returns according to the first variable, the second variable, ternary It is the second structure with the 4th variable encapsulation.
Wherein, local side accesses layer process link block U302, can include:
Socket descriptor acquisition submodule, for obtaining socket descriptor;
Submodule is monitored, for monitoring the connection request of local side nms process, and the socket word description is added to and retouched Symbol is stated to concentrate;
Descriptor set status inquiry submodule, for query specification symbol collection state, judge descriptor set state whether In the presence of change;
Descriptor status inquiry submodule, if the state for descriptor set has change, travel through all descriptors State, the descriptor that the state of judging whether changes, otherwise, return to descriptor set state-query module;
Descriptor judging submodule, for the descriptor to be changed if there is state, judge what state changed Whether descriptor is equal to the socket descriptor;
Setting up submodule is communicated to connect, if being equal to the socket descriptor for the descriptor that state changes, Then receive the local side nms process connection request, establish the communication with local side nms process, will be communicated in local side nms process Descriptor be added in descriptor set, return descriptor set status inquiry submodule, otherwise, local side access layer process enter connects Receive the process for the data that local side nms process is sent.
Fig. 4 be the exemplary embodiment of the application one shown in a kind of more concurrent access mechanisms of application layer webmaster block diagram, Fig. 4 In, existing data information transfer relation between dotted line representation module.As shown in figure 4, described device includes:
First sockets interface definition module U401, in local side access layer process definition socket communication interface;
Second sockets interface definition module U402, for defining socket communication interface in local side nms process;
Local side nms process link block U403, the first socket is obtained respectively for each local side nms process, call Respective first interface initializes respective first socket, and accesses layer process to local side and initiate connection request;
Local side accesses layer process link block U404, and accessing layer process for local side obtains local side access layer process socket Word, call local side to access the first interface of layer process and initialize the local side access layer process socket, enter in local side access layer Poll local side accesses the readable state of layer process socket in journey, and the readable state that layer process socket is accessed according to local side obtains After the connection request of local side nms process, the second socket to be communicated with local side nms process is obtained, establishes local side access The communication connection of layer process and each local side nms process;
Local side nms process data processing module U405, for for local side nms process to be sealed the data for needing to send Dress up first structure body;
Local side nms process data transmission blocks U406, for sending to local side access layer the first structure body Journey;
Local side access layer process data receiving module U407, the first structure is received for accessing layer process in local side Body;
Local side access layer process data processing module U408, enter for parsing outgoing end webmaster according to the first structure body Data transfer to the corresponding function interface that journey is sent is handled, and the data that receiver function interface returns are encapsulated as the second structure The method for packing of body, first structure body and the second structure is identical;
Local side access layer process data sending module U409, for sending to local side webmaster second structure Journey;
Local side nms process data reception module U4010, for receiving second structure, and parse second knot Structure body obtains the data through function interface;
Local side nms process communication closedown module U4011, for after the completion of the communication with local side access layer process, closing Socket corresponding to itself.
Local side access layer process communication closedown module U4012, for after the completion of the communication with local side nms process, closing Socket corresponding to itself.
Wherein, the socket communication interface includes being used to initialize the first interface of socket, for sending data Second interface, the 3rd interface for receiving data and the 4th interface for closing socket,
Local side accesses layer process after obtaining local side and accessing layer process socket, at the beginning of the first interface for calling local side access layer The beginningization local side accesses layer process socket, after local side nms process obtains its first socket, calls local side nms process First interface initialize its first socket.Local side nms process data transmission blocks call the second interface of itself by described in First structure body sends to local side and accesses layer process, and local side nms process data reception module calls the 3rd interface of itself Second structure,
Local side access layer process data receiving module calls first structure body described in the 3rd interface of itself, and calls The second interface of itself sends second structure to local side nms process,
Communicate closedown module and local side access layer process communication closedown module of local side nms process calls respective the respectively Four interfaces close the socket of itself.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates can be or may not be it is physically separate, can be as the part that unit is shown or Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it Between any this actual relation or backward be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of elements not only include those Key element, but also the other element including being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the embodiment of the application, is made skilled artisans appreciate that or realizing this Shen Please.A variety of modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. more application layer webmaster concurrent access methods, it is characterised in that including:
    Each local side nms process obtains the first socket respectively, and accesses layer process to local side and initiate connection request;
    Local side accesses the readable state that layer process poll local side accesses layer process socket, and layer process socket is accessed according to local side Readable state obtain the connection request of local side nms process after, obtain communicated with local side nms process second be socketed Word, establish the communication connection that local side accesses layer process and each local side nms process;
    The data for needing to send are packaged into first structure body by local side nms process, and the first structure body is sent to local side Access layer process;
    After local side access layer process receives the first structure body, outgoing end nms process is parsed according to the first structure body The data of transmission, data transfer to the corresponding function interface that parsing obtains is handled, the data that function interface is returned The second structure is encapsulated as, and second structure is sent to local side nms process, first structure body and the second structure Method for packing it is identical;
    After local side nms process receives the second structure, parse second structure and obtain the number returned through function interface According to;
    After the completion of local side nms process and local side access layer process communication, local side nms process and local side access layer process are closed respectively Close socket corresponding to itself.
  2. 2. more application layer webmaster concurrent access methods as claimed in claim 1, it is characterised in that local side nms process and local side The socket for accessing layer process is UNIX domains byte Stream Socket.
  3. 3. more application layer webmaster concurrent access methods as claimed in claim 1, it is characterised in that
    The data for needing to send are packaged into first structure body by local side nms process, including:
    Local side nms process pre-define for represent webmaster type the first variable, for represent action type second become Amount, the ternary for representing resource type and the 4th variable for representing resource identification,
    The data for needing to send are used first variable, the second variable, ternary and the 4th variable by local side nms process Represent, the data after being shown using first variable, the second variable, ternary and four variable table are packaged into first structure Body;
    After local side access layer process receives the first structure body, outgoing end nms process is parsed according to the first structure body The data of transmission, data transfer to the corresponding function interface that parsing obtains is handled, the data that function interface is returned The second structure is encapsulated as, including:
    Local side access layer process pre-define for represent webmaster type the first variable, for represent action type second Variable, the ternary for representing resource type and the 4th variable for representing resource identification,
    Local side is accessed after layer process receives the first structure body, and the first variable, the are parsed according to the first structure body Two variables, ternary and the 4th variable, and by first variable, the second variable, ternary and the 4th variable transmit to Corresponding function interface is handled, the data that receiver function interface returns, and the data that function interface is returned are according to first Variable, the second variable, ternary and the 4th variable encapsulation are the second structure.
  4. 4. more application layer webmaster concurrent access methods as described in claims 1 to 3 is any, it is characterised in that also include:
    Layer process drawn game end nms process, which is accessed, in local side defines socket communication interface, the socket communication interface bag respectively Include for initialize socket first interface, the second interface for sending data, for receive the 3rd interface of data with And for closing the 4th interface of socket,
    After local side nms process obtains first socket, the first interface initialization described first of local side nms process is called Socket, local side access layer process after obtaining local side and accessing layer process socket, call local side to access the first of layer process and connect Mouth initializes the local side and accesses layer process socket,
    Local side nms process calls the second interface of local side nms process to send to local side access layer by the first structure body Journey,
    Local side accesses layer process and calls local side to access first structure body described in the 3rd interface of layer process, and calls local side to visit Ask that the second interface of layer process sends second structure to local side nms process,
    Local side nms process calls the second structure described in the 3rd interface of local side nms process,
    After the completion of local side nms process and local side access layer process communication, local side nms process and local side access layer process are adjusted respectively The socket of itself is closed with respective 4th interface.
  5. 5. more application layer webmaster concurrent access methods as claimed in claim 1, it is characterised in that described to establish local side access layer The communication of process and local side nms process, layer process one end is accessed in local side, including:
    Step a1, obtain local side and access layer process socket descriptor;
    Step a2, the connection request of local side nms process is monitored, local side access layer process socket descriptor is added to In descriptor set;
    Step a3, the state of query specification symbol collection, judge the state of descriptor set with the presence or absence of change;
    Step a4, if the state of descriptor set has change, the state of all descriptors is traveled through, judge whether that state is sent out The descriptor for changing, otherwise, return to step a3;
    Step a5:The descriptor to be changed if there is state, it is described to judge whether descriptor that state changes is equal to Local side accesses layer process socket descriptor;
    Step a6, if the descriptor that state changes, which is equal to the local side, accesses layer process socket descriptor, exist Local side nms process connection request, receives the local side nms process connection request, and acquisition is communicated with local side nms process The second socket, establish with the communication of local side nms process, the descriptor to be communicated with local side nms process is added to description Symbol is concentrated, return to step a3, and otherwise, local side accesses layer process and enters the process for receiving the data that local side nms process is sent.
  6. A kind of 6. more concurrent access mechanisms of application layer webmaster, it is characterised in that including:
    Local side nms process link block, for obtaining the first socket respectively in each local side nms process, and to local side Access layer process and initiate connection request;
    Local side access layer process link block, for local side access layer process in poll local side access layer process socket can Read states, according to local side access layer process socket readable state obtain the connection request of local side nms process after, obtain with The second socket that local side nms process is communicated, establish the communication link that local side accesses layer process and each local side nms process Connect;
    Local side nms process data processing module, for the data for needing to send to be packaged into first structure body;
    Local side nms process data transmission blocks, layer process is accessed for the first structure body to be sent to local side;
    Local side access layer process data receiving module, the first structure body is received for accessing layer process in local side;
    Local side access layer process data processing module, for parsing what outgoing end nms process was sent according to the first structure body Data, data transfer to the corresponding function interface that parsing obtains is handled, the data encapsulation that receiver function interface returns For the second structure, the method for packing of first structure body and the second structure is identical;
    Local side access layer process data sending module, for second structure to be sent to local side nms process;
    Local side nms process data reception module, for receiving second structure, and parse second structure and obtain The data returned through function interface;
    Local side nms process communication closedown module, it is corresponding for after the completion of the communication with local side access layer process, closing itself Socket;
    Local side access layer process communication closedown module, it is corresponding for after the completion of the communication with local side nms process, closing itself Socket.
  7. 7. more concurrent access mechanisms of application layer webmaster as claimed in claim 6, it is characterised in that local side nms process and local side The socket for accessing layer process is UNIX domains byte Stream Socket.
  8. 8. more concurrent access mechanisms of application layer webmaster as claimed in claim 6, it is characterised in that
    The local side nms process data processing module, including:
    First variable-definition submodule, for local side nms process pre-define for represent webmaster type the first variable, For representing the second variable of action type, the ternary for representing resource type and for representing resource identification the 4th Variable,
    First data encapsulate submodule, in local side nms process the data that send will be needed to use first variable, the Two variables, ternary and four variable table are shown, will use first variable, the second variable, ternary and the 4th variable Data after expression are packaged into first structure body;
    The local side access layer process data processing module, including:
    Second variable-definition submodule, for pre-defining the first change for representing webmaster type in local side access layer process Amount, the second variable for representing action type, the ternary for representing resource type and for representing resource identification 4th variable,
    First analyzing sub-module, for being accessed in local side after layer process receives the first structure body, according to first knot Structure body parses the first variable, the second variable, ternary and the 4th variable,
    Submodule is transmitted, for first variable, the second variable, ternary and the 4th variable to be transmitted to corresponding function Interface is handled;
    Returned data receiving submodule, the data returned for receiver function interface;
    Second encapsulation submodule, for by the data that function interface returns according to the first variable, the second variable, ternary and the Four variable encapsulations are the second structure.
  9. 9. more concurrent access mechanisms of application layer webmaster as described in claim 6 to 8 is any, it is characterised in that also include:
    First sockets interface definition module, in local side access layer process definition socket communication interface;
    Second sockets interface definition module, for defining socket communication interface in local side nms process;
    Wherein, the socket communication interface include be used for initialize socket first interface, for send data second Interface, the 3rd interface for receiving data and the 4th interface for closing socket,
    After local side nms process obtains first socket, the first interface initialization described first of local side nms process is called Socket, local side access layer process after obtaining local side and accessing layer process socket, call local side to access the first of layer process and connect Mouth initializes the local side and accesses layer process socket,
    Local side nms process data transmission blocks are called the second interface of itself to send the first structure body to local side and accessed Layer process, local side nms process data reception module call the second structure described in the 3rd interface of itself,
    Local side access layer process data receiving module calls first structure body described in the 3rd interface of itself, and calls itself Second interface second structure is sent to local side nms process,
    Local side nms process communication closedown module and local side access layer process communication closedown module call the respective 4th to connect respectively Mouth closes the socket of itself.
  10. 10. more concurrent access mechanisms of application layer webmaster as claimed in claim 6, it is characterised in that the local side access layer enters Journey link block, including:
    Socket descriptor acquisition submodule, layer process socket descriptor is accessed for obtaining local side;
    Submodule is monitored, is retouched for monitoring the connection request of local side nms process, and by local side access layer process socket State and be added in descriptor set;
    Descriptor set status inquiry submodule, for the state of query specification symbol collection, judge that the state of descriptor set whether there is Change;
    Descriptor status inquiry submodule, if the state for descriptor set has change, the state of all descriptors is traveled through, The descriptor that the state of judging whether changes, otherwise, return to descriptor set state-query module;
    Descriptor judging submodule, for the descriptor to be changed if there is state, judge the description that state changes Whether symbol, which is equal to the local side, accesses layer process socket descriptor;
    Setting up submodule is communicated to connect, if being equal to the local side for the descriptor that state changes accesses layer process socket Word description accords with, then receives the local side nms process connection request, obtains the second socket to be communicated with local side nms process Word, the communication with local side nms process is established, the descriptor to be communicated with local side nms process is added in descriptor set, returned Descriptor set status inquiry submodule, otherwise, local side access layer process and enter the mistake for receiving the data that local side nms process is sent Journey.
CN201410835419.9A 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device Active CN104579766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410835419.9A CN104579766B (en) 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410835419.9A CN104579766B (en) 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device

Publications (2)

Publication Number Publication Date
CN104579766A CN104579766A (en) 2015-04-29
CN104579766B true CN104579766B (en) 2017-12-05

Family

ID=53095031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410835419.9A Active CN104579766B (en) 2014-12-23 2014-12-23 A kind of more application layer webmaster concurrent access methods and device

Country Status (1)

Country Link
CN (1) CN104579766B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311625B (en) * 2020-10-26 2022-05-20 珠海格力电器股份有限公司 Network management method and device, storage medium and electronic device
CN113626105B (en) * 2021-08-18 2023-10-27 赞同科技股份有限公司 SDK system of mobile terminal mixed mode and mobile device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917601B1 (en) * 2000-10-10 2011-03-29 Juniper Networks, Inc. Agent-based event-driven web server architecture
CN103117895A (en) * 2013-01-25 2013-05-22 哈尔滨工业大学 LXI instrument service monitoring method
CN103841148A (en) * 2012-11-23 2014-06-04 京信通信系统(中国)有限公司 Master-slave communication method and system adopting reliable and unreliable networks in monitoring program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917601B1 (en) * 2000-10-10 2011-03-29 Juniper Networks, Inc. Agent-based event-driven web server architecture
CN103841148A (en) * 2012-11-23 2014-06-04 京信通信系统(中国)有限公司 Master-slave communication method and system adopting reliable and unreliable networks in monitoring program
CN103117895A (en) * 2013-01-25 2013-05-22 哈尔滨工业大学 LXI instrument service monitoring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TCP/IP Socket I/O Multiplexing Using A Hybrid Polling Event System;Jianli Sun;《2009 29th IEEE Conference on Distributed Computing Systems Workshops》;20091231;第277-284页 *

Also Published As

Publication number Publication date
CN104579766A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
FI118751B (en) Extracting information from a traffic stream in a communication network
CN102790776B (en) Heartbeat connection normalizing processing method, terminal, server and communication system
CN102802139A (en) Gateway data adapting system and method of Internet of Things
EP3096563B1 (en) Method and system for realizing network access via wifi
US10015267B2 (en) Generic multichannel center for network applications and services
CN103490961A (en) Network equipment
CN103179133A (en) Communication method between client side and server based on entity class
CN106412861A (en) Short message distribution method and system
US20220327010A1 (en) Extensible communication framework and communication method supporting multiple communication protocols
CN104579766B (en) A kind of more application layer webmaster concurrent access methods and device
CN101997721B (en) A kind of telecommunication network management system, method and accordingly device
CN102685153B (en) Resource platform opens the method and resource platform of third party's service
CN109145249A (en) Data rendering method and device
CN101969454B (en) Method, system and mobile terminal for realizing data transmission between mobile terminal and computer
CN107483281A (en) A kind of statistical method based on software defined network, apparatus and system
CN101227412B (en) Apparatus and method for message conversion
CN105721346A (en) Application bandwidth configuring method and controller based on software defined network
CN115150207B (en) Industrial network equipment identification method and device, terminal equipment and storage medium
EP3121998B1 (en) Generic multichannel center for network applications and services
CN107707492A (en) A kind of method and device reported with downward message
CN101388802B (en) Apparatus for test number transmission ability between networks
CN113709015A (en) Data transmission method, electronic device and storage medium
CN102238080B (en) Method for bearing Internet protocol (IP) telecommunication network in superposition way by utilizing Ethernet
CN107508894A (en) A kind of mission bit stream processing system
CN206602536U (en) ISDN intercommunications are directly connected to device, the system of IP intercommunications broadcast

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201807 Shanghai City, north of the city of Jiading District Road No. 1355 building 4 layer D

Applicant after: Lingyun Tianbo Photoelectric Technology Co., Ltd.

Address before: 201807 Shanghai City, north of the city of Jiading District Road No. 1355 building 4 layer D

Applicant before: Shanghai Teraband Photonics Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant