[ANN] Discovery 0.1 - a Bonjour-like service finder in pure Squeak

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Discovery 0.1 - a Bonjour-like service finder in pure Squeak

Masashi UMEZAWA-2
Hi,

I've implemented a Bonjour(Rendezvous)-like thing in Squeak.
You can publish network services in a few steps, and clients will know
the services automatically.

http://map.squeak.org/account/package/6a54b2cc-ea9b-4622-a0cb-fd7222c22892

Features:
- Uses simple tab and CR separated text format to describe services.
- Uses lightweight UDP multicast/broadcast protocol.
- Supports publish, search, and notification of services.
- Provides adapter for publishing existing KomServices.

Examples:

"Publishing (in server)"
pub := DsPublisher defaultForMulticast
                registerServiceNamed: 'SuperSwikiService1'
                host: 'someServer'
                port: 8080
                maxAge: 5.
pub start.

"Notification - passively receive the existence of services (in client)"
DsLocator default when: #ServiceAdded send: #serviceAdded: to:
yourServiceObserver.

"Searching - actively search services (in client)"
DsSearcher default searchAll.

The framework can be used for dynamic discoveries of some cool
services (Magma, NetMorph, etc). Clients no longer need some 'server
location' files.

Enjoy!
--
[:masashi | ^umezawa]
_______________________________________________
Announcements and News from the Squeak Community
Squeak: http://squeak.org/
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/announcements