You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's talk about this scenario: we open the server for 3 clients, then connect with a client, disconnect, connect with another one, disconnet, and connect with the last one. This will happen:
thomas ~/GitHub/Rentz/bin $ ./server 3
Server up and listening for connections
Received 1 events
Accepted connection from 127.0.0.1: 19112
Connection on sfd = 5 is named TH
Received 1 events
Accepted connection from 127.0.0.1: 19368
Connection on sfd = 6 is named BC
Received 1 events
Accepted connection from 127.0.0.1: 19624
Connection on sfd = 7 is named BC
A new game has started!
The client has closed the connection
thomas ~/GitHub/Rentz/bin $
thomas ~/GitHub/Rentz/bin $ ./client
Connected to 127.0.0.1
^C
thomas ~/GitHub/Rentz/bin $ ./client
Connected to 127.0.0.1
^C
thomas ~/GitHub/Rentz/bin $ ./client
Connected to 127.0.0.1
The client has closed the connection
thomas ~/GitHub/Rentz/bin $
The text was updated successfully, but these errors were encountered:
@ericpts
Let's talk about this scenario: we open the server for 3 clients, then connect with a client, disconnect, connect with another one, disconnet, and connect with the last one. This will happen:
The text was updated successfully, but these errors were encountered: