libraries/ESP8266WiFiMesh/src/ESP8266WiFiMesh.cpp
bool ESP8266WiFiMesh::waitForClient(WiFiClient curr_client, int max_wait)
{
	int wait = max_wait;
	while(curr_client.connected() && !curr_client.available() && wait--)
		delay(3);

	/* Return false if the client isn't ready to communicate */
	if (WiFi.status() == WL_DISCONNECTED || !curr_client.connected())
		return false;
	
	return true;
}
/**
 * Wait for a WiFiClient to connect
 *
 * @returns: True if the client is ready, false otherwise.
 * 
 */
Wait for a WiFiClient to connect
@returns: True if the client is ready, false otherwise.
Wait for a WiFiClient to connect @returns : True if the client is ready false otherwise .
bool ESP8266WiFiMesh::waitForClient(WiFiClient curr_client, int max_wait)
{
	int wait = max_wait;
	while(curr_client.connected() && !curr_client.available() && wait--)
		delay(3);
	if (WiFi.status() == WL_DISCONNECTED || !curr_client.connected())
		return false;
	return true;
}
bool ESP8266WiFiMesh :: waitForClient ( WiFiClient curr_client , int max_wait ) { int wait = max_wait ; while ( curr_client . connected ( ) && ! curr_client . available ( ) && wait -- ) delay ( 3 ) ; if ( WiFi . status ( ) == WL_DISCONNECTED || ! curr_client . connected ( ) ) return false ; return true ; }
Wait for a WiFiClient to connect
 @returns: True if the client is ready, false otherwise.
Wait for a WiFiClient to connect @returns : True if the client is ready false otherwise .
/* Return false if the client isn't ready to communicate */