AltME: R3 Protocols
Wednesday 5th June, 2013
you still have false at the end of your loop
Oh, I see...
Or, restructure your loop the same way as I did
NP .. still waiting on text-table and text-list fixes :)
I know, I''m sorry...I'm spending too much time with Redis ;)
Bt with async (almost) working I guess I can move from it for some time and fix the styles :)
Anyway, I thought I explained this in my tutorial .. I need to look again to see what I wrote
in case it's not clear enough
Is there some new version? I remember there was only SYNC-WRITE.
should be 'closed and not 'ready
No new tutorial yet .. there was an attempt to expand it .. but that has stagnated
always a problem with committee approach lol
Hm, the simple example works, but trying to put it in scheme does nothing yet...
is your redis:// on github yet?
Yes, but not the async part yet.
want to give us the gist ?
I use this for testing the async version:
async-handler: func [event /local port] [
print ["==TCP-event:" event/type]
;print ["Awake-event:" event/type]
switch/default event/type [
lookup [open event/port]
; send-redis-request event/port
write event/port event/port/locals
wrote [read event/port]
print ["Read" length? event/port/data "bytes"]
print ["Unexpected event:" event/type]
false ; returned
rp: make port! rs
write rp [SET asynctest true]
probe wait [rp 3]
is the link, this tcp-port/spec/port-state: 'ready should be 'closed or something but that's not the issue
Last message posted 168 weeks ago.