Added defaultAddress() to RemoteTransport API

This commit is contained in:
Endre Sándor Varga 2012-11-21 14:18:24 +01:00
parent b6bdb34e44
commit 682abccf7e
12 changed files with 40 additions and 28 deletions

View file

@ -84,10 +84,10 @@ class RemoteActorRefProvider(
// this enables reception of remote requests
_transport.start()
//FIXME defaultaddress maybe?
_rootPath = RootActorPath(local.rootPath.address.copy(
host = transport.addresses.head.host,
port = transport.addresses.head.port))
protocol = transport.defaultAddress.protocol,
host = transport.defaultAddress.host,
port = transport.defaultAddress.port))
val remoteClientLifeCycleHandler = system.systemActorOf(Props(new Actor {
def receive = {