Giter Club home page Giter Club logo

sstftp's People

Contributors

cguimaraes avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

sstftp's Issues

Timer issues

Exception in thread "main" java.lang.IllegalStateException: Timer already cancelled.
	at java.base/java.util.Timer.sched(Timer.java:398)
	at java.base/java.util.Timer.schedule(Timer.java:249)
	at pt.cguimaraes.sstftp.socket.TFTPSocket.send(TFTPSocket.java:127)
	at pt.cguimaraes.sstftp.client.TFTPClient.send(TFTPClient.java:104)
	at pt.cguimaraes.sstftp.client.TFTPClient.<init>(TFTPClient.java:95)
	at pt.cguimaraes.sstftp.client.Main.main(Main.java:206)

Retransmission not working

Messages are not being retransmitted upon timeout.

public void run() {
    Logger.getGlobal().info("RUN");
    if (i > retries) {
        ++i;
        try {
            socket.send(socketPacket);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

if (i > retries) shall be if (i < retries) instead.

Communication does not continue

Server accepts connection but does not continue communication.

Server:

$ java -jar sstftp-server/target/sstftp-server-0.2.jar -d ./example-files -p 55555
$ ^C

Client:

$ java -jar sstftp-client/target/sstftp-client-0.2.jar -a get -f f1024.txt -c localhost -p 55555
Aug 05, 2023 10:18:02 AM pt.cguimaraes.sstftp.client.TFTPClient <init>
INFO: Downloading f1024.txt from server in octet mode...
$ ^C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.