Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Port info is always zero after a service is published #52

Open
DeepakArora76 opened this issue Nov 28, 2018 · 0 comments
Open

Port info is always zero after a service is published #52

DeepakArora76 opened this issue Nov 28, 2018 · 0 comments

Comments

@DeepakArora76
Copy link

Just wondering why the port information is returned 0 when the publication of a service is successful?

Rx2Dnssd rxdnssd = new Rx2DnssdEmbedded(); 
BonjourService bs = new BonjourService.Builder(0, 0, Build.DEVICE, "_rxdnssd._tcp", null).port(123).build();
registerDisposable = rxDnssd.register(bs)
        .subscribeOn(Schedulers.io())
        .observeOn(AndroidSchedulers.mainThread())
        .subscribe(bonjourService -> {
            Log.i("TAG", "Register successfully " + bonjourService.toString());
        }, throwable -> {
            Log.e("TAG", "error", throwable);
        });
@DeepakArora76 DeepakArora76 changed the title Why the returned port info is always zero? Port info is always zero after a service is published Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant