|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
discover services in pidginHi All,
I have written a program to publish simple tcp service in avahi daeman. Here is the relevant code fragment. [code] /*Add the services for IPP */ if((ret=avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL )) < 0) { if(ret == AVAHI_ERR_COLLISION) goto collision; perror("Failed to add _ipp._tcp service: \n"); goto fail; } [/code] Now I want to see this from pidgin or any chat client. Is this possible ? If it is how can I do that? Thanks. _______________________________________________ avahi mailing list avahi@... http://lists.freedesktop.org/mailman/listinfo/avahi |
|
|
Re: discover services in pidginOn 15/06/2009, at 3:58 PM, evanescent wrote:
> Hi All, > > I have written a program to publish simple tcp service in avahi > daeman. > Here is the relevant code fragment. > > [code] > /*Add the services for IPP */ > > if((ret=avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, > AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, > "test=blah", r, NULL )) < 0) > { > if(ret == AVAHI_ERR_COLLISION) > goto collision; > > perror("Failed to add _ipp._tcp service: \n"); > goto fail; > } > > [/code] > > > Now I want to see this from pidgin or any chat client. > Is this possible ? If it is how can I do that? > > Thanks. > _______________________________________________ > avahi mailing list > avahi@... > http://lists.freedesktop.org/mailman/listinfo/avahi First of all I wouldn't be using _ipp._tcp. IPP is the 'Internet Printing Protocol' according to http://www.dns-sd.org/ ServiceTypes.html. For Bonjour (Zeroconf) chat you are best off using _presence._tcp (see above link for way more info than you need). So basically if you do what you have above and then open up pidgin with a Bonjour account type you should be able to see your registration appear (of course you won't be able to chat until you implement that part of the Bonjour chat protocol - which you can find from the references in the above link). Robin Perkins robin.perkins@... _______________________________________________ avahi mailing list avahi@... http://lists.freedesktop.org/mailman/listinfo/avahi |
|
|
Re: discover services in pidginThanks Robin. Actually I did know the protocol to use for chat is _presence._tcp.
Now I can see the presence of the service from pidgin. Ok now I need to build a chat application on this. I went through the link You given. But I could not find the source that has the Bonjour chat protocol implemented. did you mean this? http://www.dns-sd.org/ClientSetup.html Actually this is what I want to do now. I have a P2P overlay network(Dcache ) 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) Then I want to give the chat facility to these nodes in P2P in pidgin. 1)How can I do the next part? If any sources please put here. 2)In order to do that do you tihnk It is neccessary to customise pidgin ? Or can this be done with no changes to pidgin? Thanks Nuwan Gunarathna On Mon, Jun 15, 2009 at 12:49 PM, Robin Perkins <robin.perkins@...> wrote:
_______________________________________________ avahi mailing list avahi@... http://lists.freedesktop.org/mailman/listinfo/avahi |
| Free embeddable forum powered by Nabble | Forum Help |