MCPcopy Create free account
hub / github.com/DFHack/dfhack / command_result plugin_shutdown

Function command_result plugin_shutdown

plugins/luasocket.cpp:334–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 return CR_OK;
333}
334DFhackCExport command_result plugin_shutdown ( color_ostream &out )
335{
336 for(auto it=clients.begin();it!=clients.end();it++)
337 {
338 CActiveSocket* sock=it->second;
339 sock->Close();
340 delete sock;
341 }
342 clients.clear();
343 for(auto it=servers.begin();it!=servers.end();it++)
344 {
345 it->second.close();
346 }
347 servers.clear();
348 return CR_OK;
349}

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
CloseMethod · 0.45
clearMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected