🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1212

send and recv questions with HTTP protocol

#1212
From: Eduardo Jauch
Date: Sat, 03 Mar 2007 02:46
36 lines
2165 bytes
Hello...

I have some few questions about send and recv... :)

Let's think that I "send" a correct request, there are no errors in it, 
and the server are able to respond correctly

1. If I "send" another request "before" the server had time to respond 
the first, it'll respond both, the first or the second?

2. If I "send" another request "after" the server had time to respond, 
but not do any "recv" between the requests. What will occour with the 
data the sever first send to me?

3. If after I "send" the first request I do a "recv", verify that the 
transfer are chinked (so, the server will send more data), but ignore 
this and "send" another request. The server will "ignore" the resting 
data, or will send it and after terminate will send the response to my 
second request?

4. Thinking that the first response of the server contain 3 bloks of 
chunked data. After I "send" the first request will the server send all 
the 3 bloks or the first and the second after the first recv and the 
third after the second recv?

5. What is the "lenght" of the buffer that recv have? I mean, on the 
system? Is standard? Can be manipulated? Is hardware or software make?

6. Is possible "to clear" the buffer that recv use to fill my buffer 
(where data was stored when arrives on the computer)?


Thanks! :)


Eduardo.
Technical Details
Message-ID: <45e8e17a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c4318c7cf342ce5a,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 02 Mar 2007 23:46:29 -0300
From: Eduardo Jauch <eduardo.jauch@gmail.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: send and recv questions with HTTP protocol
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 200.181.173.129
Message-ID: <45e8e17a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172889978 200.181.173.129 (2 Mar 2007 18:46:18 -0800)
Lines: 36
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail