Skip to content

rbiodies/Exam_Rank-06

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

✅ Exam_Rank-06

The aim of the project is to create a simple server where client can connect and exchange messages.

Compilation

Server:

cd rendu
make

Usage

Client:

nc 127.0.0.1 6000

Example

Usage

Client 0:

nc 127.0.0.1 6000

Usage

Client 1:

nc 127.0.0.1 6000
Hello, client 0!

Usage

Client 2:

nc 127.0.0.1 6000
Hello, client 0 and client 1!

Usage

Client 0

Goodbye, client 1 and client 2!

Usage

Client 1:

Goodbye, client 2!

Output

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!

Output

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

Output

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

Resources