Re: recv() problem?




David Schwartz wrote:
> "Hans-Juergen Lange" <Hans-Juergen.Lange@xxxxxx> wrote in message
> news:42fm62F1ia7hjU1@xxxxxxxxxxxxxxxx
>
> > in the original post the server closes the communication after sending the
> > data.
>
> The original post didn't say that, and I don't think it's true.
>
> > This is the indication on the client side for completion.
>
> No, the indiciation on the client side for completion is whatever the
> protocol says it is. That's not a TCP issue, it's an issue for the
> higher-level protocol.

I use a timeout on my recv because in my application there is no way to
know when the connection will be closed (or simply disappear). Loss of
connectivity or device reboot (it's embedded) may cause a loss of
connection. You can send some dummy data back as a check to see if the
connection is still alive after a timeout.

In a way it's funny that for as long as TCP has been used the most
common problems are still left for the user to discover and solve over
and over.

> > There are lots of advantages in using select and/or poll.
>
> I agree, but none of them have to do with the original poster's issue.

Other than seeming to be only able to interact by reposting the same
question over and over, nobody really knows what really is the OP's
issue.

.



Relevant Pages

  • Re: Non-linear combination
    ... If one wants computationally more expensive non-linear ... in connection with ECC, if I remember correctly. ... be no further follow-ups from you in this thread. ... My original post was ...
    (sci.crypt)
  • Re: change node on ipconfig
    ... Is this a continuation of your original post (Client setup won't connect)? ... > want to set it up with a VPN connection to our sever. ... > MicrosoftWindows DOS ...
    (microsoft.public.windows.server.sbs)
  • Re: More 11.2.6 Update Woes...
    ... I just reread the url in your original post & it looked a little fishy. ... "The connection to the update server was interrupted. ... my inability to connect and download. ... getting to any other web sites or download sites. ...
    (microsoft.public.mac.office.excel)
  • Re: OT:Environmentalism as a Cover for Collectivism
    ... >>> Perhaps YOU could point out where in the original post you saw any proof ... >>> of a connection between environmentalism and collectivism. ...
    (rec.boats)
  • Re: EMERGENCY - UPDATE
    ... I feel for DT and his loss, but honestly I was waiting to ... see if the original post was real. ... my two cents in this ...
    (alt.guitar.amps)

Loading