Websocket [ci siamo quasi]

Nella documentazione della wiz ci sarà scritto come rimbalza il client.

ok, sarebbe da fare quelche test, per esempio col codice che c'è ora (allego funzione corretta), vedere cosa succede

codice corretto:

void EthernetServer::accept()
{
  int listening = 0;

  for (int sock = 0; sock < MAX_SOCK_NUM; sock++) {
    EthernetClient client(sock);

    if (EthernetClass::_server_port[sock] == _port) {
      if (client.status() == SnSR::LISTEN) {
        listening = 1;
      } 
      else if (client.status() == SnSR::CLOSE_WAIT && !client.available()) {
        client.stop();
      }else{
	    EthernetClass::_is_new[sock] = false;
		if ( onConnect ){
			onConnect(client);
		}
	  }
    } 
  }

  if (!listening) {
    begin();
  }
}