Next
Previous
Contents
-
In "binary" data transfer mode (TYPE IMAGE and TYPE LOCAL 8) the
server maps the file to be sent with mmap in big chunks (approximately 10
Mbytes) and passes the addresses of these chunks to TCP/IP Protocol. It
is the headache of the transport protocol how to transfer the data efficient.
- In "ASCII" data transfer mode (TYPE ASCII) server maps the file to be sent
with mmap. For each chunk of the file it appends each line to the buffer of
fixed size. Once this buffer is filled the program sends its content to peer.
The size of the buffer is 128K. The same technique is used for output of
LIST and STAT path commands.
-
Responses to peer are also collected in a buffer of fixed size. They are sent
each time the buffer is full or the program explicitly tells to do so.
- The program uses expandable buffers for collecting strings of
virtually any length.
Next
Previous
Contents