org.jvnet.hudson.tftpd.impl
Class TFTPOAckPacket

java.lang.Object
  extended by org.jvnet.hudson.tftpd.impl.TFTPPacket
      extended by org.jvnet.hudson.tftpd.impl.TFTPOAckPacket

public class TFTPOAckPacket
extends TFTPPacket

Author:
Kohsuke Kawaguchi

Field Summary
 java.util.Map<java.lang.String,java.lang.String> options
           
 
Fields inherited from class org.jvnet.hudson.tftpd.impl.TFTPPacket
ACKNOWLEDGEMENT, DATA, ERROR, OACK, READ_REQUEST, SEGMENT_SIZE, WRITE_REQUEST
 
Constructor Summary
TFTPOAckPacket(java.net.InetAddress destination, int port)
           
 
Method Summary
 java.net.DatagramPacket newDatagram()
          Creates a UDP datagram containing all the TFTP packet data in the proper format.
 
Methods inherited from class org.jvnet.hudson.tftpd.impl.TFTPPacket
getAddress, getPort, getType, newTFTPPacket, setAddress, setPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

public final java.util.Map<java.lang.String,java.lang.String> options
Constructor Detail

TFTPOAckPacket

public TFTPOAckPacket(java.net.InetAddress destination,
                      int port)
Method Detail

newDatagram

public java.net.DatagramPacket newDatagram()
Description copied from class: TFTPPacket
Creates a UDP datagram containing all the TFTP packet data in the proper format. This is an abstract method, exposed to the programmer in case he wants to implement his own TFTP client instead of using the org.apache.commons.net.tftp.TFTPClient class. Under normal circumstances, you should not have a need to call this method.

Specified by:
newDatagram in class TFTPPacket
Returns:
A UDP datagram containing the TFTP packet.


Copyright © 2009. All Rights Reserved.