The aim of the project is to create a simple server where client can connect and exchange messages.
Server:
cd rendu
make
Client:
nc 127.0.0.1 6000
Client 0:
nc 127.0.0.1 6000
Client 1:
nc 127.0.0.1 6000
Hello, client 0!
Client 2:
nc 127.0.0.1 6000
Hello, client 0 and client 1!
Client 0
Goodbye, client 1 and client 2!
Client 1:
Goodbye, client 2!
Client 0:
server: client 1 just arrived
client: 1: Hello, client 0!
server: client 2 just arrived
client: 2: Hello, client 0 and client 1!
Client 1:
server: client 2 just arrived
client: 2: Hello, client 0 and client 1!
client: 0: Goodbye, client 1 and client 2!
server: client 0 just left
Client 2:
client: 0: Goodbye, client 1 and client 2!
server: client 0 just left
client: 1: Goodbye, client 2!
server: client 1 just left