Creating a server and client program like online reservation program using socket API in C

I need some help in figuring out the design principle for this program. I donot expect progamming code but rather some design and architecture theory.

I am programming in C language using Socket API. I want to know how SQL database, Socket API, other language, etc are needed to complete it. If possible without lot of hassle, I want to upload on webserver. I appreciate for you help.



Make small library that has wrapper functions for socket API, another library for SQL database access, and anything else you might use. These libraries should do error handling, among any other thing you might do. Emit some diagnostics and decide whether to continue or abort the program, and do it. Build and test these libraries.

Then write your program, that is, reading and writing to the database and network and anything else you might add. Link against your libraries when building.

This program, from what I understand from the question, is going to listen on a port for incoming connections, fork a thread (or process), and keep listening. The child process will decide what to read or write and whether to network or database.

I hope this is simple for enough for the homework to get you started.

Need Your Help

WPF ComboBox doesn't stay open when used in a Task Pane

wpf excel interop

I have a strange bug with WPF Interop and an Excel Addin. I'm using .Net 3.5 SP1.

animated symbol is not shown on googlemap

javascript google-maps

i want to animate a "car.png" symbol on googlemap but i cant. this is my code

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.