W3C home > Mailing lists > Public > www-talk@w3.org > March to April 1996

Receiving requests

From: Fabien Petitcolas <fapp2@hermes.cam.ac.uk>
Date: Sun, 24 Mar 1996 19:55:00 -0000
Message-Id: <01BB19BB.CEF28680@lugdunum.wolfson.cam.ac.uk>
To: "'www-talk@w3.org'" <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         |
+--------------------------+----------------------------+
Received on Sunday, 24 March 1996 14:54:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:19 GMT