[Boost-users] [ASIO] Flush output on socket

1,162 views
Skip to first unread message

Claude

unread,
Oct 29, 2011, 6:36:33 PM10/29/11
to boost...@lists.boost.org
Hi!
I use this code for send a std::string with a socket:

I have a doubt: this function automatically flush its output?

--
View this message in context: http://boost.2283326.n4.nabble.com/ASIO-Flush-output-on-socket-tp3951921p3951921.html
Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Igor R

unread,
Oct 30, 2011, 3:40:30 AM10/30/11
to boost...@lists.boost.org
> Hi!
>  I use this code for send a std::string with a socket:
>
>
>
> I have a doubt: this function automatically flush its output?


What code?

Claude

unread,
Oct 30, 2011, 4:15:34 AM10/30/11
to boost...@lists.boost.org
The boost::asio::write() function...

--
View this message in context: http://boost.2283326.n4.nabble.com/ASIO-Flush-output-on-socket-tp3951921p3952505.html


Sent from the Boost - Users mailing list archive at Nabble.com.

Claude

unread,
Oct 31, 2011, 1:01:23 PM10/31/11
to boost...@lists.boost.org

Igor R

unread,
Oct 31, 2011, 1:20:12 PM10/31/11
to boost...@lists.boost.org
> No idea? :(

There is no "flush" needed.
If you've got a problem, please describe it in a more detailed way,
including some code lines.

Claude

unread,
Nov 12, 2011, 11:51:40 AM11/12/11
to boost...@lists.boost.org
The TCP header have the "P" (push) flag. When I use the boost::asio write()
function, this flag is active?

--
View this message in context: http://boost.2283326.n4.nabble.com/ASIO-Flush-output-on-socket-tp3951921p4034835.html


Sent from the Boost - Users mailing list archive at Nabble.com.

Igor R

unread,
Nov 12, 2011, 12:07:44 PM11/12/11
to boost...@lists.boost.org
> The TCP header have the "P" (push) flag. When I use the boost::asio write() function, this flag is active?

PUSH flag is the result of TCP_NODELAY socket option.
In asio you can set it with ip::tcp::no_delay.

Reply all
Reply to author
Forward
0 new messages