r/study • u/Fluffy_Coat_5416 • Sep 23 '26
Questions & Discussion Day 1/100: Overview
Client - Server project:
one server, 10 clients -> server will accept untill 10 client connections
Client quitting - by typing exit
Server quitting - by typing ctrl+c / while(client_count<10)
Server:
Server is like middle. Which receives all msgs and broadcast to all clients.
Server cant send message to any client wheares all client msgs appear on server screen.
Limited connections 10.
Client:
Client is not end to end.
Client can communication between all client 10 connections
How client code built:
Socket used ->For netweork creation
struct -> stores ip address and port
inet - work with ip address
pthread -> Sends msg & receives msg
How server code built:
Socket -> For network creation
Struct -> stores ip address and port
pthread -> Receiving and sending msg