score:0

You probably want to take first at pipelines for proper string framing, coding/decoding and backressure: http://doc.akka.io/docs/akka/2.2.0/scala/io-codec.html

There is a simple example in the TCP section using pipelines: http://doc.akka.io/docs/akka/2.2.0/scala/io-tcp.html#Usage_Example__TcpPipelineHandler_and_SSL

(don't be confused that it uses SSL, you can leave that part out)

And yes, the FSM module is probably what you want to use to implement the protocol states.


Related Query

More Query from same tag