I`m in a software project in which we will use FTP server.
In this project we want the server send my C/C++ program a signal when a client upload a file.
About the signal, I dont konw how to say exactly. Genarally, it could be any way that my program on the same PC of the server can konw someone has upload a file without scanning the disk of the FTP server.
i have no idea if there is a manual for that.
i usually use foreach loop trough inputs args, to see what is there.
u have also ioFTPD environmnet variables (PATH, USER, SPEED, ...) available in your program. u can find them in /etc/ folder i think.
just use a method as if u were looking for some WINDOWS ENV variable.
Code:
windows:
Environment.GetEnvironmentVariable("windir");
...
ioFTPD:
Environment.GetEnvironmentVariable("USER"); //username of the user who uploaded the file
Environment.GetEnvironmentVariable("SPEED"); //average speed the file was uplaoded with
...