Home > Back-end >  How to implement one-on-one communication in instant messaging
How to implement one-on-one communication in instant messaging

Time:09-23

Network programming:

In the instant communication system developed on the c/s architecture model, how to implement the customer one-on-one communication?? Now my idea is that the server records the client's unique identifier, and the connection, corresponding to the client when the client send messages to the client B, the service side to find the client B corresponding connection (socket), send A message, I tried, I just described method, when the message is sent by the server to the client after B, the client will be dropped, hope leaders can give me A better solution

CodePudding user response:

You said right, is to do so as to the problem of drops, it's probably an bug,

CodePudding user response:

reference 1/f, Simple, Soft reply:
you right, is to do so as to the problem of drops, it's probably an bug,

You understand the boost an asio it can help me have a look at it I found a day yesterday, didn't find the reason is there

CodePudding user response:

Communication is one on one client, each client has an id, each client server. Mark, ACTS as a forward,

CodePudding user response:

You add me QQ3405187170, send code to me, I'm going to have time, you will have a look

CodePudding user response:

refer to 4th floor, Simple, Soft reply:
add me QQ3405187170, you send code to me, I'm going to have time, you will have a look at

Thanks to add request has been sent

CodePudding user response:

reference SDGHCHJ reply: 3/f
communication is one on one client, each client has an id, each client server. Mark, ACTS as a forward,

The client A direct drop what could be the cause
  • Related