View Full Version : multiple connection server
Unregistered
02-24-2002, 11:09 PM
im currently writing a server for linux. can someone please tell me how to make my server accept multiple connections without using the select function? thanks.
also, what exactly is a library? is it a header file?
rohit
02-25-2002, 10:18 AM
search google for
"Beej Guide to network programming"
Unregistered
02-25-2002, 10:56 PM
heh, thats where i learned socket programming :)
but the problem is that only explains how to accept multi connections using the select() function...............any other ideas?
mix0matt
02-26-2002, 09:37 AM
the above book is a must...
a library is a collection of compiled object code that can be linked either statically or dynamically into your program. it is not a header file. header files usually contain protoytpes and other declarations for the object code contained in the libraries...
old school unix servers - fork a new process for each connection
new way unix - new thread for each connection...single process...
again W. Richard Stevens' book, Unix Network Programming, Volume I explains all of it in detail.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.