This project is read-only.

Project still alive?

Dec 27, 2013 at 3:25 PM
Hi,
is this project still alive? I found some bugs in the bonjour implementation and would like to hear if i really found bugs or just missed a thing.

1.
The void publisher_QueryReceived(Message item) method in BonjourService.cs did just build a message but never send it, i changed it to:
void publisher_QueryReceived(Message item)
    {
        if (item.QueryResponse == Qr.Query)
        {
            foreach (Question q in item.Questions)
            {
                if (((string)q.DomainName).EndsWith(Protocol))
                {
                    //FillMessage(item, Ttl);
                    //Changed to
                    Renew(500);
                }
            }
        }
    }
which works for me.

2.
The private void MergeServices(IList<IService> updatedList) method in BonjourServiceResolver.cs did not call ServiceFound(service); for new added services:

foreach (var service in services)
        {
             // if (service.State == State.Updated) changed to
            if (service.State == State.Updated || service.State == State.Added)
            {
                if (ServiceFound != null)
                    ServiceFound(service);
                ((Service)service).State = State.UpToDate;
            }
        }
Now it seems to work for me.
Dec 29, 2013 at 10:07 AM
Edited Dec 29, 2013 at 10:07 AM
Hi,

It makes sense. I have updated the source code according to your sugestions.