void EthernetClient::stop()
{
if (_sock < 0)
return;
connect_true = false;
if (_inactive_counter != NULL)
*_inactive_counter = 0;
if(_sock != -1){
close(_sock);
_sock = -1;
// Sketches do a Ethernet client = server.available() - which means a copy constructor is used// Hence any server which populated a pclients[idx] - won't actually see the socket closed - since// his client was copied - not given a pointer to.... pcleint[] in EthernetServer.cpp _sock != -1 at this point// make it so !if(_pCloseServer != NULL){
_pCloseServer->closeNotify(this->id);
}
}
}