CN110290226A - A kind of general client and server-side mating interface protocol method - Google Patents
A kind of general client and server-side mating interface protocol method Download PDFInfo
- Publication number
- CN110290226A CN110290226A CN201910740737.XA CN201910740737A CN110290226A CN 110290226 A CN110290226 A CN 110290226A CN 201910740737 A CN201910740737 A CN 201910740737A CN 110290226 A CN110290226 A CN 110290226A
- Authority
- CN
- China
- Prior art keywords
- server
- client
- interface
- protocol method
- side mating
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- 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/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of general client and server-side mating interface protocol method, it is related to communicating interconnection technique field, comprising the following steps: step A: log in interface;Step B: interface IP address;Step C: required parameter;Step D: it returns the result;Step E: information processing.The creation port of client and server-side of the present invention connects more convenient simplicity, after the port numbers of server and client side are mutually matched successfully, it is connected with each other successfully, before server and client side matches connection, server blocks the interface channel of the client always, until client carries out matching connection by cipher protocol and server, and then occupied flow is smaller before connecting client with server and when connection, additionally by the interaction of client and server-side, it can be carried out read-write operation, recorded collection can carry out record storage to the byte of generation, in order to which the subsequent information in record set carries out respective handling.
Description
Technical field
The present invention relates to communication interconnection technique field, in particular to a kind of general client and server-side mating interface association
View method.
Background technique
Interface protocol refers to the communication mode for needing to need to defer between the interface for carrying out information exchange and requirement.Interface association
The type of view is very more.Interface protocol will not only provide the communication of physical layer, it is also necessary to the requirement of prescriptive grammar layer and semantic layer.
Mating interface agreement in the prior art for client and server-side is extremely complex, needs a series of intermediate phases
The help of artis gets to destination, and communication process is cumbersome, and server server before matching connection with client begins
Higher resource is occupied eventually, and generates a large amount of flow, and it is not square to there is connection setup between client and server-side when in use
Just the problem of.
Therefore, inventing a kind of general client and server-side mating interface protocol method, have very much must to solve the above problems
It wants.
Summary of the invention
(1) the technical issues of solving
In view of the deficiencies of the prior art, the present invention provides a kind of general clients and server-side mating interface agreement side
Method, solves that communication process between existing client and server-side is cumbersome and connection setup is inconvenient, and server produces before session
Problem more than raw flow.
(2) technical solution
In order to achieve the above object, the present invention is achieved by the following technical programs: a kind of general client and service
Hold mating interface protocol method, comprising the following steps:
A: logging in interface, inputs account ID and password, PC and APP creation, verification and storage password;
B: interface IP address, access interface ID are inquired, and interface connection, the port of server and client side are created after update
It number is mutually matched, successful connection;
C: required parameter, input inquiry condition is according to detection instruction logic and voluntarily assembled, reaches client through signal
What that one end of file server, client and file server obtained two objects respectively outputs and inputs flow object, passes through
Processing system continues interactive transmitting along node, and is written and read;
D: returning the result, query interface, the data in corresponding table is returned to, when the character read is not representing the end of message
When " # ", just reads always, if needjoinData contains numerical value, return to the record set of contingency table;
E: information processing saves byte by record set, can be to the information being stored in record set with regard to server
It performs corresponding processing.
Optionally, it in the step A, when PC and APP are created, verified and store password, needs to carry out MD5 Hash operation.
Optionally, in the step B, interface is connected by interface IP address query interface, more new interface and creation interface
It is created.
Optionally, in the step C, after having and outputting and inputting flow object, server and visitor are carried out with read-write operation
Communication between the end of family.
(3) beneficial effect
The present invention provides a kind of general clients and server-side mating interface protocol method, have following beneficial to effect
Fruit:
(1), the creation port of client and server-side of the present invention connects more convenient simplicity, server and client side's
After port numbers are mutually matched successfully, that is, it is connected with each other successfully, before server and client side matches connection, server is to the visitor
The interface channel at family end is blocked always, until client carries out matching connection by cipher protocol and server, and then is made
Occupied flow is smaller before client is connect with server and when connection, additionally by the interaction of client and server-side, energy
Be written and read, recorded collection can to the byte of generation carry out record storage, in order to the subsequent information in record set into
Row respective handling.
Specific embodiment
The technical scheme in the embodiments of the invention will be clearly and completely described below, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work belongs to the model that the present invention protects
It encloses.
The application provides a kind of general client and server-side mating interface protocol method, comprising the following steps:
A: logging in interface, inputs account ID and password, PC and APP creation, verification and storage password;
B: interface IP address, access interface ID are inquired, and interface connection, the port of server and client side are created after update
It number is mutually matched, successful connection;
C: required parameter, input inquiry condition is according to detection instruction logic and voluntarily assembled, reaches client through signal
What that one end of file server, client and file server obtained two objects respectively outputs and inputs flow object, passes through
Processing system continues interactive transmitting along node, and is written and read;
D: returning the result, query interface, the data in corresponding table is returned to, when the character read is not representing the end of message
When " # ", just reads always, if needjoinData contains numerical value, return to the record set of contingency table;
E: information processing saves byte by record set, can be to the information being stored in record set with regard to server
It performs corresponding processing.
As a kind of optional technical solution of the invention:
In the step A, when PC and APP are created, verified and store password, need to carry out MD5 Hash operation.
As a kind of optional technical solution of the invention:
In the step B, interface is connected with creation interface and is created by interface IP address query interface, more new interface
It builds.
As a kind of optional technical solution of the invention:
In the step C, after having and outputting and inputting flow object, carried out between server and client side with read-write operation
Communication.
In conclusion server-side creates an object first when client and server-side are docked by mating interface agreement,
Block other connections when listening to the agreement connection signal for receiving given client end ID, by the object and given client end ID into
Row binding, blocks always before client is attached by the object of input cipher protocol and creation, avoids excessively occupying
Server resource discharges server resource, and when client is matched by cipher protocol with server, server is opened,
It binds server and client to connect, what client and server obtained two objects respectively outputs and inputs stream, client
It is conversated, is handled information by server contrasting data library, and result can be returned with server by existing agreement
To client, when client is connect with server matches and before client connect with server, can reduce server and
The flow generated between server and client side.
The creation port of client and server-side of the present invention connects more convenient simplicity, in the port of server and client side
After number being mutually matched successfully, that is, it is connected with each other successfully, before server and client side matches connection, server is to the client
Interface channel blocked always, until client carries out matching connection by cipher protocol and server, and then make client
Occupied flow is smaller before end is connect with server and when connection, additionally by the interaction of client and server-side, can be carried out
Read-write operation, recorded collection can carry out record storage to the byte of generation, in order to which the subsequent information in record set carries out phase
It should handle.
It should be noted that in the present invention unless specifically defined or limited otherwise, fisrt feature is in second feature
It can be that the first and second features directly contact or the first and second features are by intermediary mediate contact "up" or "down".
Moreover, fisrt feature can be above the second feature " above ", " above " and " above " fisrt feature right above second feature or tiltedly
Top, or first feature horizontal height is merely representative of higher than second feature.Fisrt feature second feature " under ", " lower section " and
" following " can be fisrt feature and be directly under or diagonally below the second feature, or be merely representative of first feature horizontal height less than
Two features.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention,
Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features,
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.
Claims (4)
1. a kind of general client and server-side mating interface protocol method, which comprises the following steps:
A: logging in interface, inputs account ID and password, PC and APP creation, verification and storage password;
B: interface IP address, access interface ID are inquired, and interface connection, the port numbers phase of server and client side are created after update
Mutually matching, successful connection;
C: required parameter, input inquiry condition is according to detection instruction logic and voluntarily assembled, so that client is reached file through signal
What that one end of server, client and file server obtained two objects respectively outputs and inputs flow object, passes through processing
System continues interactive transmitting along node, and is written and read;
D: returning the result, query interface, the data in corresponding table is returned to, when the character read is not representing the " # " of the end of message
When, it just reads always, if needjoinData contains numerical value, returns to the record set of contingency table;
E: information processing saves byte by record set, can carry out to the information being stored in record set with regard to server
Corresponding processing.
2. the general client of one kind according to claim 1 and server-side mating interface protocol method, it is characterised in that:
In the step A, when PC and APP are created, verified and store password, need to carry out MD5 Hash operation.
3. the general client of one kind according to claim 1 and server-side mating interface protocol method, it is characterised in that:
In the step B, interface is connected with creation interface and is created by interface IP address query interface, more new interface.
4. the general client of one kind according to claim 1 and server-side mating interface protocol method, it is characterised in that:
In the step C, after having and outputting and inputting flow object, carried out with read-write operation logical between server and client side
Letter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910740737.XA CN110290226A (en) | 2019-08-12 | 2019-08-12 | A kind of general client and server-side mating interface protocol method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910740737.XA CN110290226A (en) | 2019-08-12 | 2019-08-12 | A kind of general client and server-side mating interface protocol method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110290226A true CN110290226A (en) | 2019-09-27 |
Family
ID=68025110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910740737.XA Pending CN110290226A (en) | 2019-08-12 | 2019-08-12 | A kind of general client and server-side mating interface protocol method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110290226A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769395A (en) * | 2019-10-30 | 2020-02-07 | 北京达佳互联信息技术有限公司 | Flow-free service synchronization method and device |
CN114567621A (en) * | 2022-04-29 | 2022-05-31 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035367A (en) * | 2007-01-05 | 2007-09-12 | 深圳清华大学研究院 | Method for the mobile communication back transfer interface to realize information source integrated access interaction |
CN103686225A (en) * | 2012-08-31 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Remote control method, client side and server side |
US20150207762A1 (en) * | 2014-01-17 | 2015-07-23 | Delta Networks, Inc. | Methods and devices for connecting to multiple interfaces |
CN106411907A (en) * | 2016-10-13 | 2017-02-15 | 广西咪付网络技术有限公司 | Data transmission method and system |
CN107147620A (en) * | 2017-04-19 | 2017-09-08 | 武汉票据交易中心有限公司 | A kind of interacting message processing method, client and service end |
CN109600381A (en) * | 2018-12-18 | 2019-04-09 | 浩云科技股份有限公司 | A kind of method for interface adaptation, apparatus and system |
-
2019
- 2019-08-12 CN CN201910740737.XA patent/CN110290226A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035367A (en) * | 2007-01-05 | 2007-09-12 | 深圳清华大学研究院 | Method for the mobile communication back transfer interface to realize information source integrated access interaction |
CN103686225A (en) * | 2012-08-31 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Remote control method, client side and server side |
US20150207762A1 (en) * | 2014-01-17 | 2015-07-23 | Delta Networks, Inc. | Methods and devices for connecting to multiple interfaces |
CN106411907A (en) * | 2016-10-13 | 2017-02-15 | 广西咪付网络技术有限公司 | Data transmission method and system |
CN107147620A (en) * | 2017-04-19 | 2017-09-08 | 武汉票据交易中心有限公司 | A kind of interacting message processing method, client and service end |
CN109600381A (en) * | 2018-12-18 | 2019-04-09 | 浩云科技股份有限公司 | A kind of method for interface adaptation, apparatus and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769395A (en) * | 2019-10-30 | 2020-02-07 | 北京达佳互联信息技术有限公司 | Flow-free service synchronization method and device |
CN110769395B (en) * | 2019-10-30 | 2022-07-22 | 北京达佳互联信息技术有限公司 | Traffic-free service synchronization method and device |
CN114567621A (en) * | 2022-04-29 | 2022-05-31 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
CN114567621B (en) * | 2022-04-29 | 2022-07-12 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200210423A1 (en) | Multi-party data joint query method, device, server and storage medium | |
CN105786998A (en) | Database middleware system and method for processing data through database middleware system | |
CN103559217A (en) | Heterogeneous database oriented massive multicast data storage implementation method | |
CN102664967A (en) | Method and system for interacting cross-platform personal information and background server | |
CN106982150A (en) | A kind of mobile Internet user behavior analysis method based on Hadoop | |
CN107133231B (en) | Data acquisition method and device | |
CN106776639A (en) | Data processing method and data processing equipment based on SQL | |
CN108509514A (en) | A kind of big data analysis method and system based on block chain | |
CN108108452A (en) | Finance data stores and inquiry system, finance data storage and querying method | |
CN110290226A (en) | A kind of general client and server-side mating interface protocol method | |
WO2015180650A1 (en) | Method and device for generating key value in storage area network | |
CN102571603B (en) | Ethernet port controlling apparatus and method thereof | |
CN109902070B (en) | WiFi log data-oriented analysis storage search method | |
CN114244556B (en) | Protocol proxy method and device | |
CN105184559B (en) | A kind of payment system and method | |
CN109819020A (en) | Third-party platform based on configurationization logs in interconnection method, storage medium | |
CN109582735A (en) | A kind of block chain blocks of knowledge storage system | |
CN107958345A (en) | A kind of SCD file collocation method and device based on database and file fragment | |
CN104601634A (en) | Wechat based lottery system | |
CN109507922B (en) | Port data acquisition method based on intelligent Internet of things | |
CN111628996A (en) | Electronic data communication method and system based on Internet of things | |
CN106776833A (en) | Data of information system exchange method and system of the client to client | |
CN109684817A (en) | A kind of user management method of multisystem | |
CN101286903A (en) | Method for enhancing integrity of sessions in network audit field | |
CN104574188A (en) | Transaction service system and transaction processing method |
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 |
Application publication date: 20190927 |
|
RJ01 | Rejection of invention patent application after publication |