Do you usually have to ask the mobile server to answer "I got it" after the success of the socket send on the mobile server?

I know that just because the socket send function returns successfully does not mean that the other party will receive it successfully. In general, we have to ask the other party to answer "copy" or not? Especially on the mobile end, the traffic on the mobile terminal is very tight. Do you want to make this reply? I"m a little confused right now. Do you usually deal with this situation on the mobile side?

Mar.16,2021

I think whether or not to "answer" at the application layer depends on your business.

give examples of two different scenarios.

    The
  1. page displays
    without answering. An error occurs when the client does not receive the complete data, and the user can refresh the page and try again.
  2. chat message
    requires an answer. According to the reply, the sender can know whether the message is sent "successful" or "failed", whether the other party is "read" or "unread" and so on.

if you use tcp, the other party must be able to receive it; and if you use udp (generally not udp, unless there is any special need), and want to be reliable, you must implement it at the application layer, as shown in kcp.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e35912-44364.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e35912-44364.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?