Java Reference
In-Depth Information
Figure 13-1. The TFTP protocol packet formats
Example 13-9. RemCat.java
public
public class
RemCat {
/** The UDP port number */
public
class RemCat
public final
int TFTP_PORT = 69 ;
/** The mode we will use - octet for everything. */
protected
final static
static int
protected final
final String MODE = "octet" ;
/** The offset for the code/response as a byte */
protected
protected final
int OFFSET_REQUEST = 1 ;
/** The offset for the packet number as a byte */
protected
final int
protected final
final int
int OFFSET_PACKETNUM = 3 ;
Search WWH ::




Custom Search