Message exchange method and system

A message interaction and message technology, applied in the field of communication, can solve the problems of inability to guarantee the security and reliability of message interaction data, lack of client-server real-time communication mechanism, etc.

Active Publication Date: 2016-02-17
SHANGHAI GANGFU E COMMERCE
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Especially in some large enterprises, the message interaction between internal personnel and external customers is very frequent, and the existing technology completes the data synchronization between client and server through timing job or request polling, so there is a lack of There is no real-time communication m

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message exchange method and system
  • Message exchange method and system
  • Message exchange method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and is not limited to the illustrated embodiments. Rather, these embodiments are provided for more thorough understanding of the present invention, and to fully convey the scope of the present invention to those skilled in the art.

[0019] see figure 1 As shown, the present invention provides a message interaction method, including:

[0020] Step S110: the message client sends a TCP protocol handshake request to the message server.

[0021] Step S120: The message server returns a handshake response to the message client to establish a long-term valid link.

[0022] In steps S110 and S120, the respective ports of the message client and the message server are set to be open, and when a physi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a message exchange method and a message exchange system. The message exchange method comprises the steps that: (1) a message client sends a TCP protocol handshake request to a message server; (2) the message server returns a handshake response to the message client to establish a long-term effective link; (3) the message client sends a user login request to the message server, wherein the login request message contains a token; (4) the message server receives the login request message and verifies the user; (5) and the message server saves connection state of the user when judging that the user is a legitimate user, and returns a user identifier ID of the user to the message client, so as to allow communication between the message client and the message server. The message exchange method and the message exchange system can ensure that the physical link is open for a long time when uses exchange messages, can guarantee that the users can perform real-time exchange, and provide a compensation mechanism when the physical link is unstable, so as to ensure that the transmitted messages are reliable and complete.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a message interaction method and system thereof. Background technique [0002] With the rapid development of Internet technology, people use the Internet in many occasions (such as companies, schools, families, outdoors, etc.) for file transfer, message broadcast, remote control, and message interaction. Especially in some large enterprises, the message interaction between internal personnel and external customers is very frequent, and the existing technology completes the data synchronization between client and server through timing job or request polling, so there is a lack of There is no real-time communication mechanism between client-server or server-server, and there is no guarantee that the data during message interaction can reach the destination safely and reliably. Furthermore, as the number of users continues to grow, the interaction between users poses ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/06H04L29/08H04L12/58
CPCH04L51/04H04L63/08H04L67/141
Inventor 仇恬
Owner SHANGHAI GANGFU E COMMERCE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products