https://github.com/kohlschutter/junixsocket library supports only blocking 
IO, which is not the best match for 
Akka. https://github.com/jnr/jnr-unixsocket seems to be a better 
alternative because it provides NIO interface which means that it might 
operate in non blocking mode - but I don't have enough expertise to say if 
it actually does by just skimming the sources.
Using such a non-blocking socket, you could build a bridge class that would 
allow an Actor to exchange messages with a remote application via Unix 
socket.
You could also make it generic and reusable by providing akka-streams 
wrappers around Unix NIO sockets similar 
to http://doc.akka.io/api/akka/snapshot/#akka.stream.scaladsl.Tcp - but 
that would require a quite a bit of effort!

Cheers,
Rafał


W dniu wtorek, 16 lutego 2016 07:55:42 UTC+1 użytkownik Daniel Roziecki 
napisał:
>
> Hello,
>
> like in topic. Does akka.io support unix sockets (AF_UNIX)?
>
> I have a big server application wrote in Kylix, which I have started write 
> more than 15 years ago, and still is in heavy development. By a few last 
> years I created a few medium size apps in Scala / Akka, and I really like 
> these tools. So I want (beside have to), move my server from this ancient 
> technology (Kylix) to something new. This is too big, to do it by simple 
> create new version in new technology at once. I have to move it piece by 
> piece. So I need these two apps old one in Kylix and new one in Scala / 
> Akka, to communicate (fast communicate) between each. Unix sockets are best 
> for it. So I found junixsocket library 
> <https://github.com/kohlschutter/junixsocket>. But I am wonder if akka 
> can't do it on own way?
>
> Regards
>
> Daniel Roziecki
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to