Tema: Servidor Ftp
Ver Mensaje Individual
  #6  
Antiguo 06-06-2004
Avatar de jachguate
jachguate jachguate is offline
Miembro
 
Registrado: may 2003
Ubicación: Guatemala
Posts: 6.254
Reputación: 28
jachguate Va por buen camino
Cool

Cita:
Empezado por JCR
Lo que yo quiero es hacer un servidor al cual me pueda conectar con cualquier cliente de Ftp.
Pues el idftpServer es ya un servidor hecho, en cuanto al protocolo se refiere (esto ya lo dije antes... no?).

Una vez has botado el componente en tu forma, vas programando los eventos para los comandos recibidos en el servidor.

Por ejemplo:

OnDeleteFile u OnListDirectory.

Alli le darás la funcionalidad sobre los ficheros del servidor.

Cita:
Empezado por indy help
Description
OnDeleteFile is a TOnFileEvent property that represents the event handler signalled when the FTP server needs to remove a file located on the server file system. OnDeleteFile is used in the FTP DELE command event handler, and allows the server to perform the platform-specific API calls needed to delete the file specified in AFilename.


[b]Note:[b] Applications must assign a procedure to the event handler to allow responding to the event notification. When an event handler has not been assigned, the message specified in RSFTPFileActionNotTakenand with a numeric result code of 550 is sent to the client connection.
.

Esto es aplicable para el resto de eventos que deben hacer operaciones sobre los ficheros.

Hasta luego.

__________________
Juan Antonio Castillo Hernández (jachguate)
Guía de Estilo | Etiqueta CODE | Búsca antes de preguntar | blog de jachguate
Responder Con Cita