Disclosure of Invention
The application aims to provide a data communication method, a system, electronic equipment and a storage medium, which can improve the data transmission efficiency between application programs.
In order to solve the above technical problems, the present application provides a data communication method, which includes:
starting a router service in target FC node equipment, and creating a monitoring service by using the router service;
monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result;
If an operation request of a target application program is received, processing the operation request; the target application program runs on the target FC node equipment;
and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
if a login operation request of a target application program is received, determining a user to be logged in corresponding to the login operation request;
judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network;
if yes, rejecting the login operation request, and returning prompt information of login failure;
if not, allowing the login operation request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the user to be logged in is allowed to log in the target application program, setting the information logged in by the user to be logged in on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
if a theme release request of a target application program is received, determining a theme to be released corresponding to the theme release request;
judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network;
if yes, rejecting the topic release request, and returning prompt information of topic release failure;
if not, allowing the subject to issue a request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, setting the information issued by the to-be-issued subject on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
If a topic subscription request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription request;
judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network;
if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure;
if not, allowing the topic subscription request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, setting the information subscribed by the topic to be subscribed on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Optionally, if an operation request of the target application program is received, processing the operation request includes:
if a subject data release request of a target application program is received, determining a released subject corresponding to the subject data release request;
Judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application;
if yes, rejecting the topic data release request, and returning prompt information of topic data release failure;
if not, allowing the subject data to issue a request;
correspondingly, generating communication data according to the processing result of the operation request, and broadcasting the communication data to the other FC node devices according to the FC network topology structure by utilizing the router service, wherein the method comprises the following steps:
and if the processing result of the operation request is that the topic data release request is allowed, setting target topic data corresponding to the topic data release request as communication data, and broadcasting the communication data to other FC node devices subscribing the released topic according to the FC network topological structure.
Optionally, broadcasting the communication data to the other FC node devices according to the FC network topology by using the router service includes:
and broadcasting the communication data to the other FC node devices by using the router service in a character string mode according to the FC network topology structure.
Optionally, after starting the router service in the target FC node device, the method further includes:
starting the target application program, and registering a program ID and a session port of the target application program in the router service;
broadcasting the program ID and the session port of the target application program to the other FC node devices.
The application also provides a data communication system, which comprises:
the service creation module is used for starting a router service in the target FC node equipment and creating a monitoring service by using the router service;
the monitoring module is used for monitoring other FC node devices in the FC network through the monitoring service and establishing an FC network topology structure according to a monitoring result;
the request processing module is used for processing the operation request of the target application program if the operation request is received; the target application program runs on the target FC node equipment;
and the data communication module is used for generating communication data according to the processing result of the operation request and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topology structure.
The present application also provides a storage medium having stored thereon a computer program which, when executed, performs the steps of the data communication method described above.
The application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps executed by the data communication method when calling the computer program in the memory.
The application provides a data communication method, which comprises the following steps: starting a router service in target FC node equipment, and creating a monitoring service by using the router service; monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result; if an operation request of a target application program is received, processing the operation request; the target application program runs on the target FC node equipment; and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
The method and the device for monitoring the FC network topology structure start the router service in the target FC node device, establish the monitoring service by using the router service, and monitor other FC node devices in the FC network by using the monitoring service to obtain the FC network topology structure. After receiving an operation request of a target application program, generating communication data according to a processing result of the operation request, and broadcasting the communication data to other FC node devices by a router service according to the FC network topology structure. The application program data communication scheme based on the FC network realizes topology management of a communication architecture through router service and can improve data transmission efficiency between application programs. The application also provides a data communication system, an electronic device and a storage medium, which have the beneficial effects and are not described herein.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart of a data communication method according to an embodiment of the present application.
The specific steps may include:
s101: starting a router service in target FC node equipment, and creating a monitoring service by using the router service;
the method and the system can be applied to target FC node equipment in an FC network, wherein the FC network also comprises other node equipment, and application programs are run on the target FC node equipment and the other node equipment. The FC network is a new high-speed network which is parallel to the traditional TCP/IP network, and has own address allocation and network system. Referring to fig. 2, fig. 2 is a schematic diagram of a communication architecture based on an FC network provided in the embodiments of the present application, in fig. 2 dev_ A, DEV _ B, DEV _c is an FC node device in the FC network, and each node device is running a plurality of application programs APP, a routing service router, an operating system OS, and a driver FC driver, and each FC node device is connected to an FC switch through an FC port, where P1, P2, and P3 … … P13 represent the FC port. As shown in fig. 2, this embodiment proposes an architecture based on the FC (FC-AE-ASM protocol) network and communication between different APPs, to solve the problem that different APP developers want to exchange data with each other. By the scheme of the invention, the development period of an application developer can be obviously shortened. The configuration function in the architecture mainly completes the setting of key parameters of a protocol, such as the version of software, authors, node addresses in an FC network, port ids, published topic ids, subscribed topic ids, execution strategies corresponding to topics and the like. The service provided by the software corresponding to the architecture mainly comprises the following two aspects: (1) The router root service is provided, and the main function is to monitor the states (up/down, and error codes) of all hardware nodes of the FC network, monitor the states (up/down, subscribe/publish, and forward data) of the APP in the current device. (2) The client lib is provided, and the main function is to provide a set of standard API interfaces, and a user can communicate with other applications by using the API interfaces.
Before the step, a router service can be set in the self-starting script of each FC node device as the self-starting service, and after the router service in each FC node device is started, a corresponding monitoring service is created according to the configuration information of the config file.
S102: monitoring other FC node devices in the FC network through the monitoring service, and establishing an FC network topology structure according to a monitoring result;
in this embodiment, data monitoring and/or status monitoring may be performed on other FC node devices in the FC network by using a monitoring service, so as to complete discovery work of each node in the FC network, and implement establishment of an FC network topology structure.
Further, after the router service is started, the FC node device may start an application APP of the user, where the application APP registers an ID with the router and applies to create a session port session, and the router service in each device node broadcasts the ID of the application APP and session port session information to other device nodes in the FC network, thereby implementing sharing of APP information. Specifically, after the router service in the target FC node device is started, a target application program of the target FC node device may be started, a program ID and a session port of the target application program may be registered in the router service, and the program ID and the session port of the target application program may be broadcast to the other FC node devices. The above operation may also be performed by other FC node devices in the FC network, and the program ID and the session port of the application running on the FC node device may be broadcasted, so that the FC node devices in the FC network all have the program ID and the session port of the application of the FC node device.
S103: if an operation request of a target application program is received, processing the operation request;
the target application program runs on the target FC node device, and the operation request of the target application program may include any one or a combination of any of a Login operation (logic) request, a log-out operation (logo) request, a topic publication (Pub) request, a cancel topic publication (hensub) request, a topic subscription (Sub) request, a cancel topic subscription (un) request, a topic data publication (Send) request, and a topic data reception (Recv) request. The target FC node device may process the operation request of the target application according to information shared by all FC node devices in the FC network. The topic data publishing operation Send can only Send and publish topic data, and if no topic is published, the data cannot be sent. The topic data receiving operation Recv can only receive subscribed topic data, and topic data without subscription cannot be received.
S104: and generating communication data according to the processing result of the operation request, and broadcasting the communication data to other FC node devices by utilizing the router service according to the FC network topology structure.
After the operation request is processed, a corresponding processing result can be obtained, and camping communication data is generated based on the processing result. For example, after the login operation is allowed, the corresponding relationship between the login user name and the target application program can be used as communication data. According to the method and the device, the communication data can be broadcast to the other FC node devices according to the FC network topology structure, so that all the FC node devices in the FC network can store the processing results, and the application programs running on different FC power saving devices can share information. Specifically, the embodiment may broadcast the communication data to the other FC node devices according to the FC network topology by using the router service in a string form.
The embodiment starts a router service in the target FC node device, and creates a monitoring service by using the router service, wherein the target FC node device can monitor other FC node devices in the FC network by using the monitoring service to obtain an FC network topology structure. After receiving an operation request of a target application program, generating communication data according to a processing result of the operation request, and broadcasting the communication data to other FC node devices by a router service according to the FC network topology structure. The embodiment provides an application program data communication scheme based on an FC network, which realizes topology management of a communication architecture through router service and can improve data transmission efficiency between application programs.
Several schemes for processing the operation request of the target application program and synchronizing the processing result of the operation request are provided below:
(1) Login operation request
If a login operation request of a target application program is received, determining a user to be logged in corresponding to the login operation request; judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network; if yes, rejecting the login operation request, and returning prompt information of login failure; and if not, allowing the login operation request. By the method, the same user can be prevented from repeatedly logging in, and only users which are not logged in on the application programs running in all FC node devices of the FC network can log in on the target application program.
Further, if the processing result of the operation request is that the user to be logged in is refused to log in on the target application program, the communication data of the operation result may not be broadcasted. And if the processing result of the operation request is that the user to be logged in is allowed to log in the target application program, setting the information logged in by the user to be logged in on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 3, fig. 3 is a flowchart of a processing of a user login request provided by an embodiment of the present application, where in fig. 3, a recv_app_msg interface is used to receive a user login request sent by an application program, an fc_send_msg interface is used to transmit information to each node in an Fc network, and a recv_fc_msg interface is used to receive information transmitted by each node in the Fc network, and return represents a rejection request. The procedure for the application program to realize the login operation logic is as follows: after the router service receives the information message (such as a user name) corresponding to the user login request, local security check is performed to determine whether the same user exists, and if the router service checks that the user with the same name exists, the user login request of the application program returns failure. And if the router service does not check that the user with the same name exists, allowing the user to log in the request, adding information logged in by the user on the target application program to an application program Tree APP Tree, and broadcasting information logged in the application program by the user to FC equipment nodes marked in a config file.
(2) Logout operation request
If a logout operation request of a target application program is received, determining a user to be logged out corresponding to the logout operation request; judging whether the user to be logged out is logged in on an application program running in FC node equipment of the FC network; if not, rejecting the log-out operation request, and returning prompt information of log-out failure; and if yes, allowing the log-out operation request.
Further, if the processing result of the operation request is that the user to be logged out is refused to log out on the target application program, the communication data of the operation result may not be broadcasted. And if the processing result of the operation request is that the user to be logged out is allowed to log out on the target application program, setting the information logged out by the user to be logged out on the target application program as the communication data, and broadcasting the communication data to the other FC node devices according to the FC network topological structure by utilizing the router service.
Referring to fig. 4, fig. 4 is a flowchart of a user logout request processing provided in an embodiment of the present application, where an application implements logout operation logo, a router receives the message and performs local security check to check whether the user exists, if the user does not exist, return failure, and if the user exists, the router service deletes user related information from an APP Tree.
(3) Topic issue request
If a theme release request of a target application program is received, determining a theme to be released corresponding to the theme release request; judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network; if yes, rejecting the topic release request, and returning prompt information of topic release failure; and if not, allowing the subject to issue a request. By the method, repeated release of the same theme can be avoided, and only the theme which is not released on the application programs running in all FC node devices of the FC network can be released on the target application program.
Further, if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, setting information issued by the to-be-issued subject on the target application program as the communication data, and broadcasting the communication data to the other FC node devices according to the FC network topological structure by utilizing the router service.
Referring to fig. 5, fig. 5 is a flowchart of a process of a topic issuing request provided in an embodiment of the present application, where Add in fig. 5 represents adding a new topic into a topic Tree Pub Tree, an application implements a topic issuing operation Pub, a router receives the message and performs a local security check to check whether a topic identifier topic id of the topic issuing operation Pub exists, and if so, the topic issuing operation Pub fails; if the topic identification topic id does not exist, the topic issuing operation pub succeeds, and the router service broadcasts the topic identification topic id of the topic issuing operation pub to all FC device nodes configured by config.
(4) Canceling topic issue requests
If a theme canceling release request of a target application program is received, determining a theme to be canceled corresponding to the theme canceling release request; judging whether the theme to be canceled is already issued on an application program running in FC node equipment of the FC network; if not, rejecting the request for canceling the topic release, and returning prompt information of failure in canceling the topic release; and if yes, allowing the cancellation subject to issue a request.
Further, if the processing result of the operation request is that the to-be-cancelled theme is allowed to cancel release on the target application program, setting information that the to-be-released theme is cancelled from release on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 6, fig. 6 is a flowchart of a process of canceling a theme release request provided in an embodiment of the present application, where Del in fig. 6 indicates that a theme existing in a theme Tree Pub Tree is deleted, an application implements canceling the theme release operation unpub, and a router service receives the message and performs a local security check to check whether a theme id of the canceling theme release operation unpub exists, if so, it is determined that the canceling theme release operation unpub fails, if not, it is determined that the canceling theme release operation unpub succeeds, and the router service broadcasts the theme id of the canceling theme release operation unpub to all FC device nodes configured by config.
(5) Topic subscription request
If a topic subscription request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription request; judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network; if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure; and if not, allowing the topic to subscribe to the request. By the method, repeated subscription of the same theme can be avoided, and only the theme published on the application programs running in all FC node devices of the FC network can be subscribed on the target application program.
And if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, setting the information subscribed by the topic to be subscribed on the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 7, fig. 7 is a flowchart of a process of a topic subscription request provided in an embodiment of the present application, where add in fig. 7 represents adding a topic to be subscribed to a topic subscription Tree Sub Tree, an application APP implements a topic subscription operation Sub, a router service receives the message and performs a local security check, checks whether a topic representation topic id of the topic subscription operation Sub exists, records a topic of the topic subscription operation Sub if not exists, and if so, the topic subscription succeeds.
(6) Canceling topic subscription requests
If a topic subscription canceling request of a target application program is received, determining a topic to be subscribed corresponding to the topic subscription canceling request; judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network; if not, rejecting the request for canceling the topic subscription, and returning prompt information of failure in canceling the topic subscription; and if yes, allowing the topic subscription cancellation request.
And if the processing result of the operation request is that the topic to be unsubscribed is allowed to unsubscribe from the target application program, setting the information of unsubscribing from the topic to be unsubscribed from the target application program as the communication data, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Referring to fig. 8, fig. 8 is a flowchart of a process for canceling a topic subscription request provided in an embodiment of the present application, where un in fig. 8 indicates that a topic to be subscribed is deleted from a topic Tree Pub Tree, and Del indicates that a topic to be subscribed is deleted from a topic subscription Tree Sub Tree. The application program realizes the topic subscription canceling operation un-sub, the router service receives the message and performs local security check to check whether the topic identification topic id of the topic subscription canceling operation un-sub exists, if not, the topic subscription canceling operation un-sub is judged to fail, and if so, the topic subscription canceling operation un-sub is judged to be successful.
(7) Topic data issue request
If a subject data release request of a target application program is received, determining a released subject corresponding to the subject data release request; judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application; if yes, rejecting the topic data release request, and returning prompt information of topic data release failure; and if not, allowing the subject data to issue a request. By the method, repeated release of the same subject data can be avoided, and only the subject released on the application programs running in all FC node devices of the FC network can release corresponding subject data on the target application program.
And if the processing result of the operation request is that the topic data release request is allowed, setting target topic data corresponding to the topic data release request as communication data, and broadcasting the communication data to other FC node devices subscribing the released topic according to the FC network topological structure.
Referring to fig. 9, fig. 9 is a flowchart of a process of publishing a topic data request provided in an embodiment of the present application, where "checking" in fig. 9 indicates whether to query from a topic Tree Pub Tree whether to publish a corresponding topic, and further indicates whether to check from a topic subscription table appSubList of an application program whether to subscribe to the corresponding topic. The application program APP realizes a topic data issuing operation send, the router service receives the message and performs local security check to check whether a topic identification topic id of the topic exists, if not, the current topic data issuing operation send is judged to be failed, if so, the current topic data issuing operation send is judged to be successful, and the router sends data to corresponding equipment according to the appsublist of the topic tree pub.
(8) Topic data reception request
If a theme data receiving request of a target application program is received, determining a published theme corresponding to the theme data receiving request; judging whether the published subject has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application; if not, rejecting the theme data receiving request, and returning prompt information of failure of theme data receiving; and if yes, allowing the subject data to receive the request.
And if the processing result of the operation request is that the topic data receiving request is allowed, setting target topic data corresponding to the topic data receiving request as communication data, and broadcasting the communication data to other FC node devices subscribing the published topic according to the FC network topological structure.
Referring to fig. 10, fig. 10 is a flowchart of a process of receiving a theme data request provided by an embodiment of the present application, an application APP implements a theme data receiving operation rev, a router service receives the send message and performs a local security check to check whether a theme identifier topic id of the theme subscription tree exists, and if so, the theme identifier topic id is forwarded to a corresponding application APP.
The communication protocol used in the data communication process defines the commands and responses required by the system to communicate from the establishment of the topology to the access of the resources. To facilitate protocol expansion, a data frame is transmitted in the form of a string, which includes a header, commands, data, and a trailer. Referring to table 1, table 1 is a command and data definition table, in table 1, appname represents an application name, recvMailBoxid represents a receiving mailbox identifier, sendMailBoxid represents a sending mailbox identifier, pubTopicId identifier issues a theme identifier, elementNum represents the number of elements, and examples of data frames are as follows:
<<Login,appname,recvMailBoxId,SendMailBoxId,>>
<<send,appname,pubTopicId,elementNum,data_a,data_b,..,>>
Frame header: frame header to synchronize frame data, fixed format <.
A command: the specific function of the data frame is shown in table 1, and can be extended as required.
Data: the form "a, b,".
End of frame: > A method for producing a high-performance liquid crystal display device.
TABLE 1 Command and data definition Table
The embodiment provides a solution based on mutual communication between FC network applications, opens up communication barriers between application programs in equipment nodes of the FC network, and solves the problem that a single application in the FC (FC-AE-ASM protocol) network monopolizes an FC port and other applications cannot use the FC network. In the embodiment, compared with the shared memory, the client lib+router architecture is adopted to realize the synchronization between processes, so that the parallelism of development work is improved, the project period is effectively shortened, and the efficiency is high by thousands of times.
The data communication system provided in the embodiment of the application may include:
the service creation module is used for starting a router service in the target FC node equipment and creating a monitoring service by using the router service;
the monitoring module is used for monitoring other FC node devices in the FC network through the monitoring service and establishing an FC network topology structure according to a monitoring result;
the request processing module is used for processing the operation request of the target application program if the operation request is received; the target application program runs on the target FC node equipment;
And the data communication module is used for generating communication data according to the processing result of the operation request and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topology structure.
The embodiment starts a router service in the target FC node device, and creates a monitoring service by using the router service, wherein the target FC node device can monitor other FC node devices in the FC network by using the monitoring service to obtain an FC network topology structure. After receiving an operation request of a target application program, generating communication data according to a processing result of the operation request, and broadcasting the communication data to other FC node devices by a router service according to the FC network topology structure. The embodiment provides an application program data communication scheme based on an FC network, which realizes topology management of a communication architecture through router service and can improve data transmission efficiency between application programs.
Further, the request processing module includes:
a login operation request processing unit, configured to determine a user to be logged in corresponding to a login operation request if the login operation request of a target application program is received; the method is also used for judging whether the user to be logged in is logged in on an application program running in FC node equipment of the FC network; if yes, rejecting the login operation request, and returning prompt information of login failure; if not, allowing the login operation request;
Correspondingly, the data communication module comprises:
and the first communication unit is used for setting the information of the user to be logged in on the target application program as the communication data if the processing result of the operation request is that the user to be logged in is allowed to log in on the target application program, and broadcasting the communication data to the other FC node equipment by utilizing the router service according to the FC network topological structure.
Further, the request processing module includes:
the system comprises a theme release request processing unit, a theme release request processing unit and a theme release processing unit, wherein the theme release request processing unit is used for determining a theme to be released corresponding to a theme release request if the theme release request of a target application program is received; the method is also used for judging whether the theme to be issued is already issued on an application program running in FC node equipment of the FC network; if yes, rejecting the topic release request, and returning prompt information of topic release failure; if not, allowing the subject to issue a request;
correspondingly, the data communication module comprises:
and the second communication unit is used for setting the information of the to-be-issued subject issued on the target application program as the communication data if the processing result of the operation request is that the to-be-issued subject is allowed to be issued on the target application program, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Further, the request processing module includes:
the topic subscription request processing unit is used for determining a topic to be subscribed corresponding to a topic subscription request if the topic subscription request of a target application program is received; the method is also used for judging whether the topic to be subscribed is subscribed on an application program running in FC node equipment of the FC network; if yes, rejecting the topic subscription request, and returning prompt information of topic subscription failure; if not, allowing the topic subscription request;
correspondingly, the data communication module comprises:
and the third communication unit is used for setting the information subscribed by the topic to be subscribed on the target application program as the communication data if the processing result of the operation request is that the topic to be subscribed is allowed to be subscribed on the target application program, and broadcasting the communication data to the other FC node devices by utilizing the router service according to the FC network topological structure.
Further, the request processing module includes:
the system comprises a topic data release request processing unit, a topic data release request processing unit and a target application program, wherein the topic data release request processing unit is used for determining a released topic corresponding to a topic data release request if the topic data release request of the target application program is received; and further for determining whether the published subject matter has been published on an application running in an FC node device of the FC network and has been subscribed to by the target application; if yes, rejecting the topic data release request, and returning prompt information of topic data release failure; if not, allowing the subject data to issue a request;
Correspondingly, the data communication module comprises:
and the fourth communication unit is used for setting target topic data corresponding to the topic data release request as communication data if the processing result of the operation request is that the topic data release request is allowed, and broadcasting the communication data to other FC node devices subscribed to the released topic according to the FC network topological structure.
Further, the data communication module is configured to broadcast the communication data to the other FC node devices according to the FC network topology by using the router service in a string form.
Further, the method further comprises the following steps:
the information synchronization module is used for starting the target application program after starting the router service in the target FC node equipment, and registering the program ID and the session port of the target application program in the router service; and broadcasting the program ID and session port of the target application program to the other FC node devices.
Since the embodiments of the system portion and the embodiments of the method portion correspond to each other, the embodiments of the system portion refer to the description of the embodiments of the method portion, which is not repeated herein.
The present application also provides a storage medium having stored thereon a computer program which, when executed, performs the steps provided by the above embodiments. The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The application also provides an electronic device, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided in the foregoing embodiments when calling the computer program in the memory. Of course the electronic device may also include various network interfaces, power supplies, etc.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.