Thanks Robin. Actually I did know the protocol to use for chat is _presence._tcp.<br>Now I can see the presence of the service from pidgin. <br>Ok now I need to build a chat application on this. I went through the link You given. But I could not <br>
find the source that has the Bonjour chat protocol implemented. did you mean this? <a href="http://www.dns-sd.org/ClientSetup.html">http://www.dns-sd.org/ClientSetup.html</a> <br><br>Actually this is what I want to do now.<br>
<br> I have a P2P overlay network(<a href="http://wathsalav.blogspot.com/">Dcache</a> ) which is a distributed web cache based on IP
multicasting. Any computer in the network can join or leave this P2P network
at anytime. Now I want to
publish the presence of these nodes which are joining to P2P (This part is done. Now I can publish the presence of nodes and can see those in pidgin)<br>Then I want to give the chat facility to these nodes in P2P in pidgin. <br>
<br>1)How can I do the next part? If any sources please put here. <br><br>2)In order to do that do you tihnk It is neccessary to customise pidgin ? <br><br>Or can this be done with no changes to pidgin? <br><br>Thanks <br>
<br>Nuwan Gunarathna<br><br><br><div class="gmail_quote">On Mon, Jun 15, 2009 at 12:49 PM, Robin Perkins <span dir="ltr"><<a href="mailto:robin.perkins@internode.on.net">robin.perkins@internode.on.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On 15/06/2009, at 3:58 PM, evanescent wrote:<br>
<br>
> Hi All,<br>
><br>
> I have written a program to publish simple tcp service in avahi<br>
> daeman.<br>
> Here is the relevant code fragment.<br>
><br>
> [code]<br>
> /*Add the services for IPP */<br>
><br>
> if((ret=avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC,<br>
> AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651,<br>
> "test=blah", r, NULL )) < 0)<br>
> {<br>
> if(ret == AVAHI_ERR_COLLISION)<br>
> goto collision;<br>
><br>
> perror("Failed to add _ipp._tcp service: \n");<br>
> goto fail;<br>
> }<br>
><br>
> [/code]<br>
><br>
><br>
> Now I want to see this from pidgin or any chat client.<br>
> Is this possible ? If it is how can I do that?<br>
><br>
> Thanks.<br>
</div></div>> _______________________________________________<br>
> avahi mailing list<br>
> <a href="mailto:avahi@lists.freedesktop.org">avahi@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/avahi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/avahi</a><br>
<br>
First of all I wouldn't be using _ipp._tcp. IPP is the 'Internet<br>
Printing Protocol' according to <a href="http://www.dns-sd.org/" target="_blank">http://www.dns-sd.org/</a><br>
ServiceTypes.html. For Bonjour (Zeroconf) chat you are best off using<br>
_presence._tcp (see above link for way more info than you need).<br>
<br>
So basically if you do what you have above and then open up pidgin<br>
with a Bonjour account type you should be able to see your<br>
registration appear (of course you won't be able to chat until you<br>
implement that part of the Bonjour chat protocol - which you can find<br>
from the references in the above link).<br>
<br>
Robin Perkins<br>
<a href="mailto:robin.perkins@internode.on.net">robin.perkins@internode.on.net</a><br>
<br>
<br>
<br>
_______________________________________________<br>
avahi mailing list<br>
<a href="mailto:avahi@lists.freedesktop.org">avahi@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/avahi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/avahi</a><br>
</blockquote></div><br>