AltME: R3 Protocols
Wednesday 5th June, 2013
write rp [ SET asynctest true ]
wait [ rp 3 ]
does that do anything?
(Warning: IP address mangled.)
Graham, this prints "Read 5 bytes" and the wait for 3 seconds.
In your write actor you rewrite the event handler I think
I guess this should put the async-handler into tcp-port, no?
anyway getting too complicated for me ...
This ASYNC write is old code that doesn't work, it uses some non-existent functions
I mean if you already set up a hander, why are you rewriting it ?
I set up the handler for the redis-port and here it's moved to the tcp-port
It's probably copied from some example.
From the HTTP protocol.
because in our write actor, there is no 'port defined
our => your
just guessing now ... must have breakfast!
I changed the Async part of WRITE to:
; --- ASYNCHRONOUS OPERATION
unless open? redis-port [cause-error 'Access 'not-open redis-port/spec/ref]
either probe tcp-port/spec/port-state = 'ready [
write tcp-port to binary! make-bulk-request data
tcp-port/locals: to binary! make-bulk-request data
And I setup tcp's awake in OPEN, but the result is still the same, it prints and then it waits.
Ok, breakfast is important! :)
Last message posted 185 weeks ago.