friendev EtherDune TCP/IP library
ChatServer.ino File Reference

Implements a simple chat server, demonstrating TCP and how to handle multiple simutaneous clients. More...

Go to the source code of this file.

Detailed Description

Implements a simple chat server, demonstrating TCP and how to handle multiple simutaneous clients.

Listens for TCP connections on port 2500, then launches 1 socket per incoming connection, thus able to serve multiple clients simultaneously. When a client connects, the server sends a welcome message, then any message received is relayed to all clients.

See the TCPSocket documentation for more information.

Definition in file ChatServer.ino.