From 6761dc14b707667b453455aa6cecb0c82babeed3 Mon Sep 17 00:00:00 2001
From: michelou
* actor { * // ... - * val c = select(TcpNode("127.0.0.1", 9010), 'myName) + * val c = select(Node("127.0.0.1", 9010), 'myName) * c ! msg * // ... * } @@ -49,7 +49,7 @@ object RemoteActor { * Makesself
remotely accessible on TCP port *port
. */ - 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, ornull
for the loopback address. + * @param port the port number. + * * @author Philipp Haller */ case class Node(address: String, port: Int) -- cgit v1.2.3