# Class Ftp_data_endpoint.ftp_data_receiver

    class ftp_data_receiver : esys:Unixqueue.event_system -> mode:transmission_mode -> local_receiver:local_receiver -> descr:Unix.file_descr -> unit -> object .. end

This engine receives data on a FTP data connection, and forwards them to a local receiver. The socket must already be open.

It is ensured that `local_receiver` is always closed after operation (whether successful or not). The socket `descr` remains open.

Inherits

- `Ftp_data_endpoint.ftp_data_engine`

    method local_receiver : local_receiver

The local receiver. It is closed when the logical EOF is found in the data connection