[9870] in www-talk@info.cern.ch
Receiving requests
daemon@ATHENA.MIT.EDU (Fabien Petitcolas)
Sun Mar 24 15:02:12 1996
From: Fabien Petitcolas <fapp2@hermes.cam.ac.uk>
To: "'www-talk@w3.org'" <www-talk@w3.org>
Date: Sun, 24 Mar 1996 19:55:00 -0000
Resent-From: www-talk@w3.org
Hi,
What is the most common way for receiving requests from a browser?
I tried to use the following code, but the program stops in the loop.
What's wrong in this way of doing?
while ((nread = recv(socket, buffer, BUFFER_SIZE, 0))>0)
{
/* Sparse request */
}
/* rest of program */
Thanks
Fabien
+--------------------------+----------------------------+
| Fabien Petitcolas | e-Mail: fapp2@cam.ac.uk |
| University of Cambridge | Tel: (01223) 330926 |
| Ecole Centrale de Lyon | Wolfson College |
| http://www.ec-lyon.fr/ | CB3 9BB Cambridge |
+--------------------------+----------------------------+