Fog Creek Software
Discussion Board




Client Server Application in C++ ..

Hi all ..

Can any one let me have some detailed insight into the development of a client-server application in C++ for Linux using TCP/IP protocol. I should have a server and many (max 10) clients logged in. But these clients can be in different groups or can stay individually, thus creating different groups. Say, when all the 10 clients are logged in (clients being numbered as 1, 2, 3, .. to 10) they are in groups of 3, 3, and 4 - in three different groups. Now, within one group_session, there is a continuous interaction / exchange of texts on-line. Say,

GroupSession1 has clients numbered 1, 2 & 3;
GroupSession2 has clients numbered 4, 5, & 6;
GroupSession3 has clients numbered 7, 8, 9, & 10.

Now, in GroupSession1, whenever any one of the group members write something on his/her client window, it gets sent to all the others present in the same session, i.e., 2 and 3 here also. And the same happens in the other GroupSessions as well.

Any help in this regards would really be of great help. I really want to do this.
Thanking you in advance,

Regards,
Sriram.

Sriram Sita.
Monday, September 16, 2002

You want "Unix Network Programming" by W. Richard Stevens - http://www.bestwebbuys.com/books/compare/isbn/013490012X

You're proposing a relatively simple project - you could probably get a Comp Sci student to do it for a couple of 6-packs. Either that, or do your own homework...

jeff
Monday, September 16, 2002


http://www.spread.org

Leonardo Herrera
Monday, September 16, 2002

The Stevens book suggested above is perfect for this rather trivial project.  Go do your own homework, and stop asking others to do your work.

tcpClient
Monday, September 16, 2002

You're basically looking at building an instant messaging application, right?

Take a look at http://www.jabber.org. Open source IM which can handle a LOT more than 10 clients.

10 isn't a lot in the client server world, btw.

Also, a hearty repeat of the recommendation for the Stevens book. Best book hands down on network programming for ANY OS.

Chris Tavares
Monday, September 16, 2002

This reminds me of the late-eighties, early nineties where you'd get the fidonet posts starting with the words "I'm writing a BBS..." and you just knew the poor poster didn't have a clue.

Troy King
Monday, September 16, 2002

*  Recent Topics

*  Fog Creek Home