On Tue, 10 Aug 2021, mid wrote:

 len = recvmsg(socket, &msg, 0);

 if(len <= 0) {
   return -1;
 }

Check msg.msg_flags here.  I think you will receive a hint.

--
Monty Brandenberg

Reply via email to