Giter Site home page Giter Site logo

Comments (3)

cansik avatar cansik commented on July 25, 2024 1

It would be nice if you could test, if the stop method now works as expected.

Here is the new compiled binary if you need it:
artnet4j.zip

from artnet4j.

schw4rzlicht avatar schw4rzlicht commented on July 25, 2024 1

That did the trick.

Regarding the refactor: I might do this (at least for the sender part) because the current API unnecessarily bloats my project with a new thread. If I do it in the near future, I'd fork and create a pull request.

from artnet4j.

cansik avatar cansik commented on July 25, 2024

To the first question about the start and stopping, that is totally true. The problem is that the underlaying framework is still the "old" artnet4j code and needs a lot of refactoring. Yes the approach with closing the socket is a good idea and I will implement it in the next version (already fixed it now).

The second question is something that bothers me too. But for this I think I have to fully refactor the underlaying ArtNetServer class which is handling the networking. It is currently server and client which is not really useful. It would be better to create an ArtNetServer for receiving data and an ArtNetClient for sending data.

Currently the ArtNetClient is more a decorator / wrapper for the ArtNetServer which makes the API simpler. This would then be useful for both, the new ArtNetServer and ArtNetClient.

Because a lot of people are used to the old artnet4j API, I just added some fixes, but did not a complete refactoring of the framework. Maybe it would make sense to do so.

from artnet4j.

Related Issues (20)

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.