CN110247842A - A kind of means of communication based on message subscribing mechanism - Google Patents

A kind of means of communication based on message subscribing mechanism Download PDF

Info

Publication number
CN110247842A
CN110247842A CN201910577635.0A CN201910577635A CN110247842A CN 110247842 A CN110247842 A CN 110247842A CN 201910577635 A CN201910577635 A CN 201910577635A CN 110247842 A CN110247842 A CN 110247842A
Authority
CN
China
Prior art keywords
message
module
subscribing
service
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910577635.0A
Other languages
Chinese (zh)
Inventor
张成蹊
明立会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu IoT Research and Development Center
Original Assignee
Jiangsu IoT Research and Development Center
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 Jiangsu IoT Research and Development Center filed Critical Jiangsu IoT Research and Development Center
Priority to CN201910577635.0A priority Critical patent/CN110247842A/en
Publication of CN110247842A publication Critical patent/CN110247842A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The present invention discloses a kind of means of communication and its system based on message subscribing mechanism, it is developed based on .net, new more easy-to-use communication mode is increased for the .net ecosystem, the communication between the service of serving is realized by message subscribing mechanism, includes the steps that query subscription, message push.A kind of means of communication based on message subscribing mechanism of the present invention can allow developer lighter and simply build the cluster communication application based on service by completely new communication development scheme.

Description

A kind of means of communication based on message subscribing mechanism
Technical field
The present invention relates to a kind of means of communication, and in particular to a kind of means of communication based on message subscribing mechanism belong to meter The calculation machine communications field.
Background technique
The hand-written Socket class that the data transmission between program uses in the prior art carries out transmission data, is usually used The mode of point-to-point, this method data are complicated, and are unable to control data integrity, and need to write if being broadcast to each point more Code.Also hardware and Internet resources not high, that occupy non-group member with completeness, reduce the efficiency of communication.
Summary of the invention
Defect based on the prior art, the purpose of first aspect present invention are to provide a kind of logical based on message subscribing mechanism Communication method is developed based on .net, is increased new more easy-to-use communication mode for the .net ecosystem, is passed through message subscribing machine System realizes the communication between the service of serving.Specific step is as follows:
(1) query subscription state:
Message communication system inquires the letter of the service of the block chain login message ordering system by the access interface of block chain Breath, judges whether it subscribes to message, if not subscribing to, is added in the background data base of the message communication system, if having ordered It reads, is then carried out by message pushing module, carry out message push.
Further, the message communication system further includes registration module, and the method for the registration module is based on block The register method of chain, it is described when the service of quasi- login message ordering system is not the registration user of the message communication system The information of the service of quasi- login message ordering system is sent to block chain node interface by registration module, and traverses entire block Chain, specifically: the information of the service of the quasi- login message ordering system received is subjected to Hash operation, according to obtained Hash Value one by one matches entire block chain since current block, according to degree of correlation order, if without identical registration information, It by registration, and broadcasts and notifies entire block chain, complete registration.
(2) message pushes:
The message pushing module will service the URL link of the ordered page, be pushed to the clothes of the login message ordering system Business, the service of the login message ordering system parse the URL link received, generate the user comprising message and subscribe to The page.
The purpose of second aspect of the present invention is to provide a kind of communication system based on message subscribing mechanism, including, message clothes Business device, message pushing module, message subscribing module, status information sending module, message reception module, message resolution module;
The message server is used to send the URL link of subscriptions page to the service of message subscribing system;The message push Module is used for examining subscription information, and to the service PUSH message subscribed to.
Message subscribing module, status information sending module, message reception module, message resolution module are arranged in message subscribing In the service of system, the message subscribing module is used to subscribe to message to system server;Status information sending module is used for State sends messages to message server when changing;Message reception module is for receiving the message from message server;Message Parsing module is for parsing the message from message server.
Further, the message server is equipped with message reception module, message resolution module, message transmission module, disappears Cease management module.The message reception module of the message server is for receiving the status message serviced in system or subscription Message;Message resolution module is for parsing message;Message transmission module is used to send its message subscribed to each system;Message pipe Reason module is used to manage message subscribing the message of person and subscription.
A kind of means of communication based on message subscribing mechanism of the present invention, can be with by completely new communication development scheme It makes developer lighter and simply builds the cluster communication application based on service.
Specific embodiment
Below by specific embodiment, further technical solution of the present invention is specifically described.It should be understood that below Embodiment be intended only as illustrating, and do not limit the scope of the invention, while those skilled in the art is according to the present invention The obvious change and modification made are also contained within the scope of the invention.
Embodiment 1
A kind of means of communication based on message subscribing mechanism, based on .net develop, for the .net ecosystem increase it is new more Easy-to-use communication mode realizes the communication between the service of serving by message subscribing mechanism.
Specific step is as follows:
(1) query subscription state:
Message communication system inquires the letter of the service of the block chain login message ordering system by the access interface of block chain Breath, judges whether it subscribes to message, if not subscribing to, is added in the background data base of the message communication system, if having ordered It reads, is then carried out by message pushing module, carry out message push.The message communication system further includes registration module, the note The method of volume module is the register method based on block chain, when the service of quasi- login message ordering system is not the message communication When the registration user of system, the information of the service of quasi- login message ordering system is sent to block chain node by the registration module Interface, and entire block chain is traversed, specifically: the information of the service of the quasi- login message ordering system received is subjected to Hash Operation one by one matches entire block chain according to degree of correlation order according to obtained cryptographic Hash since current block, If by registration, and broadcasting without identical registration information and notifying entire block chain, registration is completed.
(2) message pushes:
The message pushing module will service the URL link of the ordered page, be pushed to the clothes of the login message ordering system Business, the service of the login message ordering system parse the URL link received, generate the user comprising message and subscribe to The page.
Embodiment 2
A kind of communication system based on message subscribing mechanism, based on a kind of communication side based on message subscribing mechanism in embodiment 1 Method specifically includes, message server, message pushing module, message subscribing module, status information sending module, message sink mould Block, message resolution module.
The message server is used to send the URL link of subscriptions page to the service of message subscribing system;The message Pushing module is used for examining subscription information, and to the service PUSH message subscribed to.Message subscribing module, status information are sent Module, message reception module, message resolution module are arranged in the service of message subscribing system, and the message subscribing module is used for Message is subscribed to system server;Status information sending module is used to send messages to message server when state changes;Disappear Breath receiving module is for receiving the message from message server;Message resolution module is for parsing disappearing from message server Breath.The message server is equipped with message reception module, message resolution module, message transmission module, message managing module.Institute The message reception module for the message server stated is for receiving the status message serviced in system or subscribing to message;Message solution Analysis module is for parsing message;Message transmission module is used to send its message subscribed to each system;Message managing module is used for Manage the message of message subscribing person and subscription.

