Java org.apache.commons.net.tftp TFTPDataPacket fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.tftp TFTPDataPacket fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.tftp TFTPDataPacket.

The text is from its open source code.

Field

intMAX_DATA_LENGTH
The maximum number of bytes in a TFTP data packet (512)

Constructor

TFTPDataPacket(InetAddress destination, int port, int blockNumber, byte[] data, int offset, int length)
Creates a data packet to be sent to a host at a given port with a given block number.

Method

intgetBlockNumber()
Returns the block number of the data packet.
byte[]getData()
Returns the byte array containing the packet data.
intgetDataLength()
Returns the length of the data part of the data packet.
intgetDataOffset()
Returns the offset into the byte array where the packet data actually starts.