diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actors/scala/actors/remote/RemoteActor.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/actors/scala/actors/remote/RemoteActor.scala b/src/actors/scala/actors/remote/RemoteActor.scala index 7bc3fc5a48..7312cea4ba 100644 --- a/src/actors/scala/actors/remote/RemoteActor.scala +++ b/src/actors/scala/actors/remote/RemoteActor.scala @@ -32,7 +32,7 @@ package scala.actors.remote * </p><pre> * actor { * // ... - * <b>val</b> c = select(TcpNode("127.0.0.1", 9010), 'myName) + * <b>val</b> c = select(Node("127.0.0.1", 9010), 'myName) * c ! msg * // ... * } @@ -49,7 +49,7 @@ object RemoteActor { * Makes <code>self</code> remotely accessible on TCP port * <code>port</code>. */ - def alive(port: int): Unit = synchronized { + def alive(port: Int): Unit = synchronized { val serv = TcpService(port) kernels += Actor.self -> serv.kernel } @@ -95,6 +95,9 @@ object RemoteActor { /** * This class represents a machine node on a TCP network. * + * @param address the host name, or <code>null</code> for the loopback address. + * @param port the port number. + * * @author Philipp Haller */ case class Node(address: String, port: Int) |