AltME: R3 Protocols

Messages

GrahamC
Sorry, which version of Rebol3 android?  Is it r3/droid or is it another version?
Luis
From Saphirion  rebol/build 12-jul-2013/19:02:11
GrahamC
All the 'read does is to kick off the awake handler
it should then do the 'lookup so if you remove the comment https://github.com/gchiu/Rebol3/blob/master/protocols/prot-ftp.r#L238
Sounds like from what you're saying, it's not even getting to https://github.com/gchiu/Rebol3/blob/master/protocols/prot-ftp.r#L234

Luis
Exactly
GrahamC
so, you do
cmd: open ftp://site.name
and then
wait cmd
and it just hangs?
Luis
read cmd return none but wait cmd advance to login  !!
GrahamC
that's odd .. sounds like it's waiting on the wrong port then
Luis
If change "read cmd"  by "wait cmd" The last lines are:
C:  PASS mypsw
===Client event: wrote
wrote to port, now read from it
=== Client event: read
Coffe time with my wife, returning in 40 minutes....
Luis
Adding  "wait 0" lines  after each "read cmd"  I can get the htdoc dir (sometimes hang) .
GrahamC
I'm afraid it's alpha level software
The 'read should be doing the 'wait on the correct port
that it's not is odd ...
especially if it works on other platforms
Luis
Apparently sometimes hangs for some seconds, finally reach the end.
Is good for me.
Thanks !
amacleod
I believe this is where I got the prot-ftp.r script originally: https://github.com/gchiu/Rebol3/tree/master/protocols
Should be changed...
Never mind that links to same version...

Cyphre
Not sure if this it the case but in current R3 you have to wait on the port that operates on the real connection (usually tcp scheme). If you wait on the 'topmost' port used by some higher-level scheme the real 'connection port' will be awaken but not the 'topmost' one.
To solve this annoyance, we probably need to introduce new field to the port object (like port/parent-port) using which the AWAKE handler can find the top-most port easily and resolve correctly waiting on higher-level scheme wrappers.

Last message posted 490 weeks ago.