akka - Can I change which Actor handles a TCP connection? -


after having "registered" actor handle tcp connection, can re-assign later on actor?


i want because:

step 1: have actor listening socket.

io(tcp) ! bind(self, new inetsocketaddress("localhost", 12345)) 

step 2: receive incoming connection.
@ point all know remote address (hostname , port). based on register actor handle incoming data connection.

def receive = {   case connected(remote, local) =>     sender ! register(handleractor(remote)) } 

step 3: first messages exchanged.
i have more application level information connection , i'd actor placed somewhere else in hierarchy handle it.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -