[Info-vax] RMS internals?

Richard B. Gilbert rgilbert88 at comcast.net
Mon Aug 10 09:57:34 EDT 2009


Bob Koehler wrote:
> In article <h5lckr$8h3$1 at naig.caltech.edu>, glen herrmannsfeldt <gah at ugcs.caltech.edu> writes:
>> In comp.os.vms Howard S Shubs <howard at shubs.net> wrote:
>> (big snip)
>>  
>>> I suppose we could have done it with two $GETs, yes.  Unfortunately, 
>>> without knowing for sure how the file was being written by FTP, we 
>>> didn't know that.  FTP is saving it as two records, one of 32767 bytes, 
>>> and one of 330 bytes.  I only found that out once I looked at the blocks 
>>> while debugging my routines.  And I can't be sure it'll always work this 
>>> way.  We're using MULTINET.  What if we switch to UCX (unlikely) and it 
>>> does things differently?  I like the idea of having a library around 
>>> which will read any record length, anyway.
>> TCP is a stream protocol, with no record marks.  The resulting
>> file should be independent of anything in the TCP/IP chain.
> 
>    FTP imposes a standard CRLF pair at the end of each line of text,
>    when transfering as a text file.  Of course, TCP doesn't need to
>    know about this.
> 

That's not quite true!  FTP appends the LOCAL LINE TERMINATOR in text 
mode.  Unix destinations get <LF>.  DOS/Windows get <CR><LF>.  I think 
there's something that uses <CR> by itself but I can't recall what it 
is; maybe Apple/Mac.  VMS gets "counted strings".

It's handled on the receiving end.

--
draco vulgaris



More information about the Info-vax mailing list