Reputation: 1107
My question might be silly and this is why there is no answer coming up when I am searching for it but here it goes.
Lets say I have the following block of code of my server-client application.
public void test(SSLSocket socket){
DataOutputStream dos = new DataOutputStream(new BufferedOutputStream((socket.getOutputStream())));
dos.writeInt(2);
dos.flush();
}
What happens if for network reasons the sent integer doesn't get to the server? Does the socket handle the resending of the packet itself resending the data automatically or it has to be handled manually using threads and timeouts?
Upvotes: 0
Views: 35
Reputation: 310913
Does
javax.net.ssl.SSLSocket
handle the ACKs automatically?
No, but TCP does.
Upvotes: 2