|
how to make a chat 1:n without ipc and programming in C?
well my dear friends, thank you if you are reading this, my question about this.In school i have a task about making a comunication between terminals where there will be a kind of server which will be a terminal and there will be some kinds of clients, which will read the information of the server, that would be like a kind of chat(lol,many kind of),but in fact i wouldnt have to use IPC, but i dont know ho to do that because when im programming my sending of information through scanf in a loop,if this is 1:1 theres no problem but when theres more, until the last had closed his file descriptor to the FIFO(by the way im using a FIFO,lol sorry)so theres no correct communication,theres the beginning of my problm but i dont know ho to read the same FIFO from distinct terminals (which would call clients),the idea is when a client wants to write n send to the server,this receives but when the server wants to reply this would be for every client.if you could help me id be very grateful. See u n blessings.
|