Discussion Locked

Chatting Program using C Language under

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can I implement 3 different chatting programs (more than 2 terminal involve) using C Language under LINUX environment and 3 different methods or approaches listed below:
1)shared memory
2)message queue
3)semaphores

Which websites should I look for?

5 replies

by a_rashad

try a client server type of programs, each client will search for the Server, send the message (Broadcase way like in mIRC) and recieve the message from the server, server is responsible for recieving a message from any client and broadcasting it toall online clients. usage of sockets will be useful by placing a queue being filled by messages pumped into the socket(port) then serving it either by the client or server.
the catch is that u have to either implement or to get the TCP/IP driver/services API.

by james_randy

Since no one cared enough about this question to answer it, just close the question and give me the points.

This discussion is closed to new replies.