Is there a way to determine if data was received in a TCP Java Socket

Do any of you know if there is a way to find out if data sent through the Java TCP Socket has been received?

TCP should store the last byte acked somewhere, but I don’t know if this information is available from Java Socket.

Thanks in advance.

+4
source share
1 answer

No, you cannot know what is in Java, and the ability to see the last acked tcp message would not help, since what you write to the socket can be sent in one or more messages / packets.

You need to implement the application protocol in which the receiver sends ack.

+2
source

All Articles