AltME: R3 Protocols

Messages

Andreas
So I don't think the awake handler you install on the Redis parent port (the example you pasted above) will be called at all.
GrahamC
so, you need to get the port returned by open and install the async handler on that
Andreas
Right.
GrahamC
I was getting there ... heh
Rebolek
But  READ in ASYNC-HANDLER gets called.
Andreas
Are you absolutely sure about that?
Rebolek
I changed the line 400 to [tcp-port/awake: :redis-port/awake] and it's still the same.
Andreas: PRINT prints in console, so I guess it should.
Andreas
And it prints even without setting the subport's awake?
GrahamC
rp: open redis://192.168.2.11:10
rp/awake: :async-handler
write rp [ SET asynctest true ]
wait [ rp 3 ]
does that do anything?
Andreas
(Warning: IP address mangled.)
Rebolek
Graham, this prints "Read 5 bytes" and the wait for 3 seconds.
the=then
GrahamC
In your write actor you rewrite the event handler I think
Rebolek
I guess this should put the async-handler into tcp-port, no?
GrahamC
anyway getting too complicated for me ...
Rebolek
This ASYNC write is old code that doesn't work, it uses some non-existent functions
GrahamC
I mean if you already set up a hander, why are you rewriting it ?
Rebolek
I set up the handler for the redis-port and here it's moved to the tcp-port

Last message posted 146 weeks ago.