Home > Software engineering >  The Socket connect problem
The Socket connect problem

Time:10-03

Encountered a problem now, there are two different versions of the client, using connect to connect to the service, but a different client connection after return different string,
Could you tell me how to judge the connect up the client server is which version of the client?

CodePudding user response:

In the application layer protocol and protocol version

CodePudding user response:

reference 1st floor sevancheng response:
in the application layer protocol and protocol version content

A corresponding learning under the article

CodePudding user response:

This requires what articles, is the communication agreement good command and data representation format

CodePudding user response:

Socket send Data the main points of the Head and Data
Can be carried in the Head version information
Server according to the version of the Head can be respectively handled

CodePudding user response:

There are good ways to deal with, the building or the situation described in detail, according to the different scenarios using reasonable means of simple is the best

CodePudding user response:

After the connection to the client sends data contains information about the client version,

CodePudding user response:

The socket communication, TCP or UDP provide only basic ability of communication. It is the transport layer.
Exactly how the application layer protocol, to you.
After the success, such as links to provide the client to the server report their version number, the server does not know the version number.

CodePudding user response:

The client send it with the IP is not to go

CodePudding user response:

Even a hair a bunch of version information in the past

CodePudding user response:

After the telephone connected, going to listen to each other "hello" with a good sure as ye milk parents brothers and sisters in dogs and cats,

CodePudding user response:

When the client login system will need to send their own version to the server, and the server version before we decide to return to the first client data formats,
  • Related