text stringlengths 0 99.6k |
|---|
file. If the end of file is encountered within a frame, the frame is |
closed with a ZZZZCCCCRRRRCCCCEEEE data subpacket which does not elicit a response |
except in case of error. |
The sender sends a ZZZZEEEEOOOOFFFF header with the file ending offset equal to |
the number of characters in the file. The receiver compares this |
number with the number of characters received. If the receiver has |
received all of the file, it closes the file. If the file close was |
satisfactory, the receiver responds with ZZZZRRRRIIIINNNNIIIITTTT. If the receiver has |
not received all the bytes of the file, the receiver ignores the ZEOF |
because a new ZDATA is coming. If the receiver cannot properly close |
the file, a ZZZZFFFFEEEERRRRRRRR header is sent. |
After all files are processed, any further protocol |
errors should not prevent the sending program from |
returning with a success status. |
__________ |
6. If the ZMSPARS option is used, the receiver instead seeks to the |
position given in the ZDATA header. |
Chapter 8 Rev 10-27-87 Typeset 10-27-87 19 |
Chapter 8 ZMODEM Protocol 20 |
8.3 SSSSeeeessssssssiiiioooonnnn CCCClllleeeeaaaannnnuuuupppp |
The sender closes the session with a ZZZZFFFFIIIINNNN header. The receiver |
acknowledges this with its own ZZZZFFFFIIIINNNN header. |
When the sender receives the acknowledging header, it sends two |
characters, "OO" (Over and Out) and exits to the operating system or |
application that invoked it. The receiver waits briefly for the "O" |
characters, then exits whether they were received or not. |
8.4 SSSSeeeessssssssiiiioooonnnn AAAAbbbboooorrrrtttt SSSSeeeeqqqquuuueeeennnncccceeee |
If the receiver is receiving data in streaming mode, the AAAAttttttttnnnn |
sequence is executed to interrupt data transmission before the Cancel |
sequence is sent. The Cancel sequence consists of eight CAN |
characters and ten backspace characters. ZMODEM only requires five |
Cancel characters, the other three are "insurance". |
The trailing backspace characters attempt to erase the effects of the |
CAN characters if they are received by a command interpreter. |
static char canistr[] = { |
24,24,24,24,24,24,24,24,8,8,8,8,8,8,8,8,8,8,0 |
}; |
Chapter 8 Rev 10-27-87 Typeset 10-27-87 20 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.