import java.net.InetSocketAddress
import akka.actor.{ Actor, ActorLogging, Props }
import akka.io.IO
import qgame.akka.extension.netty.transport.tcp.Tcp
import qgame.akka.extension.netty.transport.{ Bind, Bound, Connected }
/**
* Created by kerr.
*/
class ServerActor extends Actor with ActorLogging {
override def receive: Receive = {
case Bound(address) =>
log.debug("bound :[{}]", address)
case Connected(remoteAddress, localAddress) =>
val connector = sender()
log.debug("connected,remote :[{}],local :[{}],connector :[{}]", remoteAddress, localAddress, connector)
context.actorOf(Props.create(classOf[ConnectionHandler], connector, remoteAddress, localAddress))
}
@throws[Exception](classOf[Exception])
override def preStart(): Unit = {
import context.system
val manager = IO(Tcp)
manager ! Bind(self, new InetSocketAddress(9000))
super.preStart()
}
}
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
Hi Patrik,Fair enough, I know there is lot of work to be done which makes it harder to estimate hence the question.Do you happen to know anything about the Akka remote direction/status? AFAIK it is been replaced/rewritten with Akka I/O
Best regards,Guido.
On Saturday, June 13, 2015 at 8:03:42 PM UTC+1, Guido Medina wrote:Hi,Just wondering what are the ETAs on Akka 2.4-M2, RCs and final?Best regards,Guido.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.