3 ms·
Same in Java. For both TCP and UDP, you build a socket and write to that. Actually, I don't know what happens if the DNS record expires during the connection.
by wjholden 4y ago
Same in Java. For both TCP and UDP, you build a socket and write to that.
Actually, I don't know what happens if the DNS record expires during the connection. I would presume nothing -- that the socket will stay open with the same (possibly now invalid) destination IP until closed.