You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by rw...@apache.org on 2008/02/24 22:46:10 UTC
svn commit: r630687 -
/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/tftp/TFTPServer.java
Author: rwinston
Date: Sun Feb 24 13:46:09 2008
New Revision: 630687
URL: http://svn.apache.org/viewvc?rev=630687&view=rev
Log:
Minor change
Modified:
commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/tftp/TFTPServer.java
Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/tftp/TFTPServer.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/tftp/TFTPServer.java?rev=630687&r1=630686&r2=630687&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/tftp/TFTPServer.java (original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/tftp/TFTPServer.java Sun Feb 24 13:46:09 2008
@@ -25,12 +25,13 @@
public class TFTPServer implements Runnable
{
+ private static final int DEFAULT_TFTP_PORT = 69;
// Modes for the server. These should be an enum, in java 1.5
public static final int GET_ONLY = 0;
public static final int PUT_ONLY = 1;
public static final int GET_AND_PUT = 2;
- private HashSet transfers_ = new HashSet();
+ private HashSet<TFTPTransfer> transfers_ = new HashSet<TFTPTransfer>();
private boolean shutdown_ = false;
private TFTP serverTftp_;
private File serverReadDirectory_;
@@ -86,7 +87,7 @@
public TFTPServer(File serverReadDirectory, File serverWriteDirectory, int mode)
throws IOException
{
- this(serverReadDirectory, serverWriteDirectory, 69, mode, null, null);
+ this(serverReadDirectory, serverWriteDirectory, DEFAULT_TFTP_PORT, mode, null, null);
}
/**