Re: maybe OT, Linux TCP programming

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 10, 2004 at 10:24:49PM +0100, Damjan wrote:

> Is there a way in Linux socket programming, when using TCP sockets to be
> able to require notifications of when the TCP ACK packets are received.
> 
> If I send some data over a TCP socket, I'd like to know for sure 
> if the data reached its recipient. A blocking "send" call, that blocks
> until all ACK's for the data are received back, would be good enough.

If you want that, you have to make your own 'tcp' with UDP. Another solution
is to set a very small window size, select(2) will then return on reception
on the ACK. Set the window size to one packet in that case (~1500 bytes).

Good luck!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux