How to get an acknowledgement for the client socket from server?

前端 未结 1 1417
别那么骄傲
别那么骄傲 2021-01-07 13:23

I have a client socket which sends messages to the server.I want to get an acknowledgement on the client side whenever the server receives the message. Is it possible to get

相关标签:
1条回答
  • 2021-01-07 14:10

    There are no messages in TCP, only a byte stream. There is an internal ACK mechanism that tracks how much of the stream has been correctly received, but it is not available to applications. If you want an acknowledgment from the server, your server will have to send it.

    0 讨论(0)
提交回复
热议问题