I wrote a simple TFTP client in Java, using org.apache.commons.net.tftp.TFTPClient
. As server for testing i use tftpd64 and while it's running, everything works fine. But when there isn't any server running, functions sendFile()
and receiveFile()
are returning.
I'm trying to catch SocketTimeoutExeption
, but functions don't throw anything. I've checked packets with Wireshark, and I can see a Write Request packet, but of course there is no response, since I don't have server running. How can i check, that there were no response?