the WINCE 5.0 Winsock socket option TCP_NODELAY should control, if the Nagle
algorithm is activated or not. The nagle alrorithm should delay transmission
of short segments and send one segments, that contains all the short chunks.
see http://msdn.microsoft.com/en-us/library/aa450065.aspx
1) Does the Nagel algorithm also works for the Loopback interface 127.0.0.1?
How is the term "data already in flight" to be read?
2) The function getsockopt returns the current value of the winsock option.
What does it mean, when I get the result 8 (eight), when I have set the
value before to 1 (one)?
Here are the functions with parameters I use:
BOOL bDisableNagle;
int nSize;
::setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (char*)&bDisableNagle,
sizeof(BOOL));
nSize = sizeof(BOOL);
::getsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (char*)&bDisableNagle, &nSize);
Regards,
Helge
--
Time is an ocean but it ends at the shore.