Class TFTPRequestPacket

    • Method Detail

      • newDatagram

        public final java.net.DatagramPacket newDatagram()
        Creates a UDP datagram containing all the TFTP request packet data in the proper format. This is a method exposed to the programmer in case he wants to implement his own TFTP client instead of using the TFTPClient class. Under normal circumstances, you should not have a need to call this method.
        Specified by:
        newDatagram in class TFTPPacket
        Returns:
        A UDP datagram containing the TFTP request packet.
      • getMode

        public final int getMode()
        Returns the transfer mode of the request.
        Returns:
        The transfer mode of the request.
      • getFilename

        public final java.lang.String getFilename()
        Returns the requested filename.
        Returns:
        The requested filename.