Code Monkey home page Code Monkey logo

Comments (8)

Nimrodda avatar Nimrodda commented on June 12, 2024

from flutter_nsd.

sebastianhaberey avatar sebastianhaberey commented on June 12, 2024

Yes I feel you, I'm also pretty much going by project requirements. Still, I can't promise anything, but if I come up with something for the macOS side of things, I'll get back to you.

from flutter_nsd.

sebastianhaberey avatar sebastianhaberey commented on June 12, 2024

So here's a PR where I updated the project for macOS and then basically copied the iOS Swift code. The NSD API seems to be similar (equivalent?) on both platforms. I was able to detect my printer, so the basics seem to be working.

from flutter_nsd.

jnstahl avatar jnstahl commented on June 12, 2024

Hi,

I am using your plugin on android/ios (thank you very much) but I also need the windows / macos part. Can contribute to windows. I am pretty versed in flutter/android/windows but relatively new to these plugins.

from flutter_nsd.

Nimrodda avatar Nimrodda commented on June 12, 2024

@jnstahl macos support is already available but not yet released. It'd be great if you can contribute the Windows implementation.

from flutter_nsd.

jnstahl avatar jnstahl commented on June 12, 2024

@Nimrodda OK on it. I already got it working in principle (my own flutter app is now running on windows and can discover and connect to the server); some caveats:

  • for UWP apps there is an actual windows API, but for now I am doing the WIN32 implementation
  • in WIN32 there is no API for MDNS, so I had to resort to a public domain solution based on raw sockets
  • The platform documentation for the WIN32 plugins is fairly sparse, it took a bit of trial and error to make it work
  • The biggest issue right now is that the MDNS code is essentially blocking the main thread while it waits for a response which is not acceptable. the next step is to make it either multithreaded or non-blocking. That might be some heavy lifting. I keep you posted.

from flutter_nsd.

Nimrodda avatar Nimrodda commented on June 12, 2024

Sounds good, thanks!

from flutter_nsd.

Nimrodda avatar Nimrodda commented on June 12, 2024

@jnstahl I created a dedicated issue for Windows support #15 . Closing this one.

from flutter_nsd.

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.