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">&lt;<a href="mailto:robin.perkins@internode.on.net">robin.perkins@internode.on.net</a>&gt;</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>
&gt; Hi All,<br>
&gt;<br>
&gt; I have written a program to publish simple tcp service in avahi<br>
&gt; daeman.<br>
&gt; Here is the relevant code fragment.<br>
&gt;<br>
&gt; [code]<br>
&gt;     /*Add the services for IPP */<br>
&gt;<br>
&gt;     if((ret=avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC,<br>
&gt; AVAHI_PROTO_UNSPEC, 0, name, &quot;_ipp._tcp&quot;, NULL, NULL, 651,<br>
&gt; &quot;test=blah&quot;, r, NULL )) &lt; 0)<br>
&gt;     {<br>
&gt;       if(ret == AVAHI_ERR_COLLISION)<br>
&gt;         goto collision;<br>
&gt;<br>
&gt;       perror(&quot;Failed to add _ipp._tcp service: \n&quot;);<br>
&gt;       goto fail;<br>
&gt;     }<br>
&gt;<br>
&gt; [/code]<br>
&gt;<br>
&gt;<br>
&gt; Now I want to see this from pidgin or any chat client.<br>
&gt; Is this possible ? If it is how can I do that?<br>
&gt;<br>
&gt; Thanks.<br>
</div></div>&gt; _______________________________________________<br>
&gt; avahi mailing list<br>
&gt; <a href="mailto:avahi@lists.freedesktop.org">avahi@lists.freedesktop.org</a><br>
&gt; <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&#39;t be using _ipp._tcp. IPP is the &#39;Internet<br>
Printing Protocol&#39; 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&#39;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>