小弟 刚用 java, 领导要求这周末要用java 实现 tftp 的服务器和 客户端功能。请各位 大虾救救小弟一把,不胜感激。
要在Eclipse 下能编译过的哈。要求附上所用的包,以及添加这个包的具体步骤

解决方案 »

  1.   

    什么意思,?
     你说的太抽象了 不是太明白,是要实现  FTP 服务器  跟客户端之前的通讯还是什么?
      

  2.   

    下载里面有API文档
    http://apache.etoak.com/commons/net/binaries/commons-net-1.4.1.zip这个写的很好
    http://www.vorlesungen.uos.de/informatik/networking-programming/notes/28Nov96/5.html
    TFTP Packets in Java
    TFTPpacket.java contains the data members of the class, methods to send/receive TFTP packets, and utility methods for the subclasses. 
    TFTPack.java is the most straight forward TFTP packet subclass. It handles ACK packets which have exactly one field. 
    TFTPerror.java describes TFTP error packets. 
    TFTPread.java describes TFTP read request packets. I think it is possible to combine this class with the write class but I did not bother. 
    TFTPwrite.java describes write requests. 
    TFTPdata.java describes the data packets. This class provides methods that will read and write the data directly to a file. http://www.vorlesungen.uos.de/informatik/networking-programming/notes/28Nov96/6.html
    A TFTP Client in Java
    http://www.vorlesungen.uos.de/informatik/networking-programming/notes/28Nov96/7.html
    Handling Timeouts
    The file udpReader.java contains code to implement reading in a separate thread. The file timeout.java contains a template for a main program. http://www.vorlesungen.uos.de/informatik/networking-programming/notes/28Nov96/8.html
    A Java TFTP Server
      

  3.   

    tftp  这是什么东西啊 没通过啊 
      

  4.   

    若各位有现成的编译好的 TFTP 服务器端的 JAVA 源代码,请发到小弟邮箱 [email protected]. 定当重谢。请记住是 TFTP 服务器端的 JAVA 源代码,不是FTP 的哈。 
      

  5.   

    我是楼主。若各位有现成的编译好的 TFTP 服务器端的 JAVA 源代码, 请发到小弟邮箱 [email protected]. 定当高分重谢。 请记住是 TFTP 服务器端的 JAVA 源代码,不是FTP 的哈。 
      

  6.   

    我是楼主。 若各位有现成的编译好的 TFTP 客户端和服务器端 的 JAVA 源代码, 请发到小弟邮箱 [email protected]. 定当高分重谢。 请记住是 TFTP 客户端和服务器端 的 JAVA 源代码,不是FTP 的哈。  客户端和服务器端的都要要哈。 谢谢各位大虾了
      

  7.   

    楼主搞定了没?我现在也需要这样的代码。能不能发一份给我?要求跟你的一模一样,tftp,客户端和服务器,java代码。谢谢楼主先!