A RingServer allows a Rinda::TupleSpace to be located via UDP broadcasts. Service location uses the following steps:
- A RingServer begins listening on the broadcast UDP address.
- A RingFinger sends a UDP packet containing the DRb URI where it will listen for a reply.
- The RingServer recieves the UDP packet and connects back to the provided DRb URI with the DRb service.
| Public Methods | |
|---|---|
| do_ |
Pulls lookup tuples out of the TupleSpace and sends their DRb object the address of the local TupleSpace. |
| do_ |
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_ |
Creates a thread that notifies waiting clients from the TupleSpace. |
| write_ |
Creates a thread that picks up UDP packets and passes them to do_write for decoding. |
<code/>and<pre/>for code samples.