org.jvnet.hudson.tftpd
Class TFTPServer

java.lang.Object
  extended by org.jvnet.hudson.tftpd.TFTPServer
All Implemented Interfaces:
java.lang.Runnable

public class TFTPServer
extends java.lang.Object
implements java.lang.Runnable

TFTP server.

Author:
Kohsuke Kawaguchi

Constructor Summary
TFTPServer(PathResolver resolver)
           
 
Method Summary
 void close()
          Closes the daemon.
 void execute()
          Main loop of the TFTP server.
static void main(java.lang.String[] args)
          Debug main method.
 void run()
          Calls execute() but handles the IOException by itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFTPServer

public TFTPServer(PathResolver resolver)
Method Detail

run

public void run()
Calls execute() but handles the IOException by itself.

Specified by:
run in interface java.lang.Runnable

execute

public void execute()
             throws java.io.IOException
Main loop of the TFTP server.

Blocks until close() is invoked to initiate the shutdown.

Throws:
java.io.IOException

close

public void close()
Closes the daemon.


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Debug main method.

Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.