Comments (8)
from flutter_nsd.
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.
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.
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.
@jnstahl macos support is already available but not yet released. It'd be great if you can contribute the Windows implementation.
from flutter_nsd.
@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.
Sounds good, thanks!
from flutter_nsd.
@jnstahl I created a dedicated issue for Windows support #15 . Closing this one.
from flutter_nsd.
Related Issues (20)
- Notify when service is lost HOT 5
- NetServiceBrowser is deprecated on iOS/MacOS
- Not getting any output from example app even though run shows servers HOT 3
- Windows: TXT records are returned as string instead of UInt8List, causing failure
- Windows: txt records are sent as [key: key] instead of [key: value] HOT 1
- Stream<NsdServiceInfo> doesn't add service If msdn server hass service txt is added HOT 5
- NsdServiceInfo Class should have IP HOT 3
- java.lang.IllegalArgumentException: listener not registered HOT 3
- Any plans for Linux support? HOT 1
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher HOT 4
- stopDiscovery() stops, but generates an error HOT 2
- missing permission for some Android versions HOT 2
- Error on executing command 'flutter build windows' HOT 2
- stopDiscovery Not working giving below exception HOT 4
- Windows build is failing
- startDiscoveryFailed every time HOT 1
- MacOS and iOS not returning any hostAddress HOT 1
- getting NsdErrorCode.startDiscoveryFailed when hot restart app
- Services are not discovered on Android HOT 2
- On Android, the IP address is returned in the hostname field of NsdServiceInfo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_nsd.