CN104967556A - Chat device based on social contact and communication method thereof - Google Patents
Chat device based on social contact and communication method thereof Download PDFInfo
- Publication number
- CN104967556A CN104967556A CN201510270849.5A CN201510270849A CN104967556A CN 104967556 A CN104967556 A CN 104967556A CN 201510270849 A CN201510270849 A CN 201510270849A CN 104967556 A CN104967556 A CN 104967556A
- Authority
- CN
- China
- Prior art keywords
- service module
- client
- sdk
- connector
- message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0407—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the identity of one or more communicating identities is hidden
- H04L63/0421—Anonymous communication, i.e. the party's identifiers are hidden from the other party or parties, e.g. using an anonymizer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Provided is a chat device based on social contact, comprising a terminal SDK which is in connection with an IM connector through an IM SDK client; the IM connector is accessed through http, and is in connection with a pulling data module; the pulling data module is in connection with an IM business service module through IM buffer; the IM business service module is in connection with an IM service module. A communication method comprises the steps of: 1) establishing a TCP/IP long link between a client and a server; the IM SDK client calling the IM service module; after corresponding business processing, the IM service module being sent to an IM SDK client pushing service module and an inner IM business service module for processing and meanwhile entering buffering; sending user information to a cloud server, and meanwhile bringing a receiving user ID; and 2) after the cloud server receives the information, pushing the information to the client receiving a user through the IM connector, and afterwards sending the information to the receiving user.
Description
Technical field
The invention belongs to communication technique field, be specifically related to a kind of chat device based on social activity and communication method thereof.
Background technology
Open source technology is adopted to solve the problem linked up between current teacher and the head of a family, the solution of current education social field product cannot meet the communication between teacher and the head of a family, teacher's pressure is large, the head of a family expects the morals of teacher, and a school is linked up becomes a social concern that must solve.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of chat device based on social activity and communication method thereof, have message one-to-many and issue, news release quality is high, the feature that network traffics are low.
To achieve these goals, the technical solution used in the present invention is: a kind of chat device based on social activity, comprises terminal SDK, and terminal SDK is by IM SDK client's side link IM connector; IM connector is connected with pulling data module by http access; Pulling data module is connected with IM business service module by IM buffer memory; IM business service module is connected with IM service module.
Based on a communication method for the chat device of social activity, comprise the following steps:
Step 1, client and service end are set up TCP/IP long-chain and are connect; IM SDK client call IM service module, after IM business service module carries out corresponding Business Processing, gives IMSDK client push service module and inner IM business service module processes, enters buffer memory simultaneously; Send user and send out message to cloud server, bring reception user ID simultaneously;
Step 2, after cloud server receives message, then gives the client receiving user by message push by IM connector, then given by message push and receive user.
The invention has the beneficial effects as follows:
Because the present invention is provided with IM business service module and IM service module, therefore can realize issuing operation, owing to being provided with pulling data module, can realize a little praising operation, information sifting can be carried out, check separately the information that teacher issues and the information that the head of a family issues, communication can also be carried out in chat hurdle;
Perfect point is praised and achievement motive system, makes teacher, more coordinates to go to carry out communication, be more beneficial to the growth of child between the head of a family.
1) use publish/subscribe massage pattern, the news release of one-to-many is provided, remove application program coupling;
2) to the transmission of messages of load contents shielding;
3) TCP/IP is used to provide network to connect;
4) have three kinds of news release service quality: " at the most once ", news release relies on bottom TCP/IP network completely; Information drop-out or repetition can be there is.This rank can be used for following situation, environmental sensor data, and it doesn't matter to lose a read record, sends because also have second time in the near future; " at least one times ", guarantee that message arrives, but message repeats to occur; " for once ", guarantee that message arrives once.This rank can be used for following situation, and in charge system, message repeats or loss can cause incorrect result.
5) small-sized transmission, expense very little (head of regular length is 2 bytes), agreement exchanges and minimizes, to reduce network traffics;
6) Last Will and Testament characteristic is used to circularize all the parties concerned the abnormal mechanism of interrupting of client.
Accompanying drawing explanation
Fig. 1 is structural principle block diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
See Fig. 1, a kind of chat device based on social activity, comprises terminal SDK, and terminal SDK is by IM SDK client's side link IM connector; IM connector is connected with pulling data module by http access; Pulling data module is connected with IM business service module by IM buffer memory; IM business service module is connected with IM service module.
Based on a communication method for the chat device of social activity, comprise the following steps:
Step 1, IM SDK client and service end are set up TCP/IP long-chain and are connect, IM SDK client call IM service module, after IM business service module carries out corresponding Business Processing, give IM SDK client push service module and inner IM business service module processes, enter buffer memory simultaneously; Send user and send out message to cloud server, bring reception user ID simultaneously;
Step 2, after cloud server receives message, then gives the client receiving user by message push by IM connector, then given by message push and receive user.
Embodiment 1
The example that the present embodiment party A-subscriber needs and party B-subscriber chats to link up
Based on a communication method for the chat device of social activity, comprise the following steps:
Step 1, first need A and B to set up long-chain and connect, IM SDK client and service end are set up TCP/IP long-chain and are connect; Party A-subscriber sends message and message header to cloud server;
Step 2, after cloud server receives message, first unpack and carry out the process of application layer http protocol, according to the agreement that client and service end are arranged, carry out the translation resolution of json form, add the distinctive business of product, comprise: sensitive word is replaced, expression is replaced, and chat box changes accordingly according to message, gives IM-MQTT protocol processor afterwards and processes; After the process of application layer http protocol completes, give IM-MQTT protocol processor and carry out protocol analysis, what adopt at present is that MQTT agreement processes, and message is entered buffer memory simultaneously, finds the message handle of party B-subscriber, this message is sent to this message handle; Party B-subscriber obtains corresponding message according to message handle.
Claims (2)
1. based on a chat device for social activity, it is characterized in that, comprise terminal SDK, terminal SDK is by IM SDK client's side link IM connector; IM connector is connected with pulling data module by http access; Pulling data module is connected with IM business service module by IM buffer memory; IM business service module is connected with IM service module.
2. based on a communication method for the chat device of social activity, it is characterized in that, comprise the following steps:
Step 1, client and service end are set up TCP/IP long-chain and are connect; IM SDK client call IM service module, after IM business service module carries out corresponding Business Processing, gives IMSDK client push service module and inner IM business service module processes, enters buffer memory simultaneously; Send user and send out message to cloud server, bring reception user ID simultaneously;
Step 2, after cloud server receives message, then gives the client receiving user by message push by IM connector, then given by message push and receive user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510270849.5A CN104967556A (en) | 2015-05-25 | 2015-05-25 | Chat device based on social contact and communication method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510270849.5A CN104967556A (en) | 2015-05-25 | 2015-05-25 | Chat device based on social contact and communication method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104967556A true CN104967556A (en) | 2015-10-07 |
Family
ID=54221504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510270849.5A Pending CN104967556A (en) | 2015-05-25 | 2015-05-25 | Chat device based on social contact and communication method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104967556A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107959615A (en) * | 2016-10-14 | 2018-04-24 | 腾讯科技(深圳)有限公司 | A kind of method of data transfer, user equipment and business device |
CN111131501A (en) * | 2019-12-31 | 2020-05-08 | 郑州信大捷安信息技术股份有限公司 | MQTT protocol-based message pushing system and method |
CN114500420A (en) * | 2021-12-24 | 2022-05-13 | 浙江融象数字科技有限公司 | Chat communication system integrating business processing |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102254098A (en) * | 2011-07-08 | 2011-11-23 | 盛趣信息技术(上海)有限公司 | Distributed system and method for developing, deploying and operating games |
CN102665116A (en) * | 2012-03-30 | 2012-09-12 | 广东白云学院 | Internet-based video-audio transmission system and video-audio stream distribution method thereof |
-
2015
- 2015-05-25 CN CN201510270849.5A patent/CN104967556A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102254098A (en) * | 2011-07-08 | 2011-11-23 | 盛趣信息技术(上海)有限公司 | Distributed system and method for developing, deploying and operating games |
CN102665116A (en) * | 2012-03-30 | 2012-09-12 | 广东白云学院 | Internet-based video-audio transmission system and video-audio stream distribution method thereof |
Non-Patent Citations (1)
Title |
---|
翟建伟: "基于WiFi的移动社交通讯平台设计与实现", 《硕士学位论文》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107959615A (en) * | 2016-10-14 | 2018-04-24 | 腾讯科技(深圳)有限公司 | A kind of method of data transfer, user equipment and business device |
CN107959615B (en) * | 2016-10-14 | 2021-04-27 | 腾讯科技(深圳)有限公司 | Data transmission method, user equipment and service equipment |
CN111131501A (en) * | 2019-12-31 | 2020-05-08 | 郑州信大捷安信息技术股份有限公司 | MQTT protocol-based message pushing system and method |
CN111131501B (en) * | 2019-12-31 | 2022-03-15 | 郑州信大捷安信息技术股份有限公司 | MQTT protocol-based message pushing system and method |
CN114500420A (en) * | 2021-12-24 | 2022-05-13 | 浙江融象数字科技有限公司 | Chat communication system integrating business processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11431847B2 (en) | Intermediary device for data message network routing and enhancement in a contact center environment | |
CN107018147B (en) | Internet of things communication method and system and gateway module | |
CN104836723B (en) | Communication method based on MQTT topic subscription mechanism and access gateway | |
CN108769017B (en) | Data communication method and device | |
CN103001860A (en) | Achieving system for converged communication Web instant messages | |
CA3051200C (en) | Intermediary device for data message network routing | |
CN103227788A (en) | Method and system realizing communication between web-based application and SIP equipment | |
CN103580986A (en) | Real-time communication method, terminal equipment, real-time communication server and system | |
CN104883292A (en) | Method and system for realizing message roaming at different terminals | |
CN106817341B (en) | A kind of Session Initiation Protocol throttling Transmission system and method towards mobile Internet | |
US20180124161A1 (en) | Method and apparatus for high performance low latency real time notification delivery | |
CN108683653A (en) | A kind of active message push system based on WebSocket | |
CN105119810A (en) | Instant communication method based on XMPP protocol and system thereof | |
US10038664B2 (en) | Terminal status subscription method, apparatus, and system | |
CN108156223A (en) | A kind of accurate supplying system of message based on websocket and method | |
CN104243281A (en) | Voice communication method based on mobile Internet | |
CN104967556A (en) | Chat device based on social contact and communication method thereof | |
CN103516788A (en) | Data pushing method and Flash client terminal and server thereof | |
WO2015089974A1 (en) | Method, device, and system for processing instant messaging | |
CN105306695A (en) | Communication method of mobile terminal and mobile terminal | |
CN109005250B (en) | Method and device for accessing server | |
CN108924773B (en) | Message processing method and device | |
CN105681382A (en) | Method, device and system for processing information through service platform under rich communication suit service | |
EP4216527A1 (en) | Apparatus, method and program for transmitting and receiving data to and from iot device | |
CN105338055A (en) | Information interaction method, server, and information interaction system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151007 |