arkane-systems / arkane.zeroconf Goto Github PK
View Code? Open in Web Editor NEWA Zero Configuration Networking library for .NET.
License: Other
A Zero Configuration Networking library for .NET.
License: Other
I noticed occasionally call to ServiceBrowser.Browse would result in exception being silently thrown, which i only noticed on the debugger in Visual Studio:
Exception thrown: 'ArkaneSystems.Arkane.Zeroconf.Providers.Bonjour.ServiceErrorException' in Arkane.Zeroconf.dll
Exception is being silently dropped in Providers/Bonjour/ServiceBrowser.cs Start(async = true) method.
Because of this.task = Task.Run (() => this.ProcessStart ()).ContinueWith (_ => this.task = null) ;
Task.Run just drops any exceptions thrown by ProcessStart().
Could you please provide a public API that is friendly with async/await that exposes Task as a return value so caller can decide how best to handle exceptions on async calls.
Or at a minimum provide an option to use Synchronous Browse and let caller handle async routing on their own
Hi,
Some new error codes are added to Bonjour service :
you can add them to SerivceError.cs
BadSig = -65560,
BadKey = -65561,
Transient = -65562,
ServiceNotRunning = -65563, /* Background daemon not running * /
NatPortMappingUnsupported = -65564, /* NAT doesn't support PCP, NAT-PMP or UPnP * /
NatPortMappingDisabled = -65565, /* NAT supports PCP, NAT-PMP or UPnP, but it's disabled by the administrator * /
NoRouter = -65566, /* No router currently configured (probably no network connectivity) * /
PollingMode = -65567,
Timeout = -65568
Hi,
Thank you for your version of Mono.Zeroconf. Currently i'm using it in an Unity project. But I have an weird bug that is caused by dnssd.dll. On one computer it works fine, but on the other ones it crashes when exploring dns for devices.
dnssd.dll caused an Access Violation (0xc0000005) in module dnssd.dll at 0033:396a2895.
I'm using bonjour 3 on all devices
I was trying to register and then deregister a service, but on de-register the method Dispose hangs and never comes back.
Is there a solution for it?
Analysis:
Problem is, that this.sdRef.Process (); in method ProcessRegister() is blocking, therefore the this.task will never finish. In Dispose this.task?.Wait (); is called which will block the application.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.