setsockopt TCP_NODELAY question on Windows Mobile

Posted by weki on Stack Overflow See other posts from Stack Overflow or by weki
Published on 2009-01-30T14:26:23Z Indexed on 2010/06/12 23:02 UTC
Read the original article Hit count: 365

Filed under:
|

Hi all,

I have a problem on Windows Mobile 6.0. I would like to create a TCP connection which does not use the Nagle algorithm, so it sends my data when I call "send" function, and does not buffer calls, having too small amount of data.

I tried the following:

BOOL b = TRUE; setsockopt(socketfd, IPPROTO_TCP, TCP_NODELAY, (char*)(&b), sizeof(BOOL));

It works fine on desktop. But on Windows Mobile, if I set this value, than I make a query for it, the returned value is 8. And the network traffic analysis shows that the nothing changed.

Is there any way to force a flush to my socket?

© Stack Overflow or respective owner

Related posts about c++

Related posts about windows-mobile