org.apache.commons.net.tftp
public abstract class TFTPRequestPacket extends TFTPPacket
Details regarding the TFTP protocol and the format of TFTP packets can be found in RFC 783. But the point of these classes is to keep you from having to worry about the internals. Additionally, only very few people should have to care about any of the TFTPPacket classes or derived classes. Almost all users should only be concerned with the {@link org.apache.commons.net.tftp.TFTPClient} class {@link org.apache.commons.net.tftp.TFTPClient#receiveFile receiveFile()} and {@link org.apache.commons.net.tftp.TFTPClient#sendFile sendFile()} methods.
See Also: TFTPPacket TFTPReadRequestPacket TFTPWriteRequestPacket TFTPPacketException
Method Summary | |
---|---|
String | getFilename()
Returns the requested filename.
|
int | getMode()
Returns the transfer mode of the request.
|
DatagramPacket | newDatagram()
Creates a UDP datagram containing all the TFTP
request packet data in the proper format.
|
Returns: The requested filename.
Returns: The transfer mode of the request.
Returns: A UDP datagram containing the TFTP request packet.