Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for compatible protocol

A protocol and communication protocol technology, applied in the computer field, can solve the problems of high development cost and large workload of modifying middleware code.

Active Publication Date: 2014-02-26
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After the new version is released, the middleware program needs to be modified each time, that is, the package and analysis code for the new version of the communication protocol is added to the middleware. This frequent modification will cause too much work to modify the middleware code. , the development cost will be high

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
  • Method and device for compatible protocol
  • Method and device for compatible protocol
  • Method and device for compatible protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0029] Such as figure 1As shown, the communication between the client and the server in the prior art can be divided into the following stages: connection, handshake, authentication, return of authentication result, sending of SQL statement, and return of execution result. When the server sends a handshake message to the client, the handshake message includes the server’s capability flag information, indicating all the working char...

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 method and device for a compatible protocol. The method includes: a middleware receiving a handshake message which is sent by a server to a client; the middleware judging whether the version of a communication protocol adopted by the server is higher than the version of a communication protocol adopted by the middleware; if the version of the communication protocol adopted by the server is higher than the version of the communication protocol adopted by the middleware, then the middleware adjusting version information of the communication protocol adopted by the server in the handshake message so that the version of the communication protocol adopted by the server is identical with the version of the communication protocol adopted by the middleware; and the middleware sending the handshake message to the client so that the server is enabled to communicate with the client through adoption of the communication protocol of an adjusted version. The method and device for the compatible protocol solve a problem that parsing codes of the communication protocol of the middleware always change with the change of the communication protocol and realize that the middleware is compatible with the client and the server-side, which adopt a communication protocol of a new version, at an extremely low cost.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a protocol compatible method and device. Background technique [0002] All network applications need to develop a complete set of communication protocols for sending and receiving information between the client and server of the network application. Only when the client and server strictly abide by the communication protocol can they correctly organize the sent data packets and correctly analyze the received data packets. [0003] The MySQL server also has its own communication protocol, which is used to implement functions such as authentication, query, and result return. Because the middleware is located between the client and the MySQL server, compared to the client, the middleware plays the role of the MySQL server; compared to the MySQL server, the middleware plays the role of the client, so the middleware must implement the MySQL client at the same time. pro...

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/06
Inventor 朱超陈飞王超
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products