maybe OT, Linux TCP programming
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.
Signature · 5 lines
damjan | дамјан This is my jabber ID --> [email protected] <-- not my mail address!!! _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 6 lines · Damjan
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!
Signature · 5 lines
http://www.PowerDNS.com Open source, database driven DNS Software http://lartc.org Linux Advanced Routing & Traffic Control HOWTO _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/