| 253 | } |
| 254 | |
| 255 | void FtpServer::clientConnected() |
| 256 | { |
| 257 | DEBUG_PRINTLN(F(" Client connected!")); |
| 258 | client.print(F("220---")); |
| 259 | client.print(welcomeMessage); |
| 260 | client.println(F(" ---")); |
| 261 | client.println(F("220--- By Renzo Mischianti ---")); |
| 262 | client.print(F("220 -- Version ")); |
| 263 | client.print(FTP_SERVER_VERSION); |
| 264 | client.println(F(" --")); |
| 265 | iCL = 0; |
| 266 | if(FtpServer::_callback) { |
| 267 | FtpServer::_callback(FTP_CONNECT, free(), capacity()); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | void FtpServer::disconnectClient() |
| 272 | { |