The receiver sets CANZSTD (0x40) in the ZF1 of its ZRINIT. The sender sets ZTZSTD (8) in the ZF2 of a ZFILE to send that file as independent zstd frames (at most 64 KiB of the file each, halved on each ZRPOS). All positions stay offsets in the file, and the receiver writes and acknowledges only whole frames, so ZRPOS recovery and resume work as before. Legacy peers do not set the bit and get plain ZMODEM. Uploads of a known size that stop early are kept for 7 days and resumed by ZRPOS when the same user sends the same file again. Downloads seek on ZRPOS (the download reader did not seek before). A second ZRINIT after the first is now dropped, so its stale ZRPOS no longer sends a segment again. zmodem_zstd in [general] turns zstd off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRR1WNeCEtXUcjE8RgY
3.0 KiB
Callers can use FTP. They can also move files over their own connection to the BBS. This page gives the transfer protocols for text callers, and IND$FILE for 3270 callers.
Text callers
Text callers (telnet, modem, rlogin) use this procedure:
- To download a file, open the details of the file and push D.
- To upload a file, push U in an area.
- Select a protocol:
| Key | Protocol | Notes |
|---|---|---|
| X | XMODEM | CRC, or checksum if the terminal program asks for it. 128-byte blocks |
| 1 | XMODEM-1K | 1K blocks |
| Y | YMODEM | batch: names and exact sizes |
| Z | ZMODEM | batch, CRC-32, error recovery. Most terminal programs start it automatically |
| K | Kermit | for 7-bit lines, and for all other cases where the other protocols fail |
XMODEM does not send a file name. Thus, the BBS asks for a name. The BBS
removes the path from names that a terminal program sends
(C:\DOS\GAME.ZIP becomes GAME.ZIP). It also removes the characters
that the file areas do not accept. An upload goes through the same
checks, size limit and daily allowance as an FTP upload. The BBS keeps the
upload only if it is complete.
ZMODEM resume
If a ZMODEM upload stops before its end, the BBS keeps the part that came for 7 days. When the same user sends the same file (the same name and size) to the same area again, the BBS continues from the end of that part. The BBS also continues a download from the position that the terminal program asks for (crash recovery).
ZMODEM with zstd
The D-Modem GUI and the D-Modem app can compress ZMODEM transfers with zstd. The BBS does this automatically when the program of the caller can do it. Other terminal programs get normal ZMODEM. Text files usually need many fewer bytes. The BBS does not compress files that are compressed now (for example, ZIP, ARJ, LZH, JPEG and MP3 files).
To stop zstd, set zmodem_zstd = no in [general]. The specification
is docs/zmodem-zstd.md in the D-Modem repository.
XMODEM, YMODEM and ZMODEM must have an 8-bit clean line: a modem, rlogin, or telnet in binary mode. The BBS asks for binary mode. If a client does not accept binary mode, the BBS shows a warning to the client.
3270 callers
3270 callers use the file transfer of their emulator, IND$FILE. Use this procedure:
- Go to a file area (8 on the main menu, then S adjacent to an area).
- Put the cursor on the command line.
- Start a transfer. Use send to upload into the area, or receive to download one of its files. Use the name of the file as the host file name.
The emulator types IND$FILE PUT name or IND$FILE GET name. The BBS
does the work of the host in DFT mode (structured fields), as the
IND$FILE of TSO does.
Binary mode keeps a file exactly as it is. ASCII with CR/LF stores text with CR LF line ends, and gives it back in the format that the PC expects. Both the TSO and VM/CMS host types operate. The emulator must support DFT. x3270, c3270, wc3270 and PCOMM support it. Your terminal shows reply 95, Distributed Data Management.
See also: Files and FTP, TN3270