Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Disable nagle algorithm on Windows XP
From: Tobias Jähnel (tjaehnel_at_[hidden])
Date: 2009-03-25 11:40:10


Hi,

I inserted.
 int on=1;
 setsockopt(socket.native(), IPPROTO_TCP, TCP_NODELAY, (char *)&on,
sizeof(on) );
right after I open the connection. Still no change :(

Tobias

2009/3/25 ÕÅÑÇö­ <kimi67300387_at_[hidden]>:
> try native WSA API "setsockopt" with the TCP_NODELAY option.
> if it still does not work, there may be something wrong with your windows
> xp. or debug the asio
>
> ------------------
> best wishes to you
> ÕÅÑÇö­
>
>
>
> ------------------ Original ------------------
> From: "Tobias J?hnel"<tjaehnel_at_[hidden]>;
> Date: Wed, Mar 25, 2009 10:58 PM
> To: "boost-users"<boost-users_at_[hidden]>;
> Subject: Re: [Boost-users] [asio] Disable nagle algorithm on Windows XP
>
> Hi Igor,
>
> thanks for your reply.
> I guess you mean setting non_blocking_io to false.
> Tried to enter those lines, but still have no change:
> boost::asio::socket_base::non_blocking_io command(false);
> socket.io_control(command);
>
> Tobias
>
> On Wed, Mar 25, 2009 at 3:07 PM, Igor R <boost.lists_at_[hidden]> wrote:
>>> I'm already using blocking sockets as suggest in above document.
>>
>> According to that document, you should not enocounter this problem
>> when using blocking sockets. Probably your socket is not blocking?
>> To make a socket blocking you should write something like this:
>> boost::asio::socket_base::non_blocking_io command(true);
>> socket.io_control(command);
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net