Ruby Rinda::RingServer Functions

EditRocket provides the following information on Rinda::RingServer functions in the Ruby source code builder.

do_reply() - Pulls lookup tuples out of the TupleSpace and sends their DRb object the address of the local TupleSpace.

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

new(ts, port=Ring_PORT) - 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.