Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » [QUESTION] Zeroconf. How?
[QUESTION] Zeroconf. How? [message #593717] Wed, 11 January 2006 16:09 Go to next message
me is currently offline me
Messages: 20
Registered: July 2009
Junior Member
Hello,

I still have some problems to understand how to use the Zeroconf stuff.

Currently I am working with the collab example from CVS. If starting the
ecf collab server and afterwards the ecf example collab client 1, I am
able to open the dynamic service discovery view.

That view shows for example my local _workstation service etc..

But I am not able to figure out how one would announce his presence
(_ecftcp._tcp.local.) if he joins the ECF server running on localhost.

What should I do that if I initiate a chat, my presence is broadcastet
via Zeroconf to other people on the subnet.

For example if I use iChat on one of my Macs, iChat is announcing my
presence via '_presence._tcp'.

This leads to another questions/thought ...

Gaim for example announces itself using the '_presence._tcp' service
type. Because there will be a Yahoo provide and possible some other
providers, it would make sense to use this service type as well. That
way an iChat user for example would be able to communicate with an ECF
user.

--
Mit freundlichen Gruessen / With kind regards
DAn.I.El S. Haischt

Spammers, please please send any mail to:
Daniel S. Haischt <me_c@daniel.stefan.haischt.name>

Want a complete signature??? Type at a shell prompt:
$ > finger -l haischt@daniel.stefan.haischt.name
Re: [QUESTION] Zeroconf. How? [message #593730 is a reply to message #593717] Wed, 11 January 2006 16:17 Go to previous messageGo to next message
me is currently offline me
Messages: 20
Registered: July 2009
Junior Member
Tho - I should not comment on my own post before you had a chance to
answer - here are to observations I made ...

* You could use both, avahi and JmDNS at the same time
* I would say that you should just use '_ecftcp._tcp.' instead of
'_ecftcp._tcp.local' and let the user decide whether he wants to
assign his own domain. If not, you could always append local
anyway.

Daniel S. Haischt wrote:
> Hello,
>
> I still have some problems to understand how to use the Zeroconf stuff.
>
> Currently I am working with the collab example from CVS. If starting the
> ecf collab server and afterwards the ecf example collab client 1, I am
> able to open the dynamic service discovery view.
>
> That view shows for example my local _workstation service etc..
>
> But I am not able to figure out how one would announce his presence
> (_ecftcp._tcp.local.) if he joins the ECF server running on localhost.
>
> What should I do that if I initiate a chat, my presence is broadcastet
> via Zeroconf to other people on the subnet.
>
> For example if I use iChat on one of my Macs, iChat is announcing my
> presence via '_presence._tcp'.
>
> This leads to another questions/thought ...
>
> Gaim for example announces itself using the '_presence._tcp' service
> type. Because there will be a Yahoo provide and possible some other
> providers, it would make sense to use this service type as well. That
> way an iChat user for example would be able to communicate with an ECF
> user.
>
Re: [QUESTION] Zeroconf. How? [message #593744 is a reply to message #593717] Wed, 11 January 2006 23:44 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 966
Registered: July 2009
Senior Member
Hi Daniel,

Daniel S. Haischt wrote:
> Hello,
>
> I still have some problems to understand how to use the Zeroconf stuff.
>
> Currently I am working with the collab example from CVS. If starting the
> ecf collab server and afterwards the ecf example collab client 1, I am
> able to open the dynamic service discovery view.
>
> That view shows for example my local _workstation service etc..
>
> But I am not able to figure out how one would announce his presence
> (_ecftcp._tcp.local.) if he joins the ECF server running on localhost.

I think the reason you can't figure out one would announce his presence
via this service is that this server/service isn't a presence server.
It's a service that understands 'shared objects'...which can, if
desired, represent presence information, but the collab example plugin
(which uses this server), uses shared objects to represent a simple
Eclipse-based collaboration session (see EclipseCollabSharedObject in
org.eclipse.ecf.example.collab plugin). This shared object only lives
on the clients...in effect the server has no functionality at all other
than to provide message fan out for clients.

>
> What should I do that if I initiate a chat, my presence is broadcastet
> via Zeroconf to other people on the subnet.
>
> For example if I use iChat on one of my Macs, iChat is announcing my
> presence via '_presence._tcp'.

Yes...and clients that know how to communicate directly with iChat can,
when notified via the zeroconf discovery can do so.

This is just the way that zeroconf/bonjour discovery works...it's not
anything about the ECF/jmdns implementation.

>
> This leads to another questions/thought ...
>
> Gaim for example announces itself using the '_presence._tcp' service
> type. Because there will be a Yahoo provide and possible some other
> providers, it would make sense to use this service type as well. That
> way an iChat user for example would be able to communicate with an ECF
> user.

I didn't know that Gaim announced itself using that service type. Kind
of interesting. AFAIK, there's no standardization of the service names
(although some conventions for http, ssh, etc., etc), etc that are
published via zeroconf/bonjour...I believe the services themselves can
publish with whatever names they choose...but I would have to consult:
http://www.zeroconf.org/

Thanks,

Scott
Re: [QUESTION] Zeroconf. How? [message #593752 is a reply to message #593744] Wed, 11 January 2006 23:51 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 966
Registered: July 2009
Senior Member
Hi Daniel and all,

For reference, here are the service types published by some of Apple's
applications:

http://developer.apple.com/qa/qa2001/qa1312.html


Scott


Scott Lewis wrote:
> Hi Daniel,
>
> Daniel S. Haischt wrote:
>
>> Hello,
>>
>> I still have some problems to understand how to use the Zeroconf stuff.
>>
>> Currently I am working with the collab example from CVS. If starting the
>> ecf collab server and afterwards the ecf example collab client 1, I am
>> able to open the dynamic service discovery view.
>>
>> That view shows for example my local _workstation service etc..
>>
>> But I am not able to figure out how one would announce his presence
>> (_ecftcp._tcp.local.) if he joins the ECF server running on localhost.
>
>
> I think the reason you can't figure out one would announce his presence
> via this service is that this server/service isn't a presence server.
> It's a service that understands 'shared objects'...which can, if
> desired, represent presence information, but the collab example plugin
> (which uses this server), uses shared objects to represent a simple
> Eclipse-based collaboration session (see EclipseCollabSharedObject in
> org.eclipse.ecf.example.collab plugin). This shared object only lives
> on the clients...in effect the server has no functionality at all other
> than to provide message fan out for clients.
>
>>
>> What should I do that if I initiate a chat, my presence is broadcastet
>> via Zeroconf to other people on the subnet.
>>
>> For example if I use iChat on one of my Macs, iChat is announcing my
>> presence via '_presence._tcp'.
>
>
> Yes...and clients that know how to communicate directly with iChat can,
> when notified via the zeroconf discovery can do so.
>
> This is just the way that zeroconf/bonjour discovery works...it's not
> anything about the ECF/jmdns implementation.
>
>>
>> This leads to another questions/thought ...
>>
>> Gaim for example announces itself using the '_presence._tcp' service
>> type. Because there will be a Yahoo provide and possible some other
>> providers, it would make sense to use this service type as well. That
>> way an iChat user for example would be able to communicate with an ECF
>> user.
>
>
> I didn't know that Gaim announced itself using that service type. Kind
> of interesting. AFAIK, there's no standardization of the service names
> (although some conventions for http, ssh, etc., etc), etc that are
> published via zeroconf/bonjour...I believe the services themselves can
> publish with whatever names they choose...but I would have to consult:
> http://www.zeroconf.org/
>
> Thanks,
>
> Scott
>
>
Re: [QUESTION] Zeroconf. How? [message #593768 is a reply to message #593752] Thu, 12 January 2006 08:39 Go to previous messageGo to next message
me is currently offline me
Messages: 20
Registered: July 2009
Junior Member
This is a list with almost any DNS SRV Service Type:

-> http://www.dns-sd.org/ServiceTypes.html

Scott Lewis wrote:
> Hi Daniel and all,
>
> For reference, here are the service types published by some of Apple's
> applications:
>
> http://developer.apple.com/qa/qa2001/qa1312.html
>
>
> Scott
>
>
> Scott Lewis wrote:
>
>> Hi Daniel,
>>
>> Daniel S. Haischt wrote:
>>
>>> Hello,
>>>
>>> I still have some problems to understand how to use the Zeroconf stuff.
>>>
>>> Currently I am working with the collab example from CVS. If starting the
>>> ecf collab server and afterwards the ecf example collab client 1, I am
>>> able to open the dynamic service discovery view.
>>>
>>> That view shows for example my local _workstation service etc..
>>>
>>> But I am not able to figure out how one would announce his presence
>>> (_ecftcp._tcp.local.) if he joins the ECF server running on localhost.
>>
>>
>>
>> I think the reason you can't figure out one would announce his
>> presence via this service is that this server/service isn't a presence
>> server. It's a service that understands 'shared objects'...which can,
>> if desired, represent presence information, but the collab example
>> plugin (which uses this server), uses shared objects to represent a
>> simple Eclipse-based collaboration session (see
>> EclipseCollabSharedObject in org.eclipse.ecf.example.collab plugin).
>> This shared object only lives on the clients...in effect the server
>> has no functionality at all other than to provide message fan out for
>> clients.
>>
>>>
>>> What should I do that if I initiate a chat, my presence is broadcastet
>>> via Zeroconf to other people on the subnet.
>>>
>>> For example if I use iChat on one of my Macs, iChat is announcing my
>>> presence via '_presence._tcp'.
>>
>>
>>
>> Yes...and clients that know how to communicate directly with iChat
>> can, when notified via the zeroconf discovery can do so.
>>
>> This is just the way that zeroconf/bonjour discovery works...it's not
>> anything about the ECF/jmdns implementation.
>>
>>>
>>> This leads to another questions/thought ...
>>>
>>> Gaim for example announces itself using the '_presence._tcp' service
>>> type. Because there will be a Yahoo provide and possible some other
>>> providers, it would make sense to use this service type as well. That
>>> way an iChat user for example would be able to communicate with an ECF
>>> user.
>>
>>
>>
>> I didn't know that Gaim announced itself using that service type.
>> Kind of interesting. AFAIK, there's no standardization of the service
>> names (although some conventions for http, ssh, etc., etc), etc that
>> are published via zeroconf/bonjour...I believe the services themselves
>> can publish with whatever names they choose...but I would have to
>> consult: http://www.zeroconf.org/
>>
>> Thanks,
>>
>> Scott
>>
>>
Re: [QUESTION] Zeroconf. How? [message #593789 is a reply to message #593744] Thu, 12 January 2006 08:53 Go to previous message
me is currently offline me
Messages: 20
Registered: July 2009
Junior Member
Hello,

Scott Lewis wrote:
>
>
> I think the reason you can't figure out one would announce his presence
> via this service is that this server/service isn't a presence server.
> It's a service that understands 'shared objects'...which can, if
> desired, represent presence information, but the collab example plugin
> (which uses this server), uses shared objects to represent a simple
> Eclipse-based collaboration session (see EclipseCollabSharedObject in
> org.eclipse.ecf.example.collab plugin). This shared object only lives
> on the clients...in effect the server has no functionality at all other
> than to provide message fan out for clients.

Sorry if I am a bit slow. At the time I am not completly getting the
Zeroconf stuff. Here are some more questions ...

* Does the server use '_ecftcp._tcp.local.' to tell a client 'hello I
am here'? That way a client would get an 'extended' list of available
servers including those announced via Zeroconf.

* The client does not announce anything in contrast to iChat or Gaim
which are announcing ther presence (_presence._tcp), no?

--
Mit freundlichen Gruessen / With kind regards
DAn.I.El S. Haischt

Spammers, please please send any mail to:
Daniel S. Haischt <me_c@daniel.stefan.haischt.name>

Want a complete signature??? Type at a shell prompt:
$ > finger -l haischt@daniel.stefan.haischt.name
Previous Topic:[QUESTION] Pleas give me some
Next Topic:[QUESTION] Java SE 5/1.5
Goto Forum:
  


Current Time: Fri Jul 25 19:11:31 EDT 2014

Powered by FUDForum. Page generated in 0.02526 seconds