diff options
author | michelou <michelou@epfl.ch> | 2006-06-23 10:01:30 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-06-23 10:01:30 +0000 |
commit | 48dd2c26dd15a2b21f7c53d04d508e9658a90e38 (patch) | |
tree | 4afe9b07ffb59bdcd61cad5bf599f1b7d3b12736 /docs/examples/actors/counter.scala | |
parent | 059cda57f0f109642aca0f8ffc7aa263bec7a451 (diff) | |
download | scala-48dd2c26dd15a2b21f7c53d04d508e9658a90e38.tar.gz scala-48dd2c26dd15a2b21f7c53d04d508e9658a90e38.tar.bz2 scala-48dd2c26dd15a2b21f7c53d04d508e9658a90e38.zip |
fixed class name in example actors/counter.scala
Diffstat (limited to 'docs/examples/actors/counter.scala')
-rw-r--r-- | docs/examples/actors/counter.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/actors/counter.scala b/docs/examples/actors/counter.scala index 99a616afb2..9af8eba243 100644 --- a/docs/examples/actors/counter.scala +++ b/docs/examples/actors/counter.scala @@ -35,8 +35,8 @@ class CounterUser extends RemoteActor { override def run(): unit = { alive(TCP()) - spawn(TcpNode("127.0.0.1", 9090), "Counter") - + val host = java.net.InetAddress.getLocalHost().getHostAddress() + spawn(TcpNode(host, 9090), classOf[Counter].getName()) receive { case p: Pid => // communicate with counter |