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 TFTPClient class receiveFile() and sendFile() methods.
TFTPPacket
,
TFTPReadRequestPacket
,
TFTPWriteRequestPacket
,
TFTPPacketException
,
TFTP
ACKNOWLEDGEMENT, DATA, ERROR, READ_REQUEST, SEGMENT_SIZE, WRITE_REQUEST
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilename()
Returns the requested filename.
|
int |
getMode()
Returns the transfer mode of the request.
|
java.net.DatagramPacket |
newDatagram()
This is a method exposed to the programmer in case he
wants to implement his own TFTP client instead of using
the TFTPClient
class.
|
getAddress, getPort, getType, newTFTPPacket, setAddress, setPort
public final java.net.DatagramPacket newDatagram()
newDatagram
in class TFTPPacket
public final int getMode()
public final java.lang.String getFilename()
Copyright © 1997-2002 Daniel F. Savarese. All Rights Reserved.