Re: Connection close in HTTP server

Tech-Archive recommends: Fix windows errors by optimizing your registry



Very simple - don't Send. Receive will tell you when the
connection is closed.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Nuno Magalhaes" <nunommagalhaes@xxxxxxxxxxx> wrote in message
news:1133534266.092059.131860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> How do I get all the data from the server if in the last chunk the
> server closes the connection?
> I'm doing a loop that consists on a:
> Socket.Receive
> Socket.Send
> The Send function is to check if the socket is alive and the receive
> function receives the data at specified offsets. If the data arrives
> between Receive and Send functions and the connection is closed by the
> server (as described in the HTTP RFC) I can't get the last bytes of the
> html page anymore (because the socket gets dead with the send
> function).
>
> Does anyone knows a solution for this problem? Someone must have
> implemented a simple HTTP browser from the "ashes"...
>
> Thanks in advance,
> Nuno Magalhaes.
>


.



Relevant Pages

  • Re: NAT and keepaliveopen connection over TCP
    ... Microsoft MVP, MCSD ... use your server connection for anything else after you punch ... If it was symmetric nat case, I was unable to make the first succeded ...
    (microsoft.public.win32.programmer.networks)
  • Re: LAN PROBLEM
    ... Have you tried deleting the existing connection and creating a new one? ... aka "Nutcase" - Microsoft MVP ... This is why I cannot connect to my server on the cable broadband. ...
    (microsoft.public.windowsxp.basics)
  • Re: no RDP after a restore
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... TREMINAL server via RDP from any other machine on the network. ... connection and re-created it but clients are still getting: ...
    (microsoft.public.windows.terminal_services)
  • Re: What rights needed to see process info in TSADMIN?
    ... I am afraid you will have to grant admin rights to a user on Server ... group already has full access to the RDP connection according to the TS ... MCSE, CCEA, Microsoft MVP - Terminal Server ...
    (microsoft.public.windows.terminal_services)
  • RE: tsweb : terminal services multiple sessions
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... > Connection, if you already have the full Remote Desktop Client ...
    (microsoft.public.win2000.termserv.clients)