Home > Software engineering >  Good friends, have a C to write the TCP server, before the client is a PC or mobile phone client all
Good friends, have a C to write the TCP server, before the client is a PC or mobile phone client all

Time:09-16

Good friends, there is a c + + write a TCP server, before the client is a PC or mobile phone client all kinds of shaking hands to communicate via a TCP connection,
Server for the client a TCP connection, interactive data, instructions, etc., are each other in real time,
Now the client is a WEB, what good method can real-time interactive data to one another, the client can give the data to the server, the server can advocate push data to the WEB client?
thank you

CodePudding user response:

Look forward to an experienced friend to guide

CodePudding user response:

Can be added a layer of adapter service on the server, the TCP instruction interaction into HTTP communication, also is to give you the TCP background add a dedicated web front end, if interaction requires more flexible the front may consider using websocket,
  • Related