AltME: R3 Protocols

Messages

GrahamC
Max, incorrect.
You can RSET in transactional mode
@Andreas, did your pop3 scheme check every single line of data coming down for codes?
Andreas
no, you only have to check the immediate response line or the line after that, depending on the command.
for message data (RETR) you know beforehand how many data you ought to receive.
then it's just a question if you want to rely on that, or be very defensive, assume the pop3 server is broken regarding size calculation and rather continuously check for `crlf #"." crlf` instead.
GrahamC
I'm being defensive and also checking for octet stuffing
Andreas
unfortunately, quite a few pop3 servers indeed are broken in this regard, however, they typically err in giving too small sizes. so you can just read as much as you are told to and then switch to "dot-scanning".
GrahamC
Probably why my version times out on a 5Mb file after a minute

Cyphre
Graham, I made some corrections to the tls scheme so the problems(eg. write from connect and the port/data compatibility) you reported should be fixed. Please get it from here http://rebol.atwebpages.com/scripts/prot-tls.r and give it a try.
GrahamC
Will try it today. Thanks.

GrahamC
Awake-event: lookup
** Script error: rc4 is missing its crypt-key argument
** Where: unless switch encrypt-data encrypted-handshake-msg parse do-commands
f switch -apply- wake-up loop -apply- wait read
** Near: unless ctx/encrypt-stream [
    ctx/encrypt-stream: rc4/key ...
Cyphre
Ah, sorry. It seems the code is 'too new'..we need to make new release of R3 Saphirion fork so you are able to run it.
GrahamC
First 5 minutes of testing shows that in  the new release, the tls port is now more like the tcp port

Pekr
Could use R2 probably, but - can R3 read ftp? I will soon need small script for my LED screen client, who requests placing commercials himself. So my idea is to allow them to place it to FTP server, then my script takes it, downloads it, and rewrites the file locally ...
BrianH
There's no ftp protocol built into R3, and I haven't heard of anyone making one. Maybe Kaj's curl wrapper can do ftp.
Pavel
When I look at dev-net.c source it seems like UDP is only one switch. Would it be the UDP actor the same as for TCP or may it be less complicated?
Kaj
The cURL binding can do FTP, of course
We've been uploading our websites with it for several years
GrahamC
I wrote a ftp scheme three years ago ... and was able to download ISO images with it.
Pekr, you forget so quickly!

Last message posted 158 weeks ago.