muta...@gmail.com
2021-10-12 18:37:20 UTC
I have been struggling with when to use XON, but just
now I realized that I don't need XON to communicate
with eternal-september. The NNTP protocol already has
appropriate markers so that I know when to switch
to/from reading/writing.
So I now have a design for a C90-compliant news reader.
It will open a device, such as "COM1" on PDOS/386 or
"0x10001" on z/PDOS, as "r+b" and start reading characters
until it hits whatever endless-september uses as end-of-line
marker (they are the server, they can do whatever the fuck
they want - I'm pretty sure it is CRLF), and translates from
ASCII to the local character set.
This will get the 0200 line that eternal-september puts out.
There will be an fseek SEEK_CUR 0 as required by the C90
standard prior to then doing a write, which needs to be sent
in ASCII as "LIST\r\n" (that's what I currently do, but it isn't
actually necessary).
This setup will replace the crappy TCP/IP calls that I
currently do.
BFN. Paul.
now I realized that I don't need XON to communicate
with eternal-september. The NNTP protocol already has
appropriate markers so that I know when to switch
to/from reading/writing.
So I now have a design for a C90-compliant news reader.
It will open a device, such as "COM1" on PDOS/386 or
"0x10001" on z/PDOS, as "r+b" and start reading characters
until it hits whatever endless-september uses as end-of-line
marker (they are the server, they can do whatever the fuck
they want - I'm pretty sure it is CRLF), and translates from
ASCII to the local character set.
This will get the 0200 line that eternal-september puts out.
There will be an fseek SEEK_CUR 0 as required by the C90
standard prior to then doing a write, which needs to be sent
in ASCII as "LIST\r\n" (that's what I currently do, but it isn't
actually necessary).
This setup will replace the crappy TCP/IP calls that I
currently do.
BFN. Paul.