|
From: rohan m. <roh...@st...> - 2001-10-15 08:32:40
|
Ok, i've worked out a slightly different network model, now i understand the base better: 1) In the main thread, have a main socket listening(socket is blocking as we dont need to use any non-blocking functions). Check for incoming connections with select. When an incoming connection is detected, spawn a thread: 2) The connection is accepted and put into the client structure. Then the thread uses a blocking recv to get incoming data(as it's in a seperate thread, this does not impede the rest of the program). 3) The request is processed and the thread exits. I'm not quite sure about this part, but I think it is about right... Hope this fits, Rohan PS I've got cvs working now, it was trying to use an anonymous account instead of my real one. __________________________________________________________________ Get your free Australian email account at http://www.start.com.au |