Class

RingServer

Extends:

Includes:

A RingServer allows a Rinda::TupleSpace to be located via UDP broadcasts. Service location uses the following steps:

  1. A RingServer begins listening on the broadcast UDP address.
  2. A RingFinger sends a UDP packet containing the DRb URI where it will listen for a reply.
  3. The RingServer recieves the UDP packet and connects back to the provided DRb URI with the DRb service.
Public Methods
do_reply Pulls lookup tuples out of the TupleSpace and sends their DRb object the address of the local TupleSpace.
do_write Extracts the response URI from msg and adds it to TupleSpace where it will be picked up by reply_service for notification.
new Advertises ts on the UDP broadcast address at port.
reply_service Creates a thread that notifies waiting clients from the TupleSpace.
write_service Creates a thread that picks up UDP packets and passes them to do_write for decoding.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.