Switch our test code back to the non-class style for temporary development purposes.

git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@128 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
master
follower 17 years ago
parent f803ac7c6b
commit 411a834cd5

@ -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");

Loading…
Cancel
Save