what is the mechanism by which the message is being received? is this a
message sent via akka remoting, or is this a TCP connection being
accepted by akka IO, or a spray HTTP request, or ?
if it is a message that was sent via remoting, you can look at the
Address of the sender() actor ref. sender().path.address will contain
the address of the sender. see
http://doc.akka.io/api/akka/2.3.7/index.html#akka.actor.Address
if it is a TCP connection accepted by akka IO, then the Connected
message will contain the remote and local InetSocketAddress. see
http://doc.akka.io/docs/akka/2.3.7/scala/io-tcp.html#Accepting_connections
-Michael
On 11/14/14 00:27, JasonQ wrote:
Hello,
I'm wondering whether AKKA has some mechanism which can be used to
filter out incoming message based on IP Address, e.g. if I don't want
to process messages from some specific node, how should I do?
Thanks.
--
>>>>>>>>>> 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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
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.