AFAIK akka.io.TcpConnection will send you messages on socket events, 
including when there is data available. Then you can do logical message 
framing however you want. We have code to extract messages from TCP data 
streams in typical ways for the payments industry. It can get a bit complex 
in some cases, though the most common is, as you said, 2 bytes binary for 
length, or 2 bytes binary for length + 2 fixed 0x0 bytes or something like 
that. TcpConnection doesn't really particularly help or hindrance you with 
framing. Also after coding that we became aware of scodec which we haven't 
used but it looks really well suited for this kind of low-level protocol 
based messaging: http://scodec.org/ so you might be interested in that as 
well.

Regards
Álvaro.-

On Tuesday, June 23, 2015 at 6:43:15 PM UTC-3, Zed wrote:
>
> I'm looking up into akka in order to implement a solution for iso 8583 
> system. My main concern is the tcp client, systems usually use sockets to 
> transfer data between them using 2 (or 4) bytes for message length.
> I saw the implementation of TCPConnection and it's not compatible, so i 
> would like to know whether somebody implemented a custom tcp connection or 
> i should code by myself.
>
> On Tuesday, June 23, 2015 at 11:56:14 AM UTC-4, Alvaro Rodriguez wrote:
>>
>> Hi, we are indeed using Akka IO with ISO 8583. But it's not open source.
>>
>> Regards
>> Álvaro.-
>>
>> On Monday, June 22, 2015 at 10:43:34 AM UTC-3, Zed wrote:
>>>
>>> Hi,
>>>
>>> has anybody already used akka io with iso 8583 messages?
>>>
>>> Tks
>>>
>>

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to