2
我目前在我的一個項目(ftp客戶端部分)上實現了ftp協議。我正在遵循RFC959FTP協議中的轉義字符
在這個RFC中,我面臨一個問題:轉義字符,的確,它描述了它必須使用轉義字符。但我不知道具體角色是什麼。
以下是有關轉義字符的RFC的一部分:
3.4.1. STREAM MODE
The data is transmitted as a stream of bytes. There is no
restriction on the representation type used; record structures
are allowed.
In a record structured file EOR and EOF will each be indicated
by a two-byte control code. The first byte of the control code
will be all ones, the escape character. The second byte will
have the low order bit on and zeros elsewhere for EOR and the
second low order bit on for EOF; that is, the byte will have
value 1 for EOR and value 2 for EOF. EOR and EOF may be
indicated together on the last byte transmitted by turning both
low order bits on (i.e., the value 3). If a byte of all ones
was intended to be sent as data, it should be repeated in the
second byte of the control code.
If the structure is a file structure, the EOF is indicated by
the sending host closing the data connection and all bytes are
data bytes.
有誰知道是什麼性格?
一般來說,你有一些關於如何告訴FTP服務器我已經完成發送文件的線索嗎?
先謝謝您。 「
就是這樣!謝謝(10分鐘內複選標記)。 – Joze