|
|
@ -513,7 +513,7 @@ void setup () {
|
|
|
|
/**/
|
|
|
|
/**/
|
|
|
|
Serial.println("Test sockets...");
|
|
|
|
Serial.println("Test sockets...");
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#if
|
|
|
|
NetworkConnection conn = Network.listen(7);
|
|
|
|
NetworkConnection conn = Network.listen(7);
|
|
|
|
|
|
|
|
|
|
|
|
Serial.println("Waiting for connection...");
|
|
|
|
Serial.println("Waiting for connection...");
|
|
|
@ -535,7 +535,7 @@ void setup () {
|
|
|
|
Serial.println("");
|
|
|
|
Serial.println("");
|
|
|
|
|
|
|
|
|
|
|
|
conn.close();
|
|
|
|
conn.close();
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
// This uses the 1-argument constructor of EchoServer and supplies it with 7 for each instance.
|
|
|
|
// This uses the 1-argument constructor of EchoServer and supplies it with 7 for each instance.
|
|
|
|
EchoServer servers[MAX_SOCK_NUM] = {7, 7, 7, 7}; // This will break if MAX_SOCK_NUM changes.
|
|
|
|
EchoServer servers[MAX_SOCK_NUM] = {7, 7, 7, 7}; // This will break if MAX_SOCK_NUM changes.
|
|
|
@ -545,6 +545,7 @@ void setup () {
|
|
|
|
servers[i].next();
|
|
|
|
servers[i].next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Serial.println("End test and dummy loop");
|
|
|
|
Serial.println("End test and dummy loop");
|
|
|
|