You are not logged in.

#1 2008-12-22 06:38:16

Basu
Member
From: Cornell University
Registered: 2006-12-15
Posts: 296
Website

Learning to build client/server software

I'm going to be taking a software engineering course next semester at school. It's in C++ and about halfway through we have to write some sort of medium sized 'real-world' software app. Most people just write a simple program (like a ticket booking system) which I suppose is par for the course. But I'd like to try my hand at something more 'real-world'. Even if it is in the end just a ticket booker, I'd like it to run as a server/client over the internet. But I have no idea about how to write software that communicates over the internet or anything about networking at all. Are there some primers I could get about writing distributed software like this? Especially with C++ libraries that I'll needing.


The Bytebaker -- Computer science is not a science and it's not about computers
Check out my open source software at Github

Offline

#2 2008-12-22 13:35:43

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Learning to build client/server software

try 'man 7 socket'?
open up the mpd source (or some other server/client software you like)?

Last edited by peets (2008-12-22 13:36:25)

Offline

#3 2008-12-22 14:16:39

e_tank
Member
Registered: 2006-12-21
Posts: 80

Re: Learning to build client/server software

this c programming guide may be of some use.  it has a section on sockets which has an example of a server/client program that i think you should be able to modify to communicate via a tcp/ip socket.  i haven't done any kind of programming using sockets directly (though i'd like to play around with it when i have some free time) so i'm not sure exactly how you would go about making those changes.

peets wrote:

open up the mpd source (or some other server/client software you like)?

netcat might be a good example as well

Offline

#4 2008-12-22 17:07:15

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Learning to build client/server software

Offline

#5 2008-12-22 18:50:56

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Learning to build client/server software

tam1138 wrote:

Oh, I'd forgotten about it! That's how I learned. +1 then.

Offline

Board footer

Powered by FluxBB