> Then there is Nagle algoritm. Nagle wait a while for if other packets
> will be send, so Nagle can concantenate it to MTU. I think Nagle wait
> for maximum 100 millisec, is this correct ?

I don't know for the time. But for sure you can disable nagle algorithm using 
setsockopt with
TCP_NODELAY argument.

> So if I wait 100 msec after OnDataSent and my socket is still not closed
> with an error I can be pretty sure it has reached other end ?

Defenitely not !

Why not sending ACK yourself above TCP ?

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


----- Original Message ----- 
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, September 12, 2005 7:32 PM
Subject: [twsocket] has packet reach other end


> Hello,
>
> I'm writing an MDOT server. For who is concerned: MDOT is the protocol
> used for tunneling MPAK packets over TCP connections. MPAK is the format
> used for MOBITEX wich is a packet switched radio network.
>
> MDOT has some usefull things on board to send/receive binairy data over
> TCP and timeouts but it does not provide any ACK to be sure packet is
> delivered on the other end. Winsock has this internally but there is as
> far as I know not a way to tell the application. So now comes the
> question :)
>
> - Send a packet
> - a while later OnDataSent is calle. Of course I know it is only
>   TWSocket that has delivered the data to winsock. Again we dont knoe if
>   it has reached the other end.
> - if no Winsock error occure then we are quite sure, but how long to
>   wait?
>
> Then there is Nagle algoritm. Nagle wait a while for if other packets
> will be send, so Nagle can concantenate it to MTU. I think Nagle wait
> for maximum 100 millisec, is this correct ?
>
> So if I wait 100 msec after OnDataSent and my socket is still not closed
> with an error I can be pretty sure it has reached other end ?
>
> Unless of course there is total pakcet loss on a very busy network, but
> let's pretent this does not occure :)
>
> --
> Rgds, Wilfried
> http://www.mestdagh.biz
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to