Code Monkey home page Code Monkey logo

arkane.zeroconf's People

Contributors

0xced avatar cerebrate avatar machinarius avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arkane.zeroconf's Issues

propogate exceptions to caller

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

Bonjour Error codes

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

hangs at dnssd.dll

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

Bonjour.RegisterService.Dispose hangs

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.

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.