public abstract class TFTPRequestPacket extends TFTPPacket
TFTPReadRequestPacket and TFTPWriteRequestPacket classes.
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 TFTPClient class receiveFile() and sendFile() methods.
ACKNOWLEDGEMENT, DATA, ERROR, READ_REQUEST, SEGMENT_SIZE, WRITE_REQUEST| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
Returns the requested file name.
|
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.
|
getAddress, getPort, getType, newTFTPPacket, setAddress, setPort, toStringpublic final String getFilename()
public final int getMode()
public final DatagramPacket newDatagram()
TFTPClient class. Under normal circumstances, you should not have
a need to call this method.newDatagram in class TFTPPacketCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.