Whenever an actor receives a message in scala, we can access the sender of the actor by using a keyword 'sender' which is an an object of trait AbstractActor.
My question how is this 'sender' becoming accessible whenever a message is received.?
and also, can we override this implementation where along with sender some other data is also accessible such as ipaddress, port from where the data came .
As far as i know, there is no way you can get ipaddress and port from where the message has come .. Is there any way by which we can obtain ipaddress of sender and port number from this 'sender' object ?
Thanks for the help.