[ANN] Discovery 0.1 - a Bonjour-like service finder in pure Squeak
by Masashi UMEZAWA other posts by this author
Apr 2 2006 7:08AM messages near this date
Ubuntu's startsqueak script
|
Re: [ANN] Discovery 0.1 - a Bonjour-like service finder in pure Squeak
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]
Thread:
Masashi UMEZAWA
stéphane ducasse
Masashi UMEZAWA
Noury Bouraqadi
|