Skip to content
Permalink
Browse files
Add pending test for si-5698.
  • Loading branch information
axel22 committed May 2, 2012
1 parent d0fd3b3 commit 69564d46e62bfb14b79dd5351e4de52a4009e5c4
@@ -0,0 +1,9 @@
package client



object Client extends App {
val peer = actors.remote.Node("localhost", 23456)
val a = actors.remote.RemoteActor.select(peer, 'test)
a ! server.TestMsg
}
@@ -0,0 +1,22 @@
package server



object Server extends App {

class ServerActor extends actors.Actor {
def act() {
actors.remote.RemoteActor.alive(23456)
actors.remote.RemoteActor.register('test, actors.Actor.self)
loop {
react {
case TestMsg => println("Yay!")
}
}
}
}

val a = new ServerActor
a.start()

}
@@ -0,0 +1,5 @@
package server



case object TestMsg

0 comments on commit 69564d4

Please sign in to comment.