delorie.com/archives/browse.cgi | search |
From: | ovek AT arcticnet DOT no (Ove Kaaven) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: tcp again |
Date: | Sat, 10 Jan 1998 14:50:37 GMT |
Organization: | Arctic Net AS |
Lines: | 10 |
Message-ID: | <34b788fe.25008121@news.arcticnet.no> |
References: | <199801101439 DOT PAA31128 AT friko3 DOT onet DOT pl> |
NNTP-Posting-Host: | hjemme-pc.arcticnet.no |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
"Man2die4" <man2die4 AT friko2 DOT onet DOT pl> wrote: >some lame question: when i download html file from www, how to reckognize >eof? This isn't a network protocol newsgroup, but the answer is simple: you don't. Take the Content-Length: header from the HTTP/1.0 (or 1.1 or whatever) headers to find how much to download, and/or detect when the socket has been closed (recv() returns zero but no error).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |