diff options
Diffstat (limited to 'libraries/Ethernet/examples/ChatServer')
-rw-r--r-- | libraries/Ethernet/examples/ChatServer/ChatServer.ino (renamed from libraries/Ethernet/examples/ChatServer/ChatServer.pde) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/Ethernet/examples/ChatServer/ChatServer.pde b/libraries/Ethernet/examples/ChatServer/ChatServer.ino index 8267a5d..9f819fd 100644 --- a/libraries/Ethernet/examples/ChatServer/ChatServer.pde +++ b/libraries/Ethernet/examples/ChatServer/ChatServer.ino @@ -29,7 +29,7 @@ IPAddress gateway(192,168,1, 1); IPAddress subnet(255, 255, 0, 0); // telnet defaults to port 23 -Server server(23); +EthernetServer server(23); boolean gotAMessage = false; // whether or not you got a message from the client yet void setup() { @@ -43,7 +43,7 @@ void setup() { void loop() { // wait for a new client: - Client client = server.available(); + EthernetClient client = server.available(); // when the client sends the first byte, say hello: if (client) { |