Claims (4)

1. a kind of means of communication based on message subscribing mechanism, which is characterized in that developed based on .net;
Specific step is as follows:
(1) query subscription state:
Message communication system inquires the letter of the service of the block chain login message ordering system by the access interface of block chain Breath, judges whether it subscribes to message, if not subscribing to, is added in the background data base of the message communication system, if having ordered It reads, is then carried out by message pushing module, carry out message push;
(2) message pushes:
The message pushing module will service the URL link of the ordered page, be pushed to the clothes of the login message ordering system Business, the service of the login message ordering system parse the URL link received, generate the user comprising message and subscribe to The page.
2. a kind of means of communication based on message subscribing mechanism according to claim 1, it is characterised in that: step (1) institute Stating message communication system further includes registration module, when the service of quasi- login message ordering system is not the message communication system When registering user, the information of the service of the quasi- login message ordering system is sent to block chain node and connect by the registration module Mouthful, and entire block chain is traversed, specifically: the information of the service of the quasi- login message ordering system received is breathed out Uncommon operation, according to obtained cryptographic Hash since current block, according to degree of correlation order one by one to the progress of entire block chain Match, if by registration, and broadcasting without identical registration information and notifying entire block chain, completes registration.
3. a kind of communication system based on message subscribing mechanism, it is characterised in that: the system is based on as claimed in claim 1 or 2 A kind of means of communication based on message subscribing mechanism;Including message server, message pushing module, message subscribing module, shape State information sending module, message reception module, message resolution module;
The message server is used to send the URL link of subscriptions page to the service of message subscribing system;The message push Module is used for examining subscription information, and to the service PUSH message subscribed to;
Message subscribing module, status information sending module, message reception module, message resolution module are arranged in message subscribing system Service in, the message subscribing module be used for system server subscribe to message;Status information sending module is used in state Message server is sent messages to when change;Message reception module is for receiving the message from message server;Message parsing Module is for parsing the message from message server.
4. a kind of communication system based on message subscribing mechanism according to claim 3, it is characterised in that: the message clothes Device be engaged in equipped with message reception module, message resolution module, message transmission module, message managing module;The message server Message reception module is for receiving the status message serviced in system or subscribing to message;Message resolution module disappears for parsing Breath;Message transmission module is used to send its message subscribed to each system;Message managing module for the person that manages message subscribing and The message of subscription.
CN201910577635.0A 2019-06-28 2019-06-28 A kind of means of communication based on message subscribing mechanism Pending CN110247842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577635.0A CN110247842A (en) 2019-06-28 2019-06-28 A kind of means of communication based on message subscribing mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910577635.0A CN110247842A (en) 2019-06-28 2019-06-28 A kind of means of communication based on message subscribing mechanism

Publications (1)

Publication Number Publication Date
CN110247842A true CN110247842A (en) 2019-09-17

Family

ID=67890312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910577635.0A Pending CN110247842A (en) 2019-06-28 2019-06-28 A kind of means of communication based on message subscribing mechanism

Country Status (1)

Country Link
CN (1) CN110247842A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650291A (en) * 2020-12-17 2022-06-21 中移(苏州)软件技术有限公司 Subscription information processing method and device, service node and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257336A (en) * 2017-06-15 2017-10-17 北京汇通金财信息科技有限公司 A kind of user authen method and system
US20170353320A1 (en) * 2016-02-26 2017-12-07 Apple Inc. Obtaining and using time information on a secure element (se)
CN108848119A (en) * 2018-04-03 2018-11-20 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain
CN108985784A (en) * 2018-02-11 2018-12-11 北京京东尚科信息技术有限公司 Method and apparatus for storing information
CN108985757A (en) * 2017-11-27 2018-12-11 北京京东金融科技控股有限公司 Information processing method, apparatus and system, storage medium, electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170353320A1 (en) * 2016-02-26 2017-12-07 Apple Inc. Obtaining and using time information on a secure element (se)
CN107257336A (en) * 2017-06-15 2017-10-17 北京汇通金财信息科技有限公司 A kind of user authen method and system
CN108985757A (en) * 2017-11-27 2018-12-11 北京京东金融科技控股有限公司 Information processing method, apparatus and system, storage medium, electronic equipment
CN108985784A (en) * 2018-02-11 2018-12-11 北京京东尚科信息技术有限公司 Method and apparatus for storing information
CN108848119A (en) * 2018-04-03 2018-11-20 阿里巴巴集团控股有限公司 The exchange method and device, system, electronic equipment of transregional piece of chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650291A (en) * 2020-12-17 2022-06-21 中移(苏州)软件技术有限公司 Subscription information processing method and device, service node and storage medium

Similar Documents

Publication Publication Date Title
US11272329B2 (en) Mobile messaging platform
CN101204104B (en) Providing of multimedia broadcast / multicast service of roam user
CN103139048B (en) Group's message prompt method and system
JP5144541B2 (en) Method and system for requesting a service guide or service guide fragment in a portable broadcast system
US20070130362A1 (en) Method and apparatus for facilitating management of multicast delivery to mobile devices
CN101317370B (en) Method and management agent for event notifications correlation
CN101981922B (en) Method and apparatus for software update of terminals in a mobile communication system
US20180103453A1 (en) Scheduling of Software Package Transmissions on a Multimedia Broadcast Multicast Service Channel
US20060221882A1 (en) File distribution method and apparatus in a mobile broadcast system
CN101073237B (en) Method for delivering multimedia files
US20090125773A1 (en) Apparatus and method for transmitting/receiving content in a mobile communication system
CN101310529A (en) Method and apparatus for delivering service guide contents source and notification event information in mobile broadcast system
CN1781282A (en) An ad-hoc network, a network device and a method of configuration management therefor
CN110247842A (en) A kind of means of communication based on message subscribing mechanism
JP2014053023A (en) Terminal unit for updating firmware in mobile body broadcast system
CN101313625A (en) Method and apparatus for subscribing purchasing object in mobile broadcast and multicast service
US9628968B2 (en) Driver notification
CN102265652A (en) Remote management method and system for wireless communication terminal
CN102090089A (en) Enhanced notification mechanism for broadcast networks using bit-map vectors
CN114358938A (en) Transaction, block broadcasting method, device and storage medium
CN105704703A (en) System, method and device for business ordering
CN101953137A (en) Providing a download service in communications system
CN114727239B (en) Video short message processing system
CN108076122B (en) Push method and server
CN101291470A (en) Method for establishing receiver population of short message advertisement

Legal Events

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

Application publication date: 20190917