scala.actors.remote
object RemoteActor

[source: `scala/actors/remote/RemoteActor.scala`]

`` `object` RemoteActor
  `extends` AnyRef

  This object provides methods for creating, registering, and selecting remotely accessible actors.

  A remote actor is typically created like this:

        actor {
          alive(9010)
          register('myName, self)

          // behavior
        }

  It can be accessed by an actor running on a (possibly) different node by selecting it in the following way:

        actor {
          // ...
          val c = select(TcpNode("127.0.0.1", 9010), 'myName)
          c ! msg
          // ...
        }

Author
  Philipp Haller

Method Summary
`def` | alive (port : Int) : Unit Makes `self` remotely accessible on TCP port `port`.
`def` | register (name : Symbol, a : Actor) : Unit Registers `a` under `name` on this node.
`def` | select (node : Node, sym : Symbol) : Actor Returns (a proxy for) the actor registered under `name` on `node`.

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`` `def` alive(port : Int) : Unit

  Makes `self` remotely accessible on TCP port `port`.

`` `def` register(name : Symbol, a : Actor) : Unit

  Registers `a` under `name` on this node.

`` `def` select(node : Node, sym : Symbol) : Actor

  Returns (a proxy for) the actor registered under `name` on `node`.