r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Schemes] Implementors guide

Steeve
14-Jan-2010
[1474]
bad
Andreas
14-Jan-2010
[1475x2]
yep
so, here's a first update: http://bolka.at/share/prot-pop3.r[temporary 
url]
Steeve
14-Jan-2010
[1477]
A remark. You don't need to convert string rules into binaries when 
you parse a binary
Andreas
14-Jan-2010
[1478]
where?
Steeve
14-Jan-2010
[1479x4]
when you parse CRLF for example
bom and eom
the can stay as strings
*they
Andreas
14-Jan-2010
[1483x2]
that's gone in the recent rev anyway
and at least for FIND that's not true
Steeve
14-Jan-2010
[1485]
in the PICK actor, I yet see them
Andreas
14-Jan-2010
[1486]
refresh, then :)
Steeve
14-Jan-2010
[1487]
ouch :-)
Graham
14-Jan-2010
[1488x4]
Andreas .. regarding IMAP4, I looked at the RFC and then revised 
RFC and then the corrections to the revised RFC .. and I thought 
.. maybe it's going to take some time to read!
I haven't used IMAP4 for years so ... for me it's going to take time 
to get up to speed again.
Also just looking at your code ..  my understanding is that if you 
request a message, you have to keep reading until you hit a  crlf 
".," crlf  sequence ... but I don't see that anywhere in your code.
crlf "." crlf
Andreas
14-Jan-2010
[1492]
the most recent version doesn't currently fetch messages, yes
Graham
14-Jan-2010
[1493]
going backwards :)
Andreas
14-Jan-2010
[1494]
most definitely :)
Graham
14-Jan-2010
[1495x2]
How would you suggest I approach the issue I raised above?
viz. Sometimes you want to exit from the handler after a messsage 
and sometimes you don't ...
Andreas
14-Jan-2010
[1497]
Hm, could you be a bit more concrete? Give an example for the kind 
of write, maybe?
Graham
14-Jan-2010
[1498x2]
Maybe I'm wrong .. and you always want to return true after some 
data is returned
I'll work on that assumption :)
Andreas
14-Jan-2010
[1500]
ok :)
Graham
14-Jan-2010
[1501]
Just remembering my Cerebrus pop proxy anti-spam script .. I had 
both progress meters for both messages download and message download
Andreas
14-Jan-2010
[1502]
yeah, i'm still undecided how to best model that
Graham
14-Jan-2010
[1503]
so some standard way to provide callbacks on data transmission would 
be good
Andreas
14-Jan-2010
[1504x2]
currently we have read, read/part and maybe copy/part in our arsenal 
of avail tools
but overall, i think a more general awake handler would be the way 
to go
Graham
14-Jan-2010
[1506x4]
well... we can handle this in the event handler ...
but .. we still need a way of defining these so that the user can 
access them.
eg. a user defined on-write callback and a on-read callback
or maybe a user defined event handler that we pass fake events to 
..
Andreas
14-Jan-2010
[1510]
real events would be even better :)
Graham
14-Jan-2010
[1511]
I guess the first thing is to try and get them to the level of the 
r2 schemes in terms of user use
Rebolek
14-Jan-2010
[1512]
If anybody wants to start torrent protocol, here's simple *.torrent 
parser: http://box.lebeda.ws/~rebolek/rebol/torrent.r
Graham
14-Jan-2010
[1513]
:)
Maxim
14-Jan-2010
[1514x3]
that would be awesome  :-)
write read torrent://file.torrent  %file.avi
url is wrong, obviously... but just the idea of it being this simple 
 ;-)
BrianH
14-Jan-2010
[1517x2]
I could use the .torrent file parser now, even before we start writing 
the protocol, to do file management utilities.
Maxim, wouldn't it be open instead of read?
Maxim
14-Jan-2010
[1519]
OPEN would assume rebol knows how to decode the binary data downloaded 
by the protocol.. 

can OPEN handle an avi file as we speak?  I don't think so.
BrianH
14-Jan-2010
[1520x2]
You are opening the port, not the file. Torrents are both clients 
and servers. You would probably open a port spec, which would open 
as many sub-ports as needed. Closing the torrent port would close 
the whole torrent session. There would be a flag in the torrent port 
that would indicate whether the file had completed downloading.
Maxim, OPEN works on ports. LOAD is what would require a decoder 
- OPEN doesn't decode anything.
Graham
14-Jan-2010
[1522]
Is someone going to write a torrent:// protocol ...or is this torrent 
noise ?  :)
BrianH
14-Jan-2010
[1523]
It's on my list, if someone else doesn't get to it first.