Class Rinda::RingServer
In: lib/rinda/ring.rb
Parent: Object

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.

Methods

Included Modules

DRbUndumped

Public Class methods

Advertises ts on the UDP broadcast address at port.

Public Instance methods

Pulls lookup tuples out of the TupleSpace and sends their DRb object the address of the local TupleSpace.

Extracts the response URI from msg and adds it to TupleSpace where it will be picked up by reply_service for notification.

Creates a thread that notifies waiting clients from the TupleSpace.

Creates a thread that picks up UDP packets and passes them to do_write for decoding.

[Validate]

ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.