MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / disconnectClient

Method disconnectClient

lib/SimpleFTPServer/FtpServer.cpp:271–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void FtpServer::disconnectClient()
272{
273 DEBUG_PRINTLN(F(" Disconnecting client"));
274
275 abortTransfer();
276 client.println(F("221 Goodbye"));
277
278 if(FtpServer::_callback) {
279 FtpServer::_callback(FTP_DISCONNECT, free(), capacity());
280 }
281
282 if(client) {
283 }
284 if(data) {
285 data.stop();
286 }
287}
288
289bool FtpServer::processCommand()
290{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected