Home > Back-end >  The client A/B, D data request server, takes C forwarding, the server responds by forwarding to the
The client A/B, D data request server, takes C forwarding, the server responds by forwarding to the

Time:09-22

Existing client A/B, D server, client and server data interaction through forward C, C oneself also can request data server, C receive the server's response, how to distinguish which one is the response to the client's response or respond to your request?

CodePudding user response:

Use port Numbers to distinguish?

CodePudding user response:


reference 1st floor u010165006 response:
use port Numbers to distinguish?

The server receives the request is a port

CodePudding user response:

refer to the original poster wangliuok response:
existing client A/B, D, server client and the server data interaction through forward C, C, oneself also can request data server, C receive the server's response, how to distinguish which one is the response to the client's response or respond to your request?


You of this problem is a typical SOCKET agent used, have special agency agreement,

CodePudding user response:

His definition of baotou agreement not to go, in data section with its own IP, to distinguish the client based on IP

CodePudding user response:

C forwarding servers to AB a handle, with the handle identification, with a handle to the real server, based on the returned handle and AB communication

CodePudding user response:

With IP, sending the IP, or in the stream data suggests a distributed anything ~ ~ ~
  • Related