Client server based file sharing and text exchanging application in which clients communicate through a server and then client messages/ data is send to all connected clients on server.
MultiParty Chat is an application in which:
- There is a server which recives connection requests.
- Clients which connects to server.
- Clients communicate with each other through server.
- Each clients message is first sent to server which in turn send it to all connected clients in chat.
- Clients can send text as well as multi media files, binary files etc.
- It uses TCP protocol for sending and recieving data.
This code compiles on UNIX systems because of differences in APIs in windows and UNIX based systems. To compile and run this open terminal in folder where code files are and type:
- run 'g++ -o server server.cpp -lpthread'
- run 'g++ -o client client.cpp -lpthread'
This creates two application files with name server and client. Open two terminal windows and in one first run server by typing './server' in terminal and in second one run client by typing './client'. Now at this point one client has connected to server. Run multiple clients in same way and share messages/ files